![]() You can configure a different cache for each branch.įor runners to work with caches efficiently, you must do one of the following: Use runners that are only available to a particular project.Tag your runners and use the tag on jobs.To ensure maximum availability of the cache, do one or more of the following: Use dependencies to control which jobs fetch the artifacts.The latest artifacts do not expire if keep latest artifacts is enabled.Artifacts expire after 30 days by default.Different projects cannot share artifacts.Subsequent jobs in later stages of the same pipeline can use artifacts.By default, protected and non-protected branches do not share the cache.Different projects cannot share the cache.Subsequent jobs in the same pipeline can use the cache, if the dependencies are identical.Subsequent pipelines can use the cache.Define cache per job by using the cache keyword. ![]() Use artifacts to pass intermediate build results between stages.Īrtifacts are generated by a job, stored in GitLab, and can be downloaded.īoth artifacts and caches define their paths relative to the project directory, and Use cache for dependencies, like packages you download from the internet.Ĭache is stored where GitLab Runner is installed and uploaded to S3 if To learn how to define the cache in your. ![]() ![]() The same cache don’t have to download the files again, so they execute more quickly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |