patternMinor
Trigger cicd pipeline after merge request accept on master, Gitlab
Viewed 0 times
aftertriggermergegitlabrequestacceptcicdmasterpipeline
Problem
Trying to run some task after merge request get accept (only on master branch).
I am aware of
I am aware of
only: - master -merge_requests config options, but want to specifically run pipeline only when code get merged in master.Solution
https://docs.gitlab.com/ee/ci/yaml/
https://gitlab.com/gitlab-org/gitlab-ce/issues/31296#note_34944784
Another option is to create a webhook
https://gitlab.scm.webanywhere.co.uk/help/user/project/integrations/webhooks.md
If the "Merge request events" is clicked one could trigger a pipeline if a Pull Request gets updated, created or merged.
https://gitlab.com/gitlab-org/gitlab-ce/issues/31296#note_34944784
integration-testing:
stage: test
only:
- master
script:
- ./gradlew clean build asciidoctorAnother option is to create a webhook
https://gitlab.scm.webanywhere.co.uk/help/user/project/integrations/webhooks.md
If the "Merge request events" is clicked one could trigger a pipeline if a Pull Request gets updated, created or merged.
Code Snippets
integration-testing:
stage: test
only:
- master
script:
- ./gradlew clean build asciidoctorContext
StackExchange DevOps Q#8629, answer score: 1
Revisions (0)
No revisions yet.