Skip to content

Commit

Permalink
move cleanup to the individual stages for koji/copr
Browse files Browse the repository at this point in the history
the main stage doesn't have an agent anymore (and doesn't need one)

Fixes: ab3ef60
  • Loading branch information
evgeni authored and ekohl committed Nov 10, 2023
1 parent ab3ef60 commit 4ce5627
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions theforeman.org/pipelines/release/foreman-x-develop-release.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ pipeline {
}
}
}
post {
cleanup {
deleteDir()
}
}
}
stage('Build Copr RPM') {
agent { label 'rpmbuild' }
Expand Down Expand Up @@ -105,6 +110,11 @@ pipeline {
}
}
}
post {
cleanup {
deleteDir()
}
}
}
stage('Build DEB') {
agent { label 'debian' }
Expand Down Expand Up @@ -177,9 +187,5 @@ pipeline {
failure {
notifyDiscourse(env, "${project_name} package release pipeline failed:", currentBuild.description)
}
cleanup {
echo "Cleaning up workspace"
deleteDir()
}
}
}

0 comments on commit 4ce5627

Please sign in to comment.