Skip to content

Commit

Permalink
#68 : ignore source in case isIgnoreOnPushNotifications for git
Browse files Browse the repository at this point in the history
  • Loading branch information
ca-stefan-cordes committed Dec 6, 2019
1 parent 5d7a9cb commit 6372da5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,12 @@ private boolean matchesMercurial(URIish url, URI hgUri) {

private boolean match(SCMSource scm, URIish url) {
if (scm instanceof GitSCMSource) {
String gitRemote = ((GitSCMSource) scm).getRemote();
GitSCMSource gitSCMSource = (GitSCMSource) scm;
if (gitSCMSource.isIgnoreOnPushNotifications()) {
LOGGER.log(Level.FINEST, "gitSCMSource does not want to be triggered : {0}",gitSCMSource);
return false;
}
String gitRemote = gitSCMSource.getRemote();
URIish urIish;
try {
urIish = new URIish(gitRemote);
Expand Down

0 comments on commit 6372da5

Please sign in to comment.