Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1368 from USDAForestService/Fix-Author-Bug
Browse files Browse the repository at this point in the history
Fix Author Bug
  • Loading branch information
kilara77 authored Jun 10, 2020
2 parents 0f21fd1 + 01e409a commit 362f1d6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,14 @@ post{
GIT_AUTHOR_NAME=$(git --no-pager show -s --format='%an' $GIT_COMMIT)
GIT_EMAIL=$(git --no-pager show -s --format='%ae' $GIT_COMMIT)
rm -f ${WORKSPACE}/pipeline.properties
touch ${WORKSPACE}/pipeline.properties
rm -f ${WORKSPACE}/pipeline.properties
touch ${WORKSPACE}/pipeline.properties
AuthorVar="GIT_AUTHOR_NAME=$GIT_AUTHOR_NAME"
echo $AuthorVar > ${WORKSPACE}/pipeline.properties
'''

properties = readProperties file: 'pipeline.properties'
properties = readProperties file: 'pipeline.properties'
env.LCHECKOUT_STATUS = "${CHECKOUT_STATUS}"
env.LINSTALL_DEPENDENCIES_STATUS = "${INSTALL_DEPENDENCIES_STATUS}"
env.LRUN_LINT_STATUS = "${RUN_LINT_STATUS}"
Expand Down Expand Up @@ -475,6 +478,9 @@ post{
GIT_EMAIL=$(git --no-pager show -s --format='%ae' $GIT_COMMIT)
rm -f ${WORKSPACE}/pipeline.properties
touch ${WORKSPACE}/pipeline.properties
AuthorVar="GIT_AUTHOR_NAME=$GIT_AUTHOR_NAME"
echo $AuthorVar > ${WORKSPACE}/pipeline.properties
'''

properties = readProperties file: 'pipeline.properties'
Expand Down

0 comments on commit 362f1d6

Please sign in to comment.