Skip to content

Commit

Permalink
fix: lets give steps a simple canonical name
Browse files Browse the repository at this point in the history
for easier reporting and to make overriding steps easier
  • Loading branch information
jstrachan committed Feb 4, 2019
1 parent 630f657 commit 1271ce2
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packs/D/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ pipelines:
build:
steps:
- sh: dub build --build=release
name: dub-build
release:
setVersion:
steps:
- sh: echo \$(jx-release-version) > VERSION
name: next-version
comment: so we can retrieve the version in later steps
- sh: jx step tag --version \$(cat VERSION)
name: tag-version
build:
steps:
- sh: dub build --build=release
name: dub-build

7 changes: 7 additions & 0 deletions packs/go/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pipelines:
build:
steps:
- sh: make linux
name: make-linux
release:
setup:
steps:
Expand All @@ -18,17 +19,23 @@ pipelines:
- groovy: checkout scm
when: "!prow"
- sh: git checkout master
name: git-checkout-master
comment: ensure we're not on a detached head
when: "!prow"
- sh: git config --global credential.helper store
when: "!prow"
name: git-config
- sh: jx step git credentials
when: "!prow"
name: git-credentials
setVersion:
steps:
- sh: echo \$(jx-release-version) > VERSION
name: next-version
comment: so we can retrieve the version in later steps
- sh: jx step tag --version \$(cat VERSION)
name: tag-version
build:
steps:
- sh: make build
name: make-build
4 changes: 4 additions & 0 deletions packs/gradle/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ pipelines:
build:
steps:
- sh: gradle clean build
name: gradle-build
release:
setVersion:
steps:
- sh: echo \$(jx-release-version) > VERSION
name: next-version
comment: so we can retrieve the version in later steps
# TODO
# - sh: mvn versions:set -DnewVersion=\$(cat VERSION)
- sh: jx step tag --version \$(cat VERSION)
name: tag-version
build:
steps:
- sh: gradle clean build
name: gradle-build
5 changes: 5 additions & 0 deletions packs/javascript/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@ pipelines:
build:
steps:
- sh: npm install
name: npm-install
- sh: CI=true DISPLAY=:99 npm test
release:
setVersion:
steps:
- sh: echo \$(jx-release-version) > VERSION
name: next-version
comment: so we can retrieve the version in later steps
# TODO modify package.json?
- sh: jx step tag --version \$(cat VERSION)
name: tag-version
build:
steps:
- sh: npm install
name: npm-install
- sh: CI=true DISPLAY=:99 npm test
name: npm-test
6 changes: 6 additions & 0 deletions packs/maven/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,20 @@ pipelines:
build:
steps:
- sh: mvn versions:set -DnewVersion=$PREVIEW_VERSION
name: set-version
- sh: mvn install
name: mvn-install
release:
setVersion:
steps:
- sh: echo \$(jx-release-version) > VERSION
name: next-version
comment: so we can retrieve the version in later steps
- sh: mvn versions:set -DnewVersion=\$(cat VERSION)
name: set-version
- sh: jx step tag --version \$(cat VERSION)
name: tag-version
build:
steps:
- sh: mvn clean deploy
name: mvn-deploy
4 changes: 4 additions & 0 deletions packs/python/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ pipelines:
build:
steps:
- sh: python -m unittest
name: python-unittest
release:
setVersion:
steps:
- sh: echo \$(jx-release-version) > VERSION
name: next-version
comment: so we can retrieve the version in later steps
# TODO set the version in source?
- sh: jx step tag --version \$(cat VERSION)
name: tag-version
build:
steps:
- sh: python -m unittest
name: python-unittest
8 changes: 8 additions & 0 deletions packs/rust/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,25 @@ pipelines:
build:
steps:
- sh: rustup override set nightly
name: rustup
- sh: cargo install
name: cargo-install
- sh: cp ~/.cargo/bin/REPLACE_ME_APP_NAME .
name: copy-bin
release:
setVersion:
steps:
- sh: echo \$(jx-release-version) > VERSION
name: next-version
comment: so we can retrieve the version in later steps
# TODO set the version in source?
- sh: jx step tag --version \$(cat VERSION)
name: tag-version
build:
steps:
- sh: rustup override set nightly
name: rustup
- sh: cargo install
name: cargo-install
- sh: cp ~/.cargo/bin/REPLACE_ME_APP_NAME .
name: copy-bin
4 changes: 4 additions & 0 deletions packs/scala/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ pipelines:
build:
steps:
- sh: sbt clean compile assembly
name: sbt-assembly
release:
setVersion:
steps:
- sh: echo \$(jx-release-version) > VERSION
name: next-version
comment: so we can retrieve the version in later steps
# TODO set version with sbt?
- sh: jx step tag --version \$(cat VERSION)
name: tag-version
build:
steps:
- sh: sbt clean compile assembly
name: sbt-assembly

0 comments on commit 1271ce2

Please sign in to comment.