You can use pipeline badges to indicate the pipeline status and You can override this value for individual runners. Jobs that exceed the timeout are marked as failed. Must be 10 minutes or more, and less than one month. In the Timeout field, enter the number of minutes, or a human-readable value like 2 hours.You can define how long a job can run before it times out. This value can be overridden by the GIT_DEPTH variable GitLab versions 14.6 and earlier have a default git depth value of 50. In GitLab versions 14.7 and later, newly created projects have a default git depth To disable shallow clone and make GitLab CI/CDįetch all branches and tags each time, keep the value empty or set to 0. Under Git strategy, under Git shallow clone, enter a value.You can limit the number of changes that GitLab CI/CD fetches when it clones Changed git depth value in GitLab 14.7.Limit the number of changes fetched during clone The configured Git strategy can be overridden by the GIT_STRATEGY variable git fetch is faster because it re-uses the local working copy (and fallsīack to clone if it doesn’t exist).However, the local working copy is always pristine. git clone is slower because it clones the repository from scratchįor every job.You can choose how your repository is fetched from GitLab when a job runs. Then other users and projects can access the configuration file without beingĪble to edit it. Give write permissions on the project only to users who are allowed to edit the file.Create a public project to host the configuration file.the configuration file is in a separate project, you can set more granular permissions.The path must be followed by an symbol and the full group and project path.The path must be relative to the root directory in the other project.The file must exist on its default branch, or specify the branch as refname.If the CI/CD configuration file is in a different project: If the CI/CD configuration file is on an external site, the URL must end with. If the CI/CD configuration file is not in the root directory, the path must be relative to it. You cannot use your project’s pipeline editor toĮdit CI/CD configuration files in other projects or on an external site. Running job can be cancelled before it completes. Use the interruptible keyword to indicate if a
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |