Relative Content

Tag Archive for gitlabcicd

GitLab pipeline is triggered for previous commit

Say, I have two branches: feature and develop which is my default branch. When I merge a commit to develop from feature, my CI/CD pipeline is triggered for the previous commit on develop – not the newest one that I’ve just merged from feature.

Gitlab CI using Job Artifacts API to access artifacts

I am having troubles understanding how to use Job Artifacts API to access artifacts from another pipeline. I my pipeline is designed as two stages, where first is run within the pull request pipeline, and the second is run after the merge request is approved, which creates two pipelines that do not share any predefined CI/CD variables.