Skip to content

sandu-c/cd-semaphore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gitlab cd-semaphore

A semaphore script that fails gitlab jobs for merge requests where the target branch has failed jobs. (To be used in cojunction with "Pipelines must succeed" merge check feature) see https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html#only-allow-merge-requests-to-be-merged-if-the-pipeline-succeeds

The main purpose of this script is to block merging feature branches if the target pipeline has failed jobs. Having a clean green pipeline for the main branch is key in continuous delivery.

Merging you branch on top of other branches where there are failing pipeline jobs is a bad practice, and if you did this in the past you should be ashamed of yourself.

example run:

./semaphore_exec.sh -p 256 -h gitlab.host.int -t <token> -b latest
-p gitlab target projectid
-a attempts / retries 
-h gitlab hostname
-t gitlab token 
-b gitlab target project branch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages