Skip to content

Commit

Permalink
[FIXED JENKINS-42000] Fix the tests (and presumably the bug too)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Feb 14, 2017
1 parent 6570519 commit fef4a14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pom.xml
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>2.19</version>
<version>2.21</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -66,7 +66,8 @@

<properties>
<jenkins.version>1.642.3</jenkins.version>
<scm-api.version>2.0.3</scm-api.version>
<scm-api.version>2.0.4-20170214.145531-1</scm-api.version>
<hpi-plugin.version>1.121</hpi-plugin.version> <!-- TODO remove with the timestamp -SNAPSHOT -->
</properties>

<repositories>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/jenkins/branch/OrganizationFolder.java
Expand Up @@ -1194,7 +1194,7 @@ private boolean recognizes(Map<String, Object> attributes, MultiBranchProjectFac
}

@Override
public void complete() throws IllegalStateException, InterruptedException {
public void complete() throws IllegalStateException, IOException, InterruptedException {
try {
MultiBranchProjectFactory factory = null;
Map<String, Object> attributes = Collections.<String, Object>emptyMap();
Expand Down Expand Up @@ -1257,7 +1257,7 @@ public void complete() throws IllegalStateException, InterruptedException {
}
observer.created(project);
project.scheduleBuild();
} catch (InterruptedException x) {
} catch (InterruptedException | IOException x) {
throw x;
} catch (Exception x) {
x.printStackTrace(listener.error("Failed to create or update a subproject " + projectName));
Expand Down

0 comments on commit fef4a14

Please sign in to comment.