Skip to content

Commit

Permalink
Execute delete channel again
Browse files Browse the repository at this point in the history
  • Loading branch information
maximenoel8 committed Nov 13, 2024
1 parent a9f58fd commit f1bfbf7
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,21 @@ def run(params) {
stage("Extract the controller and server hostname") {
try {
controllerHostname = sh(
script: """
script: """
set -e
cd ${localSumaformDirPath}
terraform output -json configuration | jq -r '.controller.hostname'
""",
returnStdout: true
returnStdout: true
).trim()

serverHostname = sh(
script: """
script: """
set -e
cd ${localSumaformDirPath}
terraform output -json configuration | jq -r '.server.hostname'
""",
returnStdout: true
returnStdout: true
).trim()

// Print the values for confirmation
Expand All @@ -134,9 +134,7 @@ def run(params) {
}

stage('Delete software channels') {
if (product_version != "uyuni") {
sh(script: "${SUSEManagerCleanerProgram} --url ${serverHostname} --product_version ${product_version} ${defaultResourcesToDeleteArgs} --mode delete_software_channels")
}
sh(script: "${SUSEManagerCleanerProgram} --url ${serverHostname} --product_version ${product_version} ${defaultResourcesToDeleteArgs} --mode delete_software_channels")
}

stage('Delete activation keys') {
Expand Down

0 comments on commit f1bfbf7

Please sign in to comment.