From 08c7c8517d3af4a44368501d45f6ad115981d836 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sat, 30 Nov 2019 08:10:35 +0000 Subject: [PATCH] Adding overrides to remove step that creates tag for Jenkins X pipeline (#1161) * Adding overrides to remove step that creates tag * Added logic to create the branch for SNAPSHOT --- jenkins-x.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/jenkins-x.yml b/jenkins-x.yml index 3a9b0aefeb..3d3116fb3d 100644 --- a/jenkins-x.yml +++ b/jenkins-x.yml @@ -1,6 +1,12 @@ buildPack: none pipelineConfig: pipelines: + overrides: + - name: changelog + pipeline: release + stage: promote + step: + command: echo "skipping promote" pullRequest: pipeline: agent: @@ -28,6 +34,18 @@ pipelineConfig: command: make name: test-engine release: + setVersion: + steps: + - name: create-version + command: cat version.txt > VERSION + - name: delete-existing-branch + command: git branch -D v\$(cat version.txt) || echo "No branch exists" + - name: create-new-branch + command: git checkout -b v\$(cat version.txt) + - name: commit-new-branch + command: git push origin v\$(cat version.txt) -f + - name: skip-tag + command: echo "skipping tag" pipeline: agent: image: seldonio/core-builder:0.4