修改Jenkins打包部署
This commit is contained in:
parent
44e7b47287
commit
c7df1f83a2
|
@ -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/'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@ pipeline {
|
|||
nodejs 'nodejs-10'
|
||||
}
|
||||
steps {
|
||||
sh 'npm update'
|
||||
sh 'npm install'
|
||||
sh 'npm run build'
|
||||
}
|
||||
|
|
Reference in New Issue