Adjust scripts for common distribution 45/75645/2
authorLuis Gomez <ecelgp@gmail.com>
Fri, 31 Aug 2018 19:22:11 +0000 (12:22 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Fri, 31 Aug 2018 20:10:26 +0000 (13:10 -0700)
Change-Id: I2a03d5d1341aae01abb6325e381474f6013a91b1
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
jjb/integration/distribution/distribution-jobs.yaml
jjb/integration/distribution/distribution-templates.yaml
jjb/integration/integration-compare-distributions.sh
jjb/integration/integration-detect-variables.sh

index a7164ad0bdf9839ca54d62bd864a319ce7ae32b5..e7fe1697819a9b2d4163d19426b3ab802ebff720 100644 (file)
@@ -84,6 +84,7 @@
     profile: '-Pmanaged'
     forbidden-files: 'opendaylight/**'
     karaf-version: karaf4
+    dist-pom: 'distribution/pom.xml'
 
     stream:
       - neon:
     profile: '-Punmanaged'
     files: 'opendaylight/**'
     karaf-version: odl
+    dist-pom: 'distribution/opendaylight/pom.xml'
 
     stream:
       - neon:
index b86d2dd8f01f06f4b1c99bc9368f4449616cd47b..ece5c1073cc6aecac37b2c15d9ad47a7c4567580 100644 (file)
       - distribution-check-warn-9191
       - distribution-check-warn-9192
       - integration-upload-distribution:
-          dist-pom: distribution/pom.xml
+          dist-pom: '{dist-pom}'
       - distribution-check-bootup
 
     publishers:
index b02b568027b806c7e372df4c23c3621ca2b3a981..eb2df1c06e9e466483eb180ea91ea6655b15f91f 100644 (file)
@@ -11,7 +11,12 @@ GERRIT_PATH=${GERRIT_PATH:-git.opendaylight.org/gerrit}
 DISTROBRANCH=${DISTROBRANCH:-$GERRIT_BRANCH}
 
 # Obtain current pom.xml of integration/distribution, correct branch.
-wget "http://${GERRIT_PATH}/gitweb?p=integration/distribution.git;a=blob_plain;f=pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml"
+if [[ "$KARAF_ARTIFACT" == "opendaylight" ]]; then
+    wget "http://${GERRIT_PATH}/gitweb?p=integration/distribution.git;a=blob_plain;f=opendaylight/pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml"
+else
+    wget "http://${GERRIT_PATH}/gitweb?p=integration/distribution.git;a=blob_plain;f=pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml"
+fi
+
 # Extract the BUNDLE_VERSION from the pom.xml
 BUNDLE_VERSION=$(xpath pom.xml '/project/version/text()' 2> /dev/null)
 echo "Bundle version is ${BUNDLE_VERSION}"
index 542b0dcc1eac95dfd097cf2c68a0ef78328f5cbe..961df7bcbbe0aef28812847bec6d446a3224af07 100644 (file)
@@ -7,7 +7,11 @@ DISTROBRANCH="${DISTROBRANCH:-$GERRIT_BRANCH}"
 
 if [ ${BUNDLE_URL} == 'last' ]; then
     # Obtain current pom.xml of integration/distribution, correct branch.
-    wget "http://${GERRIT_PATH}/gitweb?p=integration/distribution.git;a=blob_plain;f=pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml"
+    if [[ "$KARAF_ARTIFACT" == "opendaylight" ]]; then
+        wget "http://${GERRIT_PATH}/gitweb?p=integration/distribution.git;a=blob_plain;f=opendaylight/pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml"
+    else
+        wget "http://${GERRIT_PATH}/gitweb?p=integration/distribution.git;a=blob_plain;f=pom.xml;hb=refs/heads/$DISTROBRANCH" -O "pom.xml"
+    fi
     # Extract the BUNDLE_VERSION from the pom.xml
     BUNDLE_VERSION="$(xpath pom.xml '/project/version/text()' 2> /dev/null)"
     echo "Bundle version is ${BUNDLE_VERSION}"