Do not cat npm-shrinkwrap.json

Upload it to logs instead. This is done because we suspect that
executing cat on a large text file does not play well with
jenkins.

Change-Id: I8512c9b132f2707db265633d5e16378b1d87d4da
This commit is contained in:
Michael Krotscheck
2016-04-07 13:30:09 -07:00
parent d2981e1b8d
commit af693d57c6
2 changed files with 15 additions and 1 deletions

View File

@@ -37,6 +37,10 @@
source: 'reports/**' source: 'reports/**'
keep-hierarchy: true keep-hierarchy: true
copy-after-failure: true copy-after-failure: true
- target: 'logs/$LOG_PATH'
source: 'npm-shrinkwrap.json'
keep-hierarchy: false
copy-after-failure: false
# Builds and uploads a tarball using NPM. # Builds and uploads a tarball using NPM.
- job-template: - job-template:
@@ -69,6 +73,13 @@
project: '{name}' project: '{name}'
site: '{tarball-site}' site: '{tarball-site}'
- console-log - console-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'npm-shrinkwrap.json'
keep-hierarchy: false
copy-after-failure: false
# Builds and uploads a draft version of the project to docs-draft. # Builds and uploads a draft version of the project to docs-draft.
- job-template: - job-template:
@@ -113,6 +124,10 @@
source: 'dist/**' source: 'dist/**'
keep-hierarchy: true keep-hierarchy: true
copy-after-failure: false copy-after-failure: false
- target: 'logs/$LOG_PATH'
source: 'npm-shrinkwrap.json'
keep-hierarchy: false
copy-after-failure: false
# Builds a draft application and uploads it to docs-draft. To use this build, # Builds a draft application and uploads it to docs-draft. To use this build,
# your Gruntfile must declare a target named "build:draft" # your Gruntfile must declare a target named "build:draft"

View File

@@ -272,7 +272,6 @@
# Execute shrinkwrap, and output the dependencies that were used. # Execute shrinkwrap, and output the dependencies that were used.
npm prune # https://github.com/npm/npm/issues/6298 npm prune # https://github.com/npm/npm/issues/6298
npm shrinkwrap npm shrinkwrap
cat ./npm-shrinkwrap.json
- builder: - builder:
name: xvfb-start name: xvfb-start