Skip to content

Commit

Permalink
Merge pull request #66 from rysteboe/JENKINS-49075
Browse files Browse the repository at this point in the history
[JENKINS-49075] Bump parent pom and a few other dependencies
  • Loading branch information
jglick committed Jan 30, 2018
2 parents 049fb5c + a40eb9e commit 713d473
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 17 deletions.
47 changes: 32 additions & 15 deletions pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>2.36</version>
<version>3.2</version>
<relativePath />
</parent>
<groupId>org.jenkins-ci.plugins</groupId>
Expand All @@ -31,9 +31,8 @@
</scm>

<properties>
<jenkins.version>1.642.4</jenkins.version>
<java.level>7</java.level>
<jenkins-test-harness.version>2.30</jenkins-test-harness.version>
<jenkins.version>2.60.3</jenkins.version>
<java.level>8</java.level>
</properties>

<repositories>
Expand All @@ -54,7 +53,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials</artifactId>
<version>2.1.11</version>
<version>2.1.13</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand All @@ -64,64 +63,82 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>authentication-tokens</artifactId>
<version>1.1</version>
<version>1.3</version>
</dependency>

<!-- for Pipeline-based unit tests -->
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>scm-api</artifactId>
<version>2.1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>structs</artifactId>
<version>1.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-api</artifactId>
<version>2.5</version>
<version>2.18</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
<version>2.9</version>
<version>2.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-step-api</artifactId>
<version>2.9</version>
<version>2.11</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-cps</artifactId>
<version>2.21</version>
<version>2.39</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-cps</artifactId>
<version>2.21</version>
<version>2.39</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-job</artifactId>
<version>2.7</version>
<version>2.12.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-durable-task-step</artifactId>
<version>2.5</version>
<version>2.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-basic-steps</artifactId>
<version>2.2</version>
<version>2.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-support</artifactId>
<version>2.14</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-support</artifactId>
<version>2.10</version>
<version>2.14</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
Expand Down
Expand Up @@ -80,8 +80,7 @@ private DockerFingerprints() {} // no instantiation
* @throws IOException Fingerprint loading error
*/
public static @CheckForNull Fingerprint of(@Nonnull String id) throws IOException {
final Jenkins jenkins = Jenkins.getInstance(); // should be not null
return jenkins != null ? jenkins.getFingerprintMap().get(getFingerprintHash(id)) : null;
return Jenkins.getInstance().getFingerprintMap().get(getFingerprintHash(id));
}

private static @CheckForNull Fingerprint ofNoException(@Nonnull String id) {
Expand Down

0 comments on commit 713d473

Please sign in to comment.