--- /dev/null
+# Extract the BUNDLEVERSION from the pom.xml
+BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null`
+echo "Bundle version is ${BUNDLEVERSION}"
+
+BUNDLEURL=${BUILD_URL}org.opendaylight.integration\$distribution-karaf/artifact/org.opendaylight.integration/distribution-karaf/${BUNDLEVERSION}/distribution-karaf-${BUNDLEVERSION}.zip
+echo "Bundle url is ${BUNDLEURL}"
+
+# Set BUNDLEVERSION & BUNDLEURL
+echo BUNDLEVERSION=${BUNDLEVERSION} > bundle.txt
+echo BUNDLEURL=${BUNDLEURL} >> bundle.txt
+
+# NOTE: BUNDLEVERSION & BUNDLEURL will be re-imported back into the environment with the
+# Inject environment variables plugin (next step)
branch: '{branch}'
prebuilders:
+ - integration-get-bundle-url-root
+ - inject:
+ properties-file: 'bundle.txt'
- wipe-org-opendaylight-repo
maven:
settings: '{integration-settings}'
global-settings: '{odl-global-settings}'
ignore-upstream-changes: true
+ post-step-run-condition: 'SUCCESS'
+
+ postbuilders:
+ - trigger-builds:
+ - project: 'integration-csit-1node-basic-all-{stream}'
+ block: true
+ predefined-parameters:
+ BUNDLEURL=$BUNDLEURL
publishers:
- email-notification:
!include-raw include-raw-integration-deploy-controller-offline.sh
# Macro: integration-get-bundle-url
-# Operation: this macro gets the distribution bundle URL
+# Operation: this macro gets the job generated distribution URL from distribution pom.xml
# Used by: integration-patch-test-{stream} job template
- builder:
- shell:
!include-raw include-raw-integration-get-bundle-url.sh
+# Macro: integration-get-bundle-url-root
+# Operation: this macro gets the job generated distribution URL from root pom.xml
+# Used by: integration-distribution-verify-{stream} job template
+
+- builder:
+ name: integration-get-bundle-url-root
+ builders:
+ - shell:
+ !include-raw include-raw-integration-get-bundle-url-root.sh
+
# Macro: integration-install-robotframework
# Operation: Installs robotframework using pip to a virtualenv
# Used by: {project}-csit-* job templates