Skip to content

Commit

Permalink
[CI] Setup git config globally (elastic#21562)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Oct 6, 2020
1 parent 42ac277 commit da2e481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ def withBeatsEnv(Map args = [:], Closure body) {
// See https://github.com/elastic/beats/issues/17787.
sh(label: 'check git config', script: '''
if [ -z "$(git config --get user.email)" ]; then
git config user.email "beatsmachine@users.noreply.github.com"
git config user.name "beatsmachine"
git config --global user.email "beatsmachine@users.noreply.github.com"
git config --global user.name "beatsmachine"
fi''')
}
try {
Expand Down

0 comments on commit da2e481

Please sign in to comment.