Gitlab-2

  • Cache are globally defined
    if you cache .m2/respository → all the later stages/jobs will have that repo by default
  • Artifacts are defined within a “stage”
    if you make .m2/repository artifact → all the jobs in the SAME STAGE will start with that repo
    — but if different stage, will not pass through
  • stage vs job
    stage is what you define in beginning (test, deploy, build)
    and jobs make up the stage (job is the granular definition for gitlab)
    **** Jobs are run concurrently in the same stage
  • Stage, Job best practices : https://medium.com/@ryzmen/gitlab-fast-pipelines-stages-jobs-c51c829b9aa1
d
  • if you want to use artifacts from different stages use dependencies

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store