Skip to content

Commit

Permalink
[JENKINS-44508] Set user.name and user.email before trying to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-arabaolaza committed May 26, 2017
1 parent 3b0a9f6 commit 99f6aee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/plugins/GitUserContentTest.java
Expand Up @@ -40,6 +40,8 @@ public void userContentGitTest() throws Exception {
" git url: '%suserContent.git/'\n" +
" writeFile encoding: 'UTF-8', file: '%s', text: '%s'\n" +
" sh 'git add %s'\n" +
" sh 'git config user.email \"you@example.com\"'\n" +
" sh 'git config user.name \"Your Name\"'\n" +
" sh 'git commit -m \"Including new file\"'\n" +
" sh 'git push --set-upstream origin master'\n" +
"}", jenkins.url, NEW_FILE_NAME, NEW_FILE_CONTENT, NEW_FILE_NAME));
Expand Down

0 comments on commit 99f6aee

Please sign in to comment.