Skip to content

Commit

Permalink
[JENKINS-42000] Pick up SCM API update
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Feb 14, 2017
1 parent 85345b1 commit 49431e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 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.21</version>
<relativePath />
</parent>
<artifactId>github-branch-source</artifactId>
Expand All @@ -23,6 +23,7 @@
<properties>
<jenkins.version>1.609.3</jenkins.version>
<workflow.version>1.14</workflow.version>
<hpi-plugin.version>1.121</hpi-plugin.version> <!-- TODO remove with the timestamp -SNAPSHOT -->
</properties>

<scm>
Expand All @@ -35,7 +36,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>scm-api</artifactId>
<version>2.0.3</version>
<version>2.0.4-20170214.145531-1</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 49431e0

Please sign in to comment.