mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 15:27:35 +08:00
Jenkins set git username and email with environment variables
This commit is contained in:
Vendored
+2
-3
@@ -154,7 +154,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stage('doxygen') {
|
stage('doxygen') {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
@@ -189,12 +188,12 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
|
GIT_COMMITTER_EMAIL = "bot@pixhawk.org"
|
||||||
|
GIT_COMMITTER_NAME = "PX4BuildBot"
|
||||||
PX4_FIRMWARE_TEST_BRANCH = "ecl_${env.JOB_BASE_NAME}"
|
PX4_FIRMWARE_TEST_BRANCH = "ecl_${env.JOB_BASE_NAME}"
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'export'
|
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')]) {
|
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')
|
sh('git clone --branch master --origin px4 https://${GIT_USER}:${GIT_PASS}@github.com/PX4/Firmware.git')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user