- opendaylight-infra-notify-status
- trigger-parameterized-builds:
- project: 'integration-distribution-test-{integration-test}'
- condition: STABLE
- predefined-parameters: BUNDLE_URL=autorelease
+ condition: UNSTABLE_OR_BETTER
+ property-file: variables.jenkins-trigger
+ fail-on-missing: true
+ - project: 'integration-distribution-test-{integration-test}'
+ condition: FAILED
+ trigger-with-no-params: true
- project: 'packaging-build-rpm-{stream}'
condition: UNSTABLE_OR_BETTER
predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
BUNDLEFOLDER="${KARAF_ARTIFACT}-${BUNDLE_VERSION}"
BUNDLE="${KARAF_ARTIFACT}-${TIMESTAMP}.zip"
ACTUAL_BUNDLE_URL="${NEXUSPATH}/${BUNDLE_VERSION}/${BUNDLE}"
-elif [ ${BUNDLE_URL} == 'autorelease' ]; then
- # Use latest stable AR job distribution URL
- ACTUAL_BUNDLE_URL="$(curl -sL -X GET -H 'Accept:text/plain' https://jenkins.opendaylight.org/releng/view/autorelease/job/autorelease-release-$DISTROSTREAM/lastStableBuild/injectedEnvVars/export | grep BUNDLE_URL | tr -d 'BUNDLE_URL=')"
- BUNDLE="${ACTUAL_BUNDLE_URL##*/}"
- ARTIFACT="$(basename "$(dirname "$(dirname "${ACTUAL_BUNDLE_URL}")")")"
- BUNDLE_VERSION="$(basename "$(dirname "${ACTUAL_BUNDLE_URL}")")"
- BUNDLEFOLDER="${ARTIFACT}-${BUNDLE_VERSION}"
else
- # Use provided BUNDLE_URL
ACTUAL_BUNDLE_URL="${BUNDLE_URL}"
BUNDLE="${BUNDLE_URL##*/}"
ARTIFACT="$(basename "$(dirname "$(dirname "${BUNDLE_URL}")")")"
- string:
name: BUNDLE_URL
default: '{bundle-url}'
- description: |
- Karaf distribution zip URL. Use last for last distribution in Nexus,
- use autorelease for last stable AR job distribution.
+ description: 'URL to karaf distribution zip'
- parameter:
name: integration-repo-url
build-days-to-keep: '{build-days-to-keep}'
parameters:
- - integration-distribution-branch:
- branch: '{branch}'
- - integration-distribution-stream:
- stream: '{stream}'
- integration-bundle-url:
bundle-url: '{bundle-url}'
- distribution-karaf-version:
karaf-version: '{karaf-version}'
builders:
- - integration-detect-variables
- trigger-builds:
- project: '{csit-list}'
block: true
predefined-parameters: |
- BUNDLE_URL=$ACTUAL_BUNDLE_URL
+ BUNDLE_URL=$BUNDLE_URL
KARAF_VERSION=$KARAF_VERSION
wrappers: