|
|
|
|
@ -14,17 +14,31 @@ pipeline {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stage('🛠️构建') {
|
|
|
|
|
stage('🛠️构建项目') {
|
|
|
|
|
steps {
|
|
|
|
|
withDockerContainer('node:18-alpine') {
|
|
|
|
|
sh 'npm -v'
|
|
|
|
|
sh 'npm config set registry https://registry.npmmirror.com'
|
|
|
|
|
sh 'npm install'
|
|
|
|
|
sh 'npm run build'
|
|
|
|
|
sh 'ls -al'
|
|
|
|
|
sh 'ls -al'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stage('🎁打包制品'){
|
|
|
|
|
steps {
|
|
|
|
|
dir('dist') {
|
|
|
|
|
sh 'ls -al'
|
|
|
|
|
sh 'tar -zcvf gofishingweb.tar.gz *'
|
|
|
|
|
archiveArtifacts artifacts: 'gofishingweb.tar.gz',
|
|
|
|
|
allowEmptyArchive: true,
|
|
|
|
|
fingerprint: true,
|
|
|
|
|
onlyIfSuccessful: true
|
|
|
|
|
sh 'ls -al'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post {
|
|
|
|
|
|