From 9d32c46993e2026bae5c3c59d5209f2b3afafeb5 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Fri, 31 May 2019 19:18:52 +0800 Subject: [PATCH] updated Jenkinsfile --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0f05e68d..1b2d4c46 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,9 +10,8 @@ pipeline { steps { echo "Building frontend..." sh "cd frontend" - sh "npm install -g yarn pm2" - sh "yarn install" - sh "npm run build:prod" + sh "/home/yeqing/.nvm/versions/node/v8.12.0/bin/yarn install" + sh "/home/yeqing/.nvm/versions/node/v8.12.0/bin/npm run build:prod" } } stage('Build Backend') {