Skip to content

Commit

Permalink
fix: get correct change author's email for a PR even after merging wi…
Browse files Browse the repository at this point in the history
…th a base branch
  • Loading branch information
yoptar committed Apr 15, 2020
1 parent b3f7ab5 commit 2a6317d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ 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 @@ -44,7 +39,7 @@ node('cuda-module') {
throw e
}
finally {
emailext to: "\${DEFAULT_RECIPIENTS}, ${GIT_COMMIT_EMAIL}",
emailext to: "\${DEFAULT_RECIPIENTS}, ${CHANGE_AUTHOR_EMAIL}",
subject: "${env.JOB_NAME} - Build # ${currentBuild.number} - ${currentBuild.result}!",
body: '${BRANCH_NAME} - ${BUILD_URL}',
attachLog: true
Expand Down

0 comments on commit 2a6317d

Please sign in to comment.