Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ private static boolean existsHook(GHOrganization org, String url) throws IOExcep
}

public static void register(GitHub hub, String orgName) throws IOException {
String rootUrl = Jenkins.getActiveInstance().getRootUrl();
String rootUrl = System.getenv("JENKINS_HOOK_URL");
if (rootUrl == null) {
rootUrl = Jenkins.get().getRootUrl();
}
if (rootUrl == null) {
return;
}
Expand Down