Skip to content

Commit

Permalink
Merged claim and release tasks into other jobs to simplify pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
guidowb committed Oct 6, 2016
1 parent 7400db4 commit 3b16f2d
Showing 1 changed file with 14 additions and 56 deletions.
70 changes: 14 additions & 56 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ groups:
- install-tile-generator
- build-tile
- acceptance-tests
- claim-pcf
- deploy-tile
- deployment-tests
- remove-tile
- release-pcf
- publish-release

- name: version
Expand Down Expand Up @@ -454,7 +452,7 @@ jobs:
text: '(master) Acceptance tests failed, check <https://ci.run-01.haas-26.pez.pivotal.io/pipelines/tile-generator|here> for details'
username: Tile Generator

- name: claim-pcf
- name: deploy-tile
plan:
- aggregate:
- get: tile-generator-docker-image
Expand All @@ -472,36 +470,12 @@ jobs:
- get: version
passed: [ acceptance-tests ]
trigger: true
- put: pcf-environment
params:
acquire: true
- get: tile-generator-package
passed: [ acceptance-tests ]
trigger: true

- name: deploy-tile
plan:
- aggregate:
- get: tile-generator-docker-image
passed: [ claim-pcf ]
trigger: true
- get: tile-generator-tests
passed: [ claim-pcf ]
trigger: true
- get: generated-tile
passed: [ claim-pcf ]
trigger: true
- get: pcf-environment
passed: [ claim-pcf ]
- get: tile-generator-repo
passed: [ claim-pcf ]
trigger: true
- get: version
passed: [ claim-pcf ]
trigger: true
- get: tile-generator-package
passed: [ claim-pcf ]
trigger: true
- put: pcf-environment
params:
acquire: true
- task: run-deploy-tile
image: tile-generator-docker-image
config:
Expand Down Expand Up @@ -605,17 +579,17 @@ jobs:
run:
path: tile-generator-tests/ci/scripts/run-removetile.sh
args: [ "generated-tile", "pcf-environment" ]
ensure:
put: pcf-environment
params:
release: pcf-environment
on_failure:
aggregate:
- put: pcf-environment
params:
release: pcf-environment
- put: slack-alert
params:
channel: {{slack-channel}}
icon_emoji: ':concourse:'
text: '(master) Remove tile failed, check <https://ci.run-01.haas-26.pez.pivotal.io/pipelines/tile-generator|here> for details'
username: Tile Generator
put: slack-alert
params:
channel: {{slack-channel}}
icon_emoji: ':concourse:'
text: '(master) Remove tile failed, check <https://ci.run-01.haas-26.pez.pivotal.io/pipelines/tile-generator|here> for details'
username: Tile Generator

- name: publish-release
plan:
Expand All @@ -637,19 +611,3 @@ jobs:
- put: tile-generator-pypi-release
params:
glob: tile-generator-package/tile-generator-*.tar.gz

- name: release-pcf
plan:
- aggregate:
- get: pcf-environment
passed: [ remove-tile ]
trigger: true
- get: tile-generator-repo
passed: [ remove-tile ]
trigger: true
- get: version
passed: [ remove-tile ]
trigger: true
- put: pcf-environment
params:
release: pcf-environment

0 comments on commit 3b16f2d

Please sign in to comment.