Merge "Updated tarball/client dist upload for javascript"

This commit is contained in:
Jenkins 2014-01-29 00:21:23 +00:00 committed by Gerrit Code Review
commit ddc92ed423

View File

@ -31,10 +31,13 @@
source: 'reports/**' source: 'reports/**'
keep-hierarchy: true keep-hierarchy: true
copy-after-failure: true copy-after-failure: true
# We're uploading the compiled app as a pre-release sanity check,
# much like we do with docs builds.
- target: 'docs-draft/$LOG_PATH' - target: 'docs-draft/$LOG_PATH'
source: 'dist/**' source: 'dist/**'
keep-hierarchy: true keep-hierarchy: true
copy-after-failure: true copy-after-failure: false
node: '{node}' node: '{node}'
- job-template: - job-template:
@ -55,9 +58,14 @@
- shell: | - shell: |
#!/bin/bash -xe #!/bin/bash -xe
# Clean/create a tarball directory
rm -rf tarballs
mkdir -p tarballs
# Create an archive tarball.
tar -czf {name}-$PROJECT_VER.tar.gz dist/ tar -czf {name}-$PROJECT_VER.tar.gz dist/
cp {name}-$PROJECT_VER.tar.gz dist/{name}-latest.tar.gz cp {name}-$PROJECT_VER.tar.gz tarballs/{name}-latest.tar.gz
mv {name}-$PROJECT_VER.tar.gz dist/ mv {name}-$PROJECT_VER.tar.gz tarballs/
publishers: publishers:
- console-log - console-log
- coverage-log - coverage-log
@ -68,7 +76,8 @@
source: 'reports/**' source: 'reports/**'
keep-hierarchy: true keep-hierarchy: true
copy-after-failure: true copy-after-failure: true
- tarball: - target: 'tarballs/{name}/'
project: '{name}' source: 'tarballs/*.tar.gz'
site: '{tarball-site}' keep-hierarchy: false
copy-after-failure: false
node: '{node}' node: '{node}'