Fix: JaCoCo exclude patterns format 78/72678/5
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 27 Feb 2024 02:19:08 +0000 (12:19 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 27 Feb 2024 22:21:23 +0000 (08:21 +1000)
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 <abelur@linuxfoundation.org>
jjb/lf-maven-jobs.yaml
releasenotes/notes/fix-exclusion-pattern-format-ac269302cfb781d8.yaml [new file with mode: 0644]

index aba6b9b..6174377 100644 (file)
     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
     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
     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
     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 (file)
index 0000000..e24a40c
--- /dev/null
@@ -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