Skip to content

Commit 1f504e8

Browse files
author
nadeemshahzad
committed
fix: iter7
1 parent 2b26a1c commit 1f504e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

devops/jobs/SAMLSSLExpirationCheck.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ package devops.jobs
2222
import static org.edx.jenkins.dsl.Constants.common_logrotator
2323

2424
class SAMLSSLExpirationCheck{
25-
public static def job = { dslFactory, extraVars ->
25+
public static def job = { dslFactory, extraVars ->
2626
assert extraVars.containsKey('DEPLOYMENTS') : "Please define DEPLOYMENTS. It should be a list of strings."
2727
assert !(extraVars.get('DEPLOYMENTS') instanceof String) : "Make sure DEPLOYMENTS is a list and not a string"
28-
extraVars.get('DEPLOYMENTS').each { deployment ->
29-
30-
dslFactory.job(extraVars.get("FOLDER_NAME","Monitoring") + "/saml-ssl-expiration-check-${deployment}") {
28+
extraVars.get('DEPLOYMENTS').each { deployment, configuration ->
29+
configuration.environments.each { environment, inner_config ->
30+
dslFactory.job(extraVars.get("FOLDER_NAME","Monitoring") + "/saml-ssl-expiration-check-${environment}-${deployment}") {
3131
logRotator common_logrotator
3232

3333

0 commit comments

Comments
 (0)