From 5b8db5822387ad16f731773ed9a7271da59f195f Mon Sep 17 00:00:00 2001 From: nsingh Date: Fri, 11 Aug 2017 15:56:17 -0700 Subject: [PATCH] Added build-concourse-pipeline-yaml-atom-package job --- concourse/pipeline.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/concourse/pipeline.yml b/concourse/pipeline.yml index aa0317834..426ab5d26 100644 --- a/concourse/pipeline.yml +++ b/concourse/pipeline.yml @@ -31,6 +31,12 @@ resources: branch: {{branch}} private_key: {{rsa_id}} uri: git@github.com:spring-projects/atom-cf-manifest-yaml.git +- name: atom-concourse + type: git + source: + branch: {{branch}} + private_key: {{rsa_id}} + uri: git@github.com:spring-projects/atom-concourse.git - name: tasks type: git source: @@ -109,6 +115,14 @@ resources: secret_access_key: {{s3_secretkey}} region_name: {{s3_region}} regexp: sts4/atom/snapshots/(.*)cf-manifest-yaml-(.*).tgz +- name: s3-atom-concourse-snapshot + type: s3 + source: + bucket: {{s3_bucket}} + access_key_id: {{s3_accesskey}} + secret_access_key: {{s3_secretkey}} + region_name: {{s3_region}} + regexp: sts4/atom/snapshots/(.*)concourse-pipeline-yaml-(.*).tgz - name: snapshot-website type: s3-multi source: @@ -510,3 +524,31 @@ jobs: params: file: out/*cf-manifest-yaml-*.tgz acl: public-read +- name: build-concourse-pipeline-yaml-atom-package + plan: + - aggregate: + - get: sts4 + passed: + - atom-language-servers-test + - get: atom-concourse + trigger: true + - get: s3-concourse-fatjar-snapshot + trigger: true + passed: + - atom-language-servers-test + - task: build-concourse-pipeline-yaml-atom-package + input_mapping: + package_sources: atom-concourse + fatjar: s3-concourse-fatjar-snapshot + file: sts4/concourse/tasks/build-atom-package.yml + on_failure: + put: slack-notification + params: + text: | + Concourse ${BUILD_PIPELINE_NAME}/${BUILD_JOB_NAME}/${BUILD_NAME} has failed! + on_success: + aggregate: + - put: s3-atom-concourse-snapshot + params: + file: out/*concourse-pipeline-yaml-*.tgz + acl: public-read \ No newline at end of file