Skip to content

Commit

Permalink
Merge pull request #119 from stephenc/jenkins-42000
Browse files Browse the repository at this point in the history
[JENKINS-42000] Pick up SCM API update
  • Loading branch information
stephenc committed Feb 14, 2017
2 parents 85345b1 + 8b54a60 commit 2531b82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>2.19</version>
<version>2.22</version>
<relativePath />
</parent>
<artifactId>github-branch-source</artifactId>
Expand Down Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>scm-api</artifactId>
<version>2.0.3</version>
<version>2.0.4</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand Down
Expand Up @@ -433,7 +433,8 @@ public void visitSource(String sourceName, SCMSourceObserver observer)
throw new AbortException(repoOwner + " does not correspond to a known GitHub User Account or Organization");
}

private void add(TaskListener listener, SCMSourceObserver observer, GHRepository repo) throws InterruptedException {
private void add(TaskListener listener, SCMSourceObserver observer, GHRepository repo)
throws InterruptedException, IOException {
String name = repo.getName();
if (!Pattern.compile(pattern).matcher(name).matches()) {
listener.getLogger().format("Ignoring %s%n", name);
Expand Down

0 comments on commit 2531b82

Please sign in to comment.