archiveArtifacts

main
Kimsongwu 1 year ago
parent d57db59ca0
commit 33ef193ff9

16
Jenkinsfile vendored

@ -14,7 +14,7 @@ pipeline {
} }
} }
stage('🛠️构建') { stage('🛠️构建项目') {
steps { steps {
withDockerContainer('node:18-alpine') { withDockerContainer('node:18-alpine') {
sh 'npm -v' sh 'npm -v'
@ -25,6 +25,20 @@ pipeline {
} }
} }
} }
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 { post {

Loading…
Cancel
Save