Skip to content

Commit

Permalink
chore: email tests results to the last committer for a PR (deeppavlov…
Browse files Browse the repository at this point in the history
…#1177)

* chore: test getting last committer email to send test results

* fix: try to get the email differently

* fix: try to send the email differently

* fix: try to concatenate stings with different emails

* chore: turn full testing back on

* chore: test an ok looking string for email list

* chore: turn full testing back on
  • Loading branch information
yoptar authored Apr 15, 2020
1 parent 6f9984d commit b3f7ab5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ node('cuda-module') {
checkout scm
}
stage('Setup') {
GIT_COMMIT_EMAIL = sh (
script: "git --no-pager show -s --format='%ae'",
returnStdout: true
).trim()

env.TFHUB_CACHE_DIR="tfhub_cache"
sh """
virtualenv --python=python3.7 '.venv-$BUILD_NUMBER'
Expand Down Expand Up @@ -39,7 +44,7 @@ node('cuda-module') {
throw e
}
finally {
emailext to: '${DEFAULT_RECIPIENTS}',
emailext to: "\${DEFAULT_RECIPIENTS}, ${GIT_COMMIT_EMAIL}",
subject: "${env.JOB_NAME} - Build # ${currentBuild.number} - ${currentBuild.result}!",
body: '${BRANCH_NAME} - ${BUILD_URL}',
attachLog: true
Expand Down

0 comments on commit b3f7ab5

Please sign in to comment.