Update jenkinsfile-fullbuild
This commit is contained in:
1 parent
404208f20c
commit
7ff984c3c3
1 file changed
+13
-1
+13
-1
@@ -17,6 +17,18 @@ pipeline {
|
||||
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') {
|
||||
steps {
|
||||
publishArtifact(file: 'app.tar.gz', path: 'demo/1.0.0')
|
||||
@@ -28,4 +40,4 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user