diff --git a/Jenkinsfile-prd b/Jenkinsfile-prd index 8727138..29237d3 100644 --- a/Jenkinsfile-prd +++ b/Jenkinsfile-prd @@ -11,13 +11,16 @@ pipeline { nodejs 'nodejs-10' } steps { + sh 'npm update' sh 'npm install' sh 'npm run build' } } stage('Publish') { steps { - sh 'cp -rf ./dist/* /usr/local/joylink/jlclient' + sh 'mkdir -p /usr/local/joylink/official-website' + sh 'rm -rf /usr/local/joylink/official-website/*' + sh 'cp -rf ./dist/* /usr/local/joylink/official-website/' } } } diff --git a/Jenkinsfile-test b/Jenkinsfile-test index 510925d..29237d3 100644 --- a/Jenkinsfile-test +++ b/Jenkinsfile-test @@ -11,6 +11,7 @@ pipeline { nodejs 'nodejs-10' } steps { + sh 'npm update' sh 'npm install' sh 'npm run build' }