Skip to content

Commit

Permalink
Fallback to GIT_URL_1
Browse files Browse the repository at this point in the history
  • Loading branch information
Menno Pruijssers committed Sep 27, 2018
1 parent 1d5c38b commit 6732522
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ public final void perform(final Run<?, ?> build, FilePath workspace, final Launc
Logger logger = new Logger(listener.getLogger());

final String branch = environment.get("GIT_BRANCH");
final String gitUrl = environment.get("GIT_URL");
String gitUrl = environment.get("GIT_URL");
if (gitUrl == null) {
gitUrl = environment.get("GIT_URL_1");
}

final UberallsClient uberallsClient = getUberallsClient(logger, gitUrl, branch);

Expand Down

0 comments on commit 6732522

Please sign in to comment.