Skip to content

Commit

Permalink
bug/delete components job broken (#768)
Browse files Browse the repository at this point in the history
* add 20mi min storage

* fix bug in deleteprojects

* add better titles, and also fix bug in delete components
  • Loading branch information
clemensutschig authored Aug 11, 2020
1 parent f0fd896 commit c4a121a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion create-projects/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ podTemplate(
serviceAccount: 'jenkins'
) {
node(podLabel) {

currentBuild.description = "ODS Build #${env.BUILD_NUMBER} creating project: ${projectId}"
stage('Checkout ods-core') {
sh 'mkdir -p ods-core'
dir('ods-core') {
Expand Down
7 changes: 4 additions & 3 deletions delete-components/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ podTemplate(
) {
node(podLabel) {
stage('delete components') {
sh "oc delete all -n ${project_id}-dev -l app=${project_id}-${component_id}"
sh "oc delete all -n ${project_id}-test -l app=${project_id}-${component_id}"
sh "oc delete all -n ${project_id}-cd -l app=${project_id}-${component_id}"
currentBuild.description = "ODS Build #${env.BUILD_NUMBER} delete component '${componentId}' in project: ${projectId}"
sh "oc delete all -n ${projectId}-dev -l app=${projectId}-${componentId}"
sh "oc delete all -n ${projectId}-test -l app=${projectId}-${componentId}"
sh "oc delete all -n ${projectId}-cd -l app=${projectId}-${componentId}"
}
}
}
1 change: 1 addition & 0 deletions delete-projects/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ podTemplate(
if (!projectId) {
error ("No project ID passed - aborting")
}
currentBuild.description = "ODS Build #${env.BUILD_NUMBER} delete project: ${projectId}"
def exists = sh(
script: "oc project ${projectId}-cd &> /dev/null",
label: "Check if OpenShift project '${projectId}-cd' exists",
Expand Down

0 comments on commit c4a121a

Please sign in to comment.