Skip to content

Commit

Permalink
chore: switch to 2.440 baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
bguerin committed Nov 25, 2024
1 parent e4e1873 commit ae95435
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,18 +433,23 @@ private void setupMaven(@NonNull Collection<Credentials> credentials) throws IOE
}

envOverride.put("MAVEN_CONFIG", mavenConfig.toString());
console.trace("[withMaven] MAVEN_CONFIG: " + mavenConfig.toString());

//
// MAVEN_OPTS
String mavenOpts = env.get(MAVEN_OPTS);
if (StringUtils.isNotEmpty(step.getMavenOpts())) {
String mavenOpts = envOverride.expand(env.expand(step.getMavenOpts()));
String mavenOptsStep = envOverride.expand(env.expand(step.getMavenOpts()));

String mavenOpsOriginal = env.get(MAVEN_OPTS);
if (mavenOpsOriginal != null) {
mavenOpts = mavenOpts + " " + mavenOpsOriginal;
if (mavenOpts != null) {
mavenOpts = mavenOptsStep + " " + mavenOpts;
} else {
mavenOpts = mavenOptsStep;
}
envOverride.put(MAVEN_OPTS, mavenOpts.replaceAll("[\t\r\n]+", " "));
mavenOpts = mavenOpts.replaceAll("[\t\r\n]+", " ");
envOverride.put(MAVEN_OPTS, mavenOpts);
}
console.trace("[withMaven] MAVEN_OPTS: " + mavenOpts);

LOGGER.log(Level.FINE, "Using temp dir: {0}", tempBinDir.getRemote());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ public void maven_build_maven_hpi_project_on_master_succeeds() throws Exception
// @formatter:off
String pipelineScript = "node() {\n" +
" git($/" + gitRepoRule.toString() + "/$)\n" +
" withMaven(traceability: true) {\n" +
" m2repo = \"${pwd tmp: true}/m2repo\"\n" +
" withMaven(traceability: true, mavenLocalRepo: $m2repo) {\n" +
" if (isUnix()) {\n" +
" sh 'mvn -P!might-produce-incrementals package'\n" +
" } else {\n" +
Expand Down
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.74</version>
<version>5.3</version>
<relativePath />
</parent>

Expand All @@ -13,7 +13,7 @@
<packaging>hpi</packaging>
<properties>
<!-- make it match with the version used by the pipeline-maven-plugin to faster the downloads -->
<jenkins.version>2.387.3</jenkins.version>
<jenkins.version>2.486</jenkins.version>
</properties>

<dependencies>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
<jenkins-plugin-mysql.version>8.4.0-31.va_b_5ce7933762</jenkins-plugin-mysql.version>
<jenkins-plugin-postgresql.version>42.7.2-40.v76d376d65c77</jenkins-plugin-postgresql.version>
<jenkins-plugin-tasks.version>4.53</jenkins-plugin-tasks.version>
<jenkins-tools-bom.version>3208.vb_21177d4b_cd9</jenkins-tools-bom.version>
<jenkins.version>2.426.3</jenkins.version>
<jenkins-tools-bom.version>3258.vcdcf15936a_fd</jenkins-tools-bom.version>
<jenkins.version>2.440.3</jenkins.version>
<junit.version>5.11.3</junit.version>
<mariadb-client.version>3.5.0</mariadb-client.version>
<maven-plugin-sisu.version>0.3.5</maven-plugin-sisu.version>
Expand All @@ -120,7 +120,7 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.426.x</artifactId>
<artifactId>bom-2.440.x</artifactId>
<version>${jenkins-tools-bom.version}</version>
<type>pom</type>
<scope>import</scope>
Expand Down

0 comments on commit ae95435

Please sign in to comment.