From 5ca0a72582317a49565696be638b97032a54df73 Mon Sep 17 00:00:00 2001 From: guidowb Date: Fri, 29 Jul 2016 17:37:36 -0500 Subject: [PATCH 1/3] Updated s3 resource parameters --- ci/pipeline.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index ab09eeb..b515269 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -36,7 +36,7 @@ jobs: args: [ "-c", "cp github-release/*.tgz s3-release" ] - put: s3-release params: - from: s3-release/.*\.tgz + file: s3-release/*.tgz - task: copy-latest config: platform: linux @@ -50,7 +50,7 @@ jobs: args: [ "-c", "cp github-release/*.tgz s3-release/latest.tgz" ] - put: s3-release params: - from: s3-release/latest.tgz + file: s3-release/latest.tgz - task: save-version config: platform: linux @@ -64,4 +64,4 @@ jobs: args: [ "-c", "ls github-release/*.tgz | sed 's/github-release\\/.*-//' | sed 's/.tgz//' >s3-release/version.txt" ] - put: s3-release params: - from: s3-release/version.txt + file: s3-release/version.txt From b01a6b66515bf3e8886dfc9092a68f1960b10544 Mon Sep 17 00:00:00 2001 From: guidowb Date: Fri, 29 Jul 2016 18:45:40 -0500 Subject: [PATCH 2/3] Forgot one place --- ci/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 11cb36c..930e895 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -44,7 +44,7 @@ jobs: args: [ "-c", "cp github-repo/bootstrap.py s3-release" ] - put: s3-release params: - from: s3-release/bootstrap.py + file: s3-release/bootstrap.py - name: copy-release plan: From 404d692da19fe777c55c083e45ccd3f311f99ea9 Mon Sep 17 00:00:00 2001 From: Jeenal Shah Date: Tue, 2 Aug 2016 09:39:31 -0700 Subject: [PATCH 3/3] pipeline changes required to work with new pez ci instance --- ci/pipeline.yml | 53 +++++++++++++++++++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 930e895..1ffc946 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -25,6 +25,33 @@ resources: access_key_id: {{s3-access-key}} secret_access_key: {{s3-secret}} +- name: s3-release-latest + type: s3 + source: + bucket: {{s3-bucket}} + region_name: us-west-2 + versioned_file: latest.tgz + access_key_id: {{s3-access-key}} + secret_access_key: {{s3-secret}} + +- name: s3-release-version + type: s3 + source: + bucket: {{s3-bucket}} + region_name: us-west-2 + versioned_file: version.txt + access_key_id: {{s3-access-key}} + secret_access_key: {{s3-secret}} + +- name: s3-release-bootstrap + type: s3 + source: + bucket: {{s3-bucket}} + region_name: us-west-2 + versioned_file: bootstrap.py + access_key_id: {{s3-access-key}} + secret_access_key: {{s3-secret}} + jobs: - name: copy-bootstrap @@ -38,14 +65,14 @@ jobs: inputs: - name: github-repo outputs: - - name: s3-release + - name: s3-release-bootstrap run: path: sh - args: [ "-c", "cp github-repo/bootstrap.py s3-release" ] - - put: s3-release + args: [ "-c", "cp github-repo/bootstrap.py s3-release-bootstrap/bootstrap.py" ] + - put: s3-release-bootstrap params: - file: s3-release/bootstrap.py - + file: s3-release-bootstrap/bootstrap.py + - name: copy-release plan: - get: github-release @@ -71,13 +98,13 @@ jobs: inputs: - name: github-release outputs: - - name: s3-release + - name: s3-release-latest run: path: sh - args: [ "-c", "cp github-release/*.tgz s3-release/latest.tgz" ] - - put: s3-release + args: [ "-c", "cp github-release/*.tgz s3-release-latest/latest.tgz" ] + - put: s3-release-latest params: - file: s3-release/latest.tgz + file: s3-release-latest/latest.tgz - task: save-version config: platform: linux @@ -85,10 +112,10 @@ jobs: inputs: - name: github-release outputs: - - name: s3-release + - name: s3-release-version run: path: sh - args: [ "-c", "ls github-release/*.tgz | sed 's/github-release\\/.*-//' | sed 's/.tgz//' >s3-release/version.txt" ] - - put: s3-release + args: [ "-c", "ls github-release/*.tgz | sed 's/github-release\\/.*-//' | sed 's/.tgz//' >s3-release-version/version.txt" ] + - put: s3-release-version params: - file: s3-release/version.txt + file: s3-release-version/version.txt