Skip to content

Commit

Permalink
Hide emails by treating them as secrets. (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
micaeljtoliveira authored Jul 6, 2023
1 parent 5582663 commit 2e034e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ pipeline {
// Run every Sunday at 3 am
cron('0 3 * * 0')
}
environment {
EMAILS = credentials('CCRecipesEmails')
}
stages {
stage('Tests') {
steps {
Expand All @@ -41,7 +44,7 @@ pipeline {
emailext (
body: "${currentBuild.currentResult}: Job ${env.JOB_NAME} build ${env.BUILD_NUMBER}\n More info at: ${env.BUILD_URL}",
subject: "Jenkins Build ${currentBuild.currentResult}: Job ${env.JOB_NAME}",
to: '[email protected], [email protected]'
to: "${env.EMAILS}"
)
}
cleanup {
Expand Down

0 comments on commit 2e034e4

Please sign in to comment.