From f8d11c01b8c46635c06da67570f735fa000a9296 Mon Sep 17 00:00:00 2001 From: Joan Date: Wed, 24 Oct 2018 14:59:49 +0200 Subject: [PATCH] install gulp globally --- Jenkinsfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6eea83e4a..be7c5c998 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,10 +17,6 @@ switch (env.BRANCH_NAME) { } node { - //env.NODEJS_HOME = "${tool 'node-8.12.0'}" - // on linux / mac - //env.PATH="${env.NODEJS_HOME}/bin:${env.PATH}" - stage ('Print environment variables') { echo "Branch ${env.BRANCH_NAME}, build number ${env.BUILD_NUMBER}, environment ${env.NODE_ENV}" } @@ -29,6 +25,7 @@ node { } stage ('Install Node dependencies') { nodejs('node-8.12.0') { + sh "npm install gulp -g" sh "npm install --only=prod" sh "npm install --only=dev" sh "gulp install"