WIP
CICD-UCN/QuizSystem/pipeline/head This commit looks good

This commit is contained in:
Karsten Jeppesen
2026-09-23 08:34:35 +02:00
parent 986de75770
commit e31c006e80
+18 -1
View File
@@ -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']])
}
}
}