diff options
author | Nick Vatamaniuc <vatamane@gmail.com> | 2021-11-23 11:13:42 -0500 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2021-11-23 15:44:31 -0500 |
commit | ff76c51c3350ed33d7cc81b0901ae87f76f05cf7 (patch) | |
tree | 58faf32b29856e063800b80b59ffa257c0f00316 | |
parent | b78ccf18cb4ed6e183ed0bf4e5cbe40d7a7dc493 (diff) | |
download | couchdb-ff76c51c3350ed33d7cc81b0901ae87f76f05cf7.tar.gz |
Fix Jenkins email quoting failures
Should fix:
```
Warning: A secret was passed to "mail" using Groovy String interpolation, which is insecure.
```
-rw-r--r-- | build-aux/Jenkinsfile.full | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full index 9fc131ff7..fd8f525e5 100644 --- a/build-aux/Jenkinsfile.full +++ b/build-aux/Jenkinsfile.full @@ -54,7 +54,6 @@ pipeline { environment { COUCHAUTH = credentials('couchdb_vm2_couchdb') - recipient = 'notifications@couchdb.apache.org' COUCHDB_IO_LOG_DIR = '/tmp/couchjslogs' // Following fix an issue with git <= 2.6.5 where no committer // name or email are present for reflog, required for git clone @@ -795,20 +794,20 @@ pipeline { post { success { - mail to: "${env.recipient}", - replyTo: "${env.recipient}", + mail to: 'notifications@couchdb.apache.org', + replyTo: 'notifications@couchdb.apache.org', subject: "[Jenkins] SUCCESS: ${currentBuild.fullDisplayName}", body: "Yay, we passed. ${env.RUN_DISPLAY_URL}" } unstable { - mail to: "${env.recipient}", - replyTo: "${env.recipient}", + mail to: 'notifications@couchdb.apache.org', + replyTo: 'notifications@couchdb.apache.org', subject: "[Jenkins] SUCCESS: ${currentBuild.fullDisplayName}", body: "Eep! Build is unstable... ${env.RUN_DISPLAY_URL}" } failure { - mail to: "${env.recipient}", - replyTo: "${env.recipient}", + mail to: 'notifications@couchdb.apache.org', + replyTo: 'notifications@couchdb.apache.org', subject: "[Jenkins] FAILURE: ${currentBuild.fullDisplayName}", body: "Boo, we failed. ${env.RUN_DISPLAY_URL}" } |