removed Workspace Check and added Log Rotation
This commit is contained in:
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@@ -21,6 +21,12 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
options {
|
||||||
|
// Log-Rotation: Bewahre nur die letzten 10 Builds auf
|
||||||
|
// und lösche Berichte/Artefakte von Builds, die älter als 7 Tage sind.
|
||||||
|
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10', daysToKeepStr: '7'))
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout Source') {
|
stage('Checkout Source') {
|
||||||
steps {
|
steps {
|
||||||
@@ -66,19 +72,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Workspace Check') {
|
|
||||||
steps {
|
|
||||||
container('dotnet8') {
|
|
||||||
// Listet alle Dateien auf.
|
|
||||||
// Wenn du hier Ordner wie 'bin' oder 'obj' siehst, BEVOR dotnet build lief,
|
|
||||||
// dann bleibt der Workspace erhalten.
|
|
||||||
sh 'ls -R'
|
|
||||||
|
|
||||||
// Optional: Erstelle eine Testdatei, um es beim nächsten Mal zu sehen
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Set Build Name') {
|
stage('Set Build Name') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
|||||||
Reference in New Issue
Block a user