Template
Bugfix
This commit is contained in:
Vendored
+18
-1
@@ -35,10 +35,20 @@ pipeline {
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Remove stale files') {
|
||||
steps {
|
||||
echo "Remove stale files"
|
||||
sh "rm -f $CHANGED_FILES_FILE"
|
||||
sh "rm -f $TEXT_FILES_FILE"
|
||||
sh "rm -f $SCAN_JSON_FILE"
|
||||
sh "rm -f $REPORT_FILE"
|
||||
}
|
||||
}
|
||||
|
||||
stage('List folder content') {
|
||||
steps {
|
||||
echo "List folder content"
|
||||
sh "ls -l"
|
||||
sh "ls -la"
|
||||
sh "export"
|
||||
}
|
||||
}
|
||||
@@ -128,6 +138,13 @@ pipeline {
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts allowEmptyArchive: true, artifacts: "${CHANGED_FILES_FILE}, ${TEXT_FILES_FILE}, ${SCAN_JSON_FILE}, ${REPORT_FILE}"
|
||||
// Cleanup after build (if success)
|
||||
cleanWs(cleanWhenNotBuilt: false,
|
||||
deleteDirs: true,
|
||||
disableDeferredWipeout: true,
|
||||
notFailBuild: true,
|
||||
patterns: [[pattern: '.gitignore', type: 'INCLUDE'],
|
||||
[pattern: '.propsfile', type: 'EXCLUDE']])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user