Build: correct tarball copying to out folder and upload to s3
This commit is contained in:
@@ -101,6 +101,14 @@ resources:
|
||||
secret_access_key: {{s3_secretkey}}
|
||||
region_name: {{s3_region}}
|
||||
regexp: sts4/fatjars/snapshots/concourse-language-server-(.*).jar
|
||||
- name: s3-atom-cf-manifest-yaml-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/(.*)cf-manifest-yaml-(.*).tgz
|
||||
- name: snapshot-website
|
||||
type: s3-multi
|
||||
source:
|
||||
@@ -491,3 +499,9 @@ jobs:
|
||||
params:
|
||||
text: |
|
||||
Concourse ${BUILD_PIPELINE_NAME}/${BUILD_JOB_NAME}/${BUILD_NAME} has failed!
|
||||
on_success:
|
||||
aggregate:
|
||||
- put: s3-atom-cf-manifest-yaml-snapshot
|
||||
params:
|
||||
file: out/*cf-manifest-yaml-*.tgz
|
||||
acl: public-read
|
||||
|
||||
@@ -27,10 +27,13 @@ node ./node_modules/bundle-deps/bundle-deps .
|
||||
|
||||
npm pack
|
||||
|
||||
ls *.tgz
|
||||
|
||||
timestamp=`date -u +%Y%m%d%H%M`
|
||||
for i in `ls *.tgz`; do
|
||||
basename=$(basename $i)
|
||||
cp $i $output/${basename/SNAPSHOT/$timestamp}
|
||||
length = ${#basename}
|
||||
cp $i $output/${basename:0:$length-4}-$timestamp${basename:$length-4:$length}
|
||||
done
|
||||
|
||||
ls -la $output
|
||||
Reference in New Issue
Block a user