Skip to content

Commit

Permalink
pipeline: add a dummy stage to block builds
Browse files Browse the repository at this point in the history
  • Loading branch information
leprechaun committed Aug 15, 2023
1 parent fdaeddd commit 8437b1c
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions pipeline.gocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pipelines:
version: 1.3.5
options:
url: https://github.com/snacker-tracker/ui.git
branchwhitelist: master,test-*,renovate/*,dependabot/*
branchwhitelist: master, test-*, renovate/*, dependabot/*
destination: ./

environment_variables:
Expand Down Expand Up @@ -92,21 +92,37 @@ pipelines:
exit $EXIT_CODE
- dummy-stage:
tasks:
- script: |
set -e
export GIT_BRANCH="${GO_SCM_GIT_SNACKER_TRACKER_UI_CURRENT_BRANCH}"
if [ "$GIT_BRANCH" != "master" ]; then
curl "${GO_SERVER_URL}/api/stages/${GO_PIPELINE_NAME}/${GO_STAGE_NAME}/cancel" \
-u "${GO_AUTOMATION_USER}:${GO_AUTOMATION_PASSWORD}" \
-H 'Confirm: true' \
-X POST \
-k
fi
snacker-tracker-ui-build:
group: snacker-tracker-ui
label_template: "0.1.${COUNT}-${upstream}"
lock_behavior: unlockWhenFinished
materials:
upstream:
pipeline: snacker-tracker-ui-test
stage: tests
stage: dummy-stage
git-snacker-tracker-ui:
plugin_configuration:
id: git.fb
version: 1.3.5
options:
url: https://github.com/snacker-tracker/ui.git
branchwhitelist: master,test-*,renovate/*,dependabot/*
branchwhitelist: master, test-*, renovate/*, dependabot/*
destination: ./

environment_variables:
Expand Down

0 comments on commit 8437b1c

Please sign in to comment.