Skip to content

Commit

Permalink
Adding overrides to remove step that creates tag for Jenkins X pipeli…
Browse files Browse the repository at this point in the history
…ne (#1161)

* Adding overrides to remove step that creates tag

* Added logic to create the branch for SNAPSHOT
  • Loading branch information
axsaucedo authored Nov 30, 2019
1 parent 7e4fb26 commit 08c7c85
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions jenkins-x.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
buildPack: none
pipelineConfig:
pipelines:
overrides:
- name: changelog
pipeline: release
stage: promote
step:
command: echo "skipping promote"
pullRequest:
pipeline:
agent:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 08c7c85

Please sign in to comment.