X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopenci%2Fopenci-odl-daily-jobs.yaml;h=bdaca574287bf9f5f79c0425786c22624c290eaa;hb=726b96c6746aba86c253a5505561a4d96426115f;hp=8b53f6522400f2edc96c787b649d6970790b73d0;hpb=a2ab17809cb74b9787f77868e64c156f2790429b;p=releng.git diff --git a/jjb/openci/openci-odl-daily-jobs.yaml b/jjb/openci/openci-odl-daily-jobs.yaml index 8b53f6522..bdaca5742 100644 --- a/jjb/openci/openci-odl-daily-jobs.yaml +++ b/jjb/openci/openci-odl-daily-jobs.yaml @@ -26,13 +26,27 @@ concurrent: false parameters: + - string: + name: PUBLISH_EVENT_TYPE + default: ArtifactPublishedEvent + description: 'The type of the event this job publishes' + - string: + name: PUBLISH_EVENT_ORIGIN + default: ODL + description: 'Originating community' + - string: + name: ARTIFACT_LOCATION + default: https://url/to/artifact/on/odl/nexus/$BUILD_NUMBER + description: 'The location of the artifact on ODL Nexus' + - string: + name: CONFIDENCE_LEVEL + default: "'autorelease': 'SUCCESS'" + description: 'The confidence level the published artifact gained' - 'opnfv-build-defaults' builders: - - shell: | - #!/bin/bash - - echo "Will construct and publish an ArtifactPublishedEvent" + - shell: + !include-raw-escape: ./create-ape.sh # This job gets triggered by a ConfidenceLevelModifiedEvent published # by OPNFV jobs so ODL can promote the autorelease artifact even further. @@ -52,19 +66,15 @@ triggers: - jms-messaging: provider-name: openci.activemq - selector: CI_TYPE = 'custom' - checks: - - field: origin - expected-value: 'OPNFV' - - field: type - expected-value: 'ConfidenceLevelModifiedEvent' + selector: | + JMSType = 'ConfidenceLevelModifiedEvent' and JMSOrigin = 'OPNFV' and JMSScenario = 'os-odl-nofeature-ha' builders: - shell: | #!/bin/bash echo - echo "Triggered by an event" + echo "Triggered by $type" echo "----------------------------------" echo $CI_MESSAGE echo "----------------------------------"