Fix condition and pipeline name
Related: PROD-32815
Change-Id: I37c51d1fe12576850cada88f6e80071165faf980
diff --git a/galera-database-backup-pipeline.groovy b/galera-database-backup-pipeline.groovy
index 7d8c154..8239aa6 100644
--- a/galera-database-backup-pipeline.groovy
+++ b/galera-database-backup-pipeline.groovy
@@ -58,8 +58,8 @@
salt.cmdRun(pepperEnv, backupNode, "su root -c '/usr/local/bin/innobackupex-runner.sh -c'")
}
stage('Backup Dogtag') {
- if (!salt.getPillar(pepperEnv, "I@salt:master", "I@dogtag:server:enabled")['return'].isEmpty()) {
- dogtagBackupBuild = build(job: 'backupninja-backup-pipeline', parameters: [
+ if (!salt.getMinions(pepperEnv, "I@dogtag:server:enabled").isEmpty()) {
+ dogtagBackupBuild = build(job: 'backupninja_backup', parameters: [
[$class: 'StringParameterValue', name: 'SALT_MASTER_URL', value: SALT_MASTER_URL],
[$class: 'StringParameterValue', name: 'SALT_MASTER_CREDENTIALS', value: SALT_MASTER_CREDENTIALS],
[$class: 'BooleanParameterValue', name: 'ASK_CONFIRMATION', value: "false"],