-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
Configuration:
- Windows Server 2019
- Jenkins 2.440.1
- GitHub Integration Plugin 0.7.0
After a lot of work, we finally got this plugin working. Except when trying to whitelist two or more branches under the Experimental: Branch Restriction > Whitelist Target Restrictions section.
We have the following top-level protected branches: DEV, RELEASE, PROD, and HOTFIX.
In my test repo, I have PR from Features/100-testing merging into DEV.
If I set the WhiteList to DEV it works. If I set it to ABC, it fails - as expected.
BUT, if I try and use a multi-line, like so:

It fails, with this log entry:

Before searching the source code, I also tried using semi-colons (:), commas (,), and spaces ( ), which also failed.
I don't understand why Java's System.lineSeparator() doesn't recognize Jenkin's line separator.
public class GitHubPRBranchRestriction implements Describable<GitHubPRBranchRestriction> {
private static final String LINE_SEPARATOR = System.lineSeparator();
Metadata
Metadata
Assignees
Labels
No labels