Update jenkinsfile-fullbuild

This commit is contained in:
khaled committed 2026-09-30 14:49:02 +00:00
1 parent 404208f20c
commit 7ff984c3c3
1 file changed
+13 -1
+13 -1
View File
@@ -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 {
}
}
}
}
}