Fix triggers for backup jobs
Fixes: PROD-32365
Change-Id: I10c1669ea89796ca1767a5c8a886cb6b412b5fac
diff --git a/jenkins/client/job/deploy/backupninja_backup.yml b/jenkins/client/job/deploy/backupninja_backup.yml
index 9f61701..147b32b 100644
--- a/jenkins/client/job/deploy/backupninja_backup.yml
+++ b/jenkins/client/job/deploy/backupninja_backup.yml
@@ -26,5 +26,7 @@
ASK_CONFIRMATION:
type: boolean
default: 'true'
- triggers:
- - timed: "${_param:backup_min} ${_param:backup_hour} ${_param:backup_day_of_month} ${_param:backup_month} ${_param:backup_day_of_week}"
+ trigger:
+ timer:
+ enabled: true
+ spec: "${_param:backup_min} ${_param:backup_hour} ${_param:backup_day_of_month} ${_param:backup_month} ${_param:backup_day_of_week}"
diff --git a/jenkins/client/job/deploy/galera_database_backup.yml b/jenkins/client/job/deploy/galera_database_backup.yml
index 9638ee0..8506316 100644
--- a/jenkins/client/job/deploy/galera_database_backup.yml
+++ b/jenkins/client/job/deploy/galera_database_backup.yml
@@ -26,5 +26,7 @@
SALT_MASTER_URL:
type: string
default: "${_param:jenkins_salt_api_url}"
- triggers:
- - timed: "${_param:backup_min} ${_param:backup_hour} ${_param:backup_day_of_month} ${_param:backup_month} ${_param:backup_day_of_week}"
+ trigger:
+ timer:
+ enabled: true
+ spec: "${_param:backup_min} ${_param:backup_hour} ${_param:backup_day_of_month} ${_param:backup_month} ${_param:backup_day_of_week}"