From 532e97b5b965cab5ace406d8ecc845afc98920ac Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Tue, 27 Feb 2024 12:19:08 +1000 Subject: [PATCH] Fix: JaCoCo exclude patterns format Fix JaCoCo exclude patterns format. JJB 6.x does not process the job config when double quotes are used and returns the following error. Error: requests.exceptions.HTTPError: 500 Server Error: Server Error for url: https://jenkins.opendaylight.org/releng/job/distribution- merge-managed-argon/config.xml Issue: RELENG-5118 Change-Id: Id8b2c02c7feb1e5f2ed443eb59dd61e040a31d1c Signed-off-by: Anil Belur --- jjb/lf-maven-jobs.yaml | 24 ++++++++++++++++++---- ...-exclusion-pattern-format-ac269302cfb781d8.yaml | 11 ++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 releasenotes/notes/fix-exclusion-pattern-format-ac269302cfb781d8.yaml diff --git a/jjb/lf-maven-jobs.yaml b/jjb/lf-maven-jobs.yaml index aba6b9b7..61743770 100644 --- a/jjb/lf-maven-jobs.yaml +++ b/jjb/lf-maven-jobs.yaml @@ -733,7 +733,11 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - jacoco-exclude-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**" + jacoco-exclude-pattern: >- + **/gen/**, + **/generated-sources/**, + **/yang-gen**, + **/pax/**, java-version: openjdk11 mvn-global-settings: global-settings mvn-goals: clean deploy @@ -1326,7 +1330,11 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - jacoco-exclude-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**" + jacoco-exclude-pattern: >- + **/gen/**, + **/generated-sources/**, + **/yang-gen**, + **/pax/**, java-version: openjdk11 java-opts: "" mvn-global-settings: global-settings @@ -1721,7 +1729,11 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - jacoco-exclude-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**" + jacoco-exclude-pattern: >- + **/gen/**, + **/generated-sources/**, + **/yang-gen**, + **/pax/** java-version: openjdk11 mvn-global-settings: global-settings mvn-goals: clean deploy @@ -1963,7 +1975,11 @@ disable-job: false git-url: "$GIT_URL/$PROJECT" github-url: "https://github.com" - jacoco-exclude-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**" + jacoco-exclude-pattern: >- + **/gen/**, + **/generated-sources/**, + **/yang-gen**, + **/pax/** java-version: openjdk11 mvn-global-settings: global-settings mvn-goals: clean deploy diff --git a/releasenotes/notes/fix-exclusion-pattern-format-ac269302cfb781d8.yaml b/releasenotes/notes/fix-exclusion-pattern-format-ac269302cfb781d8.yaml new file mode 100644 index 00000000..e24a40c3 --- /dev/null +++ b/releasenotes/notes/fix-exclusion-pattern-format-ac269302cfb781d8.yaml @@ -0,0 +1,11 @@ +--- +fixes: + - | + Fix JaCoCo exclude patterns format. JJB 6.x does not process + the job config when double quotes are used and returns the + following error. + + Error: + requests.exceptions.HTTPError: 500 Server Error: Server Error for url: + https://jenkins.opendaylight.org/releng/job/distribution-\ + merge-managed-argon/config.xml -- 2.16.6