-
Notifications
You must be signed in to change notification settings - Fork 364
[JENKINS-61290] hard to see why a branch was not inspected - log them #318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
cfcfdf1
052fc77
f95276b
88797dd
731d988
24799f8
54bdc13
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -245,6 +245,12 @@ public boolean isExcluded(@NonNull SCMSourceRequest request, @NonNull SCMHead he | |
BitbucketRepository source = pullRequest.getSource().getRepository(); | ||
if (fullName.equalsIgnoreCase(source.getFullName()) | ||
&& pullRequest.getSource().getBranch().getName().equals(head.getName())) { | ||
// End the format with newline to avoid logging this | ||
// result blocked together with a later indexed branch | ||
request.listener().getLogger().format( | ||
"Ignoring %s because current strategy excludes branches " | ||
+ "that ARE also filed as a pull request%n" | ||
, head.toString()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As you report in #284 the output log seems to be
Instead of head.toString() could you use a method to produce a readable the branch name as in the above log |
||
return true; | ||
} | ||
} | ||
|
@@ -272,6 +278,10 @@ public boolean isExcluded(@NonNull SCMSourceRequest request, @NonNull SCMHead he | |
return false; | ||
} | ||
} | ||
request.listener().getLogger().format( | ||
"Ignoring %s because current strategy excludes branches " | ||
+ "that ARE NOT also filed as a pull request%n" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please write all words in lower case |
||
, head.toString()); | ||
return true; | ||
} | ||
return false; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please write all words in lower case