Skip to content

Commit

Permalink
fix npm in jenkins pipeline file
Browse files Browse the repository at this point in the history
OIL-345
  • Loading branch information
subsend committed Jul 5, 2019
1 parent 156dc46 commit 5677998
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions JenkinsFileReleaseAndDeployProduction
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ def sendPerSlack(color, status) {

node {

//Setup nodeJS from nodeJS Jenkins Plugin
env.NODEJS_HOME = "${tool 'NodeJs 11.14.0'}"
env.PATH = "${env.NODEJS_HOME}/bin:${env.PATH}"

try {
stage('Checkout') {
checkout scm
Expand Down
5 changes: 3 additions & 2 deletions releaseOil.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ then
exit 1
fi

echo "### Installing dependencies"
echo "NPM version check"
echo "### NPM version check"
npm -v

echo "### Installing dependencies"
npm install || exit 1


Expand Down

0 comments on commit 5677998

Please sign in to comment.