Skip to content

Commit

Permalink
Fix flaky generator tests, no git users (elastic#7795) (elastic#8099)
Browse files Browse the repository at this point in the history
Some jenkins slaves do not seem to have a global git users. This changes adds a local git user during building.

Error seen on Jenkins:

```
09:56:08 Makefile:33: recipe for target 'git-add' failed
09:56:08 *** Please tell me who you are.
```

(cherry picked from commit 0b96c40)
  • Loading branch information
ruflin authored and jsoriano committed Aug 27, 2018
1 parent 5f338bb commit de098b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generator/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ test: prepare-test
${PREPARE_COMMAND} \
$(MAKE) git-init || exit 1 ; \
$(MAKE) update || exit 1 ; \
git config user.email "beats-jenkins@test.com" || exit 1 ; \
git config user.name "beats-jenkins" || exit 1 ; \
$(MAKE) git-add || exit 1 ; \
$(MAKE) check CHECK_HEADERS_DISABLED=y || exit 1 ; \
$(MAKE) || exit 1 ; \
Expand Down

0 comments on commit de098b5

Please sign in to comment.