Skip to content

Commit

Permalink
ZENG-172181: Additional pom.xml updates for dependabot update. Fixed …
Browse files Browse the repository at this point in the history
…FindBugs issue.
  • Loading branch information
pfhdzg0 committed Jul 16, 2021
1 parent e72c2b3 commit 7de0aa9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>2.21</version>
<version>3.2</version>
<relativePath />
</parent>
<groupId>com.compuware.jenkins</groupId>
Expand All @@ -14,8 +14,9 @@
<packaging>hpi</packaging>

<properties>
<slf4jVersion>1.7.26</slf4jVersion>
<!-- Baseline Jenkins version you use to build the plugin. Users must have this version or newer to run. -->
<jenkins.version>2.21</jenkins.version>
<jenkins.version>2.222.4</jenkins.version>
<java.level>8</java.level>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskLi
PrintStream logger = listener.getLogger();
CpwrGlobalConfiguration globalConfig = CpwrGlobalConfiguration.get();
VirtualChannel vChannel = launcher.getChannel();
if (vChannel == null) {
throw new IllegalStateException("Could not get virtual channel from launcher."); //$NON-NLS-1$
}

// Check CLI compatibility
FilePath cliDirectory = new FilePath(vChannel, globalConfig.getTopazCLILocation(launcher));
Expand Down

0 comments on commit 7de0aa9

Please # to comment.