Skip to content

Commit

Permalink
Merge pull request #93 from basil/pom
Browse files Browse the repository at this point in the history
Update plugin parent POM and BOM
  • Loading branch information
jglick authored Apr 21, 2022
2 parents a61b0d0 + 8dc327f commit 98d67a2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
18 changes: 11 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.31</version>
<version>4.40</version>
<relativePath />
</parent>

Expand All @@ -14,28 +14,32 @@
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>

<scm>
<connection>scm:git:git://github.com/jenkinsci/${project.artifactId}-plugin.git</connection>
<developerConnection>scm:git:[email protected]:jenkinsci/${project.artifactId}-plugin.git</developerConnection>
<connection>scm:git:https://github.com/${gitHubRepo}.git</connection>
<developerConnection>scm:git:[email protected]:${gitHubRepo}.git</developerConnection>
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
<tag>${scmTag}</tag>
</scm>

<properties>
<revision>1.14</revision>
<changelist>-SNAPSHOT</changelist>
<jenkins.version>2.249.3</jenkins.version>
<java.level>8</java.level>
<jenkins.version>2.289.3</jenkins.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.249.x</artifactId>
<version>961.vf0c9f6f59827</version>
<artifactId>bom-2.289.x</artifactId>
<version>1289.v5c4b_1c43511b_</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/hudson/tasks/AntWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import hudson.tools.ToolInstallation;
import java.io.IOException;
import java.util.Map;
import javax.annotation.Nonnull;
import edu.umd.cs.findbugs.annotations.NonNull;
import jenkins.model.Jenkins;
import jenkins.tasks.SimpleBuildWrapper;
import org.jenkinsci.Symbol;
Expand Down Expand Up @@ -87,7 +87,7 @@ public void setUp(Context context, Run<?, ?> build, FilePath workspace, Launcher
}

// TODO this is pretty generic and could perhaps be added to SimpleBuildWrapper?
private static void toolEnv(Context context, @Nonnull String tool, ToolInstallation[] tools, FilePath workspace, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException {
private static void toolEnv(Context context, @NonNull String tool, ToolInstallation[] tools, FilePath workspace, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException {
ToolInstallation inst = null;
for (ToolInstallation _inst : tools) {
if (_inst.getName().equals(tool)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void test1() throws Exception {
AntTargetNote.ENABLED = true;
WebClient wc = r.createWebClient();
HtmlPage c = wc.getPage(b, "console");
System.out.println(c.asText());
System.out.println(c.asNormalizedText());
DomElement o = c.getElementById("console-outline");

assertEquals(2,o.getByXPath(".//LI").size());
Expand Down

0 comments on commit 98d67a2

Please sign in to comment.