From 8e02d8a11a2f54598032bc93ce59c4cbfba8b8fa Mon Sep 17 00:00:00 2001 From: Carroll Chiou Date: Tue, 22 Mar 2022 16:49:48 -0600 Subject: [PATCH 1/3] Update plugin parent POM and plugin BOM --- pipeline-model-definition/pom.xml | 19 ------------------- pom.xml | 19 +++++++++---------- 2 files changed, 9 insertions(+), 29 deletions(-) diff --git a/pipeline-model-definition/pom.xml b/pipeline-model-definition/pom.xml index f32de2531..20fe38ce8 100644 --- a/pipeline-model-definition/pom.xml +++ b/pipeline-model-definition/pom.xml @@ -52,25 +52,6 @@ org.codehaus.gmavenplus gmavenplus-plugin - - org.codehaus.mojo - codenarc-maven-plugin - 0.22-1 - - 2.4.7 - ${project.basedir}/src/main/ - 0 - - - - codenarc - - codenarc - - verify - - - maven-surefire-plugin diff --git a/pom.xml b/pom.xml index 99490ad9a..0a9f9db5c 100644 --- a/pom.xml +++ b/pom.xml @@ -27,7 +27,7 @@ org.jenkins-ci.plugins plugin - 4.31 + 4.37 @@ -74,8 +74,8 @@ io.jenkins.tools.bom - bom-2.319.x - 1117.v62a_f6a_01de98 + bom-2.332.x + 1198.v387c834fca_1a_ import pom @@ -84,12 +84,6 @@ jenkins-test-harness-tools 2.2 - - - org.jenkins-ci.main - jenkins-test-harness - 1697.v6b_1e34cb_4ee6 - org.hamcrest hamcrest @@ -100,6 +94,11 @@ jcabi-matchers 1.5.3 + + + javax.xml.bind + jaxb-api + org.hamcrest @@ -161,7 +160,7 @@ 999999-SNAPSHOT jenkinsci/pipeline-model-definition-plugin - 2.321 + 2.332.1 8 2.4.12 From 81373abbe98a4da7ec2b1a2ee3e3d3b871b92570 Mon Sep 17 00:00:00 2001 From: Carroll Chiou Date: Tue, 22 Mar 2022 23:43:06 -0600 Subject: [PATCH 2/3] add longpaths to git config --- .../plugins/pipeline/modeldefinition/LibrariesTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/LibrariesTest.java b/pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/LibrariesTest.java index 531a0780b..97258f58f 100644 --- a/pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/LibrariesTest.java +++ b/pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/LibrariesTest.java @@ -161,6 +161,7 @@ public void librariesDirectiveWithOutsideVarAndFunc() throws Exception { @Test public void folderLibraryParsing() throws Exception { otherRepo.init(); + otherRepo.git("config", "--global", "core.longpaths", "true"); otherRepo.git("checkout", "-b", "test"); otherRepo.write("src/org/foo/Zot.groovy", "package org.foo;\n" + "\n" + From 846fa3293b0b26e07075c2eddfbb5ebc2903bb6a Mon Sep 17 00:00:00 2001 From: Carroll Chiou Date: Wed, 23 Mar 2022 17:12:42 -0600 Subject: [PATCH 3/3] add note about core.longpaths --- .../plugins/pipeline/modeldefinition/LibrariesTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/LibrariesTest.java b/pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/LibrariesTest.java index 97258f58f..2413c715b 100644 --- a/pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/LibrariesTest.java +++ b/pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/LibrariesTest.java @@ -161,6 +161,7 @@ public void librariesDirectiveWithOutsideVarAndFunc() throws Exception { @Test public void folderLibraryParsing() throws Exception { otherRepo.init(); + // longpaths to support longer filenames for windows. Only needs to be set once. otherRepo.git("config", "--global", "core.longpaths", "true"); otherRepo.git("checkout", "-b", "test"); otherRepo.write("src/org/foo/Zot.groovy", "package org.foo;\n" +