Skip to content

Commit

Permalink
[JENKINS-50790] Fix GitPluginTest#create_tag_for_build
Browse files Browse the repository at this point in the history
The docker container where the ATH is run doe snot provide a global git
user or mail, so I added the Custom Name and Mail option to the test so
it can properly tag things
  • Loading branch information
raul-arabaolaza committed Apr 17, 2018
1 parent 012364d commit 81589c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/java/plugins/GitPluginTest.java
Expand Up @@ -249,12 +249,11 @@ public void clean_before_checkout() {
public void create_tag_for_build() {
GitRepo repo = buildGitRepo();
repo.transferToDockerContainer(host, port);

job.useScm(GitScm.class)
.url(repoUrl)
.credentials(USERNAME)
.customNameAndMail("fake", "fake@mail.com")
.createTagForBuild();

job.addShellStep("git tag -n1");
job.save();
Build b = job.startBuild();
Expand Down

0 comments on commit 81589c3

Please sign in to comment.