Fix: Correct unescaped env var in global settings 58/6658/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 9 Sep 2021 16:29:19 +0000 (09:29 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 9 Sep 2021 16:29:19 +0000 (09:29 -0700)
While troubleshooting why maven jobs are failing to pull resources
properly it was discovered that the JCasC configured global-settings
file does not have the NEXUS_URL env var showing up in the stored file.
Upon further investigation it is found that the JCasC needs to escape
the $ with ^$

Change-Id: Ib3390dde854ff992020360aa613f19bed616092b
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
jenkins-config/managed-config-files/globalMavenSettings/global-settings/content

index 82e22ed..c10b814 100644 (file)
@@ -9,7 +9,7 @@
     <mirror>
       <id>release-mirror</id>
       <name>Local Nexus mirror for builds</name>
-      <url>${env.NEXUS_URL}/content/repositories/public/</url>
+      <url>^${env.NEXUS_URL}/content/repositories/public/</url>
       <mirrorOf>central</mirrorOf>
     </mirror>
   </mirrors>
@@ -21,7 +21,7 @@
         <repository>
           <id>releases</id>
           <name>releases</name>
-          <url>${env.NEXUS_URL}/content/repositories/releases/</url>
+          <url>^${env.NEXUS_URL}/content/repositories/releases/</url>
           <releases>
             <enabled>true</enabled>
             <updatePolicy>never</updatePolicy>
@@ -35,7 +35,7 @@
         <pluginRepository>
           <id>releases</id>
           <name>releases</name>
-          <url>${env.NEXUS_URL}/content/repositories/releases/</url>
+          <url>^${env.NEXUS_URL}/content/repositories/releases/</url>
           <releases>
             <enabled>true</enabled>
             <updatePolicy>never</updatePolicy>
@@ -53,7 +53,7 @@
         <repository>
           <id>staging</id>
           <name>staging</name>
-          <url>${env.NEXUS_URL}/content/repositories/staging/</url>
+          <url>^${env.NEXUS_URL}/content/repositories/staging/</url>
           <releases>
             <enabled>true</enabled>
           </releases>
@@ -70,7 +70,7 @@
         <repository>
           <id>snapshots</id>
           <name>snapshots</name>
-          <url>${env.NEXUS_URL}/content/repositories/snapshots/</url>
+          <url>^${env.NEXUS_URL}/content/repositories/snapshots/</url>
           <releases>
             <enabled>false</enabled>
           </releases>
@@ -83,7 +83,7 @@
         <pluginRepository>
           <id>snapshots</id>
           <name>snapshots</name>
-          <url>${env.NEXUS_URL}/content/repositories/snapshots/</url>
+          <url>^${env.NEXUS_URL}/content/repositories/snapshots/</url>
           <releases>
             <enabled>false</enabled>
           </releases>
     <activeProfile>releases</activeProfile>
     <activeProfile>snapshots</activeProfile>
   </activeProfiles>
-</settings>
\ No newline at end of file
+</settings>