Skip to content

Commit

Permalink
Revert "chore: remove secretsmanager"
Browse files Browse the repository at this point in the history
  • Loading branch information
katebygrace authored Jan 5, 2024
1 parent 183a1e8 commit b2352b3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions devops/jobs/SAMLSSLExpirationCheck.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
saml_secret (required)
secret_key (required)
* SECURE_GIT_CREDENTIALS: secure-bot-user (required)
* SYSADMIN_REPO: repository containing SSL expiration check python script (required)
* SYSADMIN_BRANCH: default is master
* CONFIGURATION_REPO: name of config repo, default is https://github.com/edx/configuration.git
* CONFIGURATION_BRANCH: default is master
* REGION: default is us-east-1
Expand All @@ -32,6 +34,32 @@ class SAMLSSLExpirationCheck{


def gitCredentialId = extraVars.get('SECURE_GIT_CREDENTIALS','')

assert extraVars.containsKey('SYSADMIN_REPO') : "Please define a system admin repo where the SSL expiration check script is located"

parameters{
stringParam('SYSADMIN_REPO', extraVars.get('SYSADMIN_REPO'),
'Git repo containing sysadmin configuration which contains the ssl expiration check script.')
stringParam('SYSADMIN_BRANCH', extraVars.get('SYSADMIN_BRANCH', 'master'),
'e.g. tagname or origin/branchname')
}

multiscm{
git {
remote {
url('$SYSADMIN_REPO')
branch('$SYSADMIN_BRANCH')
if (gitCredentialId) {
credentials(gitCredentialId)
}
}
extensions {
cleanAfterCheckout()
pruneBranches()
relativeTargetDirectory('sysadmin')
}
}
}

triggers {
cron("H 15 * * * ")
Expand All @@ -53,6 +81,7 @@ class SAMLSSLExpirationCheck{
mailer(extraVars.get('NOTIFY_ON_FAILURE'), false, false)
}
}

}
}
}
Expand Down

0 comments on commit b2352b3

Please sign in to comment.