Skip to content

Commit

Permalink
Jenkins set git username and email with environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed May 5, 2018
1 parent 3639087 commit e494a4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ pipeline {
}
}


stage('doxygen') {
agent {
docker {
Expand Down Expand Up @@ -189,12 +188,12 @@ pipeline {
}
}
environment {
GIT_COMMITTER_EMAIL = "bot@pixhawk.org"
GIT_COMMITTER_NAME = "PX4BuildBot"
PX4_FIRMWARE_TEST_BRANCH = "ecl_${env.JOB_BASE_NAME}"
}
steps {
sh 'export'
sh('git config user.email "bot@pixhawk.org"')
sh('git config user.name "PX4BuildBot"')
withCredentials([usernamePassword(credentialsId: 'px4buildbot_github', passwordVariable: 'GIT_PASS', usernameVariable: 'GIT_USER')]) {
sh('git clone --branch master --origin px4 https://${GIT_USER}:${GIT_PASS}@github.com/PX4/Firmware.git')
}
Expand Down

0 comments on commit e494a4e

Please sign in to comment.