Skip to content

Commit

Permalink
Avoid deleting workspace between builds
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlong committed Apr 8, 2019
1 parent 16eafac commit 1160382
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 0 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,4 @@ pipeline {
}
}
}

post {
always {
deleteDir()
}
}
}
5 changes: 1 addition & 4 deletions scripts/hab-build-and-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ rm /usr/bin/env
ln -s "$(hab pkg path core/coreutils)/bin/env" /usr/bin/env
hab pkg install -b core/coreutils core/bash core/node10 core/git core/aws-cli core/python2

npm config set cache "$(pwd)/.npm" --global # Set the npm cache to a directory in the current workspace so that it can be reused across ci builds
npm config set cache "$(pwd)/.npm" # Set the npm cache to a directory in the current workspace so that it can be reused across ci builds
npm ci --verbose --no-progress
npm rebuild node-sass # HACK sometimes node-sass build fails
npm rebuild node-sass # HACK sometimes node-sass build fails
npm rebuild node-sass # HACK sometimes node-sass build fails
npm run build
mkdir -p dist/pages
mv dist/*.html dist/pages
Expand Down

0 comments on commit 1160382

Please sign in to comment.