Update jenkinsfile-fullbuild
This commit is contained in:
1 parent
404208f20c
commit
7ff984c3c3
1 file changed
+12
@@ -17,6 +17,18 @@ pipeline {
|
|||||||
sonarScan('lab-demo')
|
sonarScan('lab-demo')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Package') {
|
||||||
|
steps {
|
||||||
|
container('build') {
|
||||||
|
sh '''
|
||||||
|
tar -czf app.tar.gz target/*.jar 2>/dev/null || \
|
||||||
|
tar -czf app.tar.gz src/ requirements.txt 2>/dev/null || \
|
||||||
|
tar -czf app.tar.gz .
|
||||||
|
ls -lh app.tar.gz
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Publish') {
|
stage('Publish') {
|
||||||
steps {
|
steps {
|
||||||
publishArtifact(file: 'app.tar.gz', path: 'demo/1.0.0')
|
publishArtifact(file: 'app.tar.gz', path: 'demo/1.0.0')
|
||||||
|
|||||||
Reference in new issue
Block a user