Fatih Degirmenci | 46838e2 | 2018-05-18 19:01:25 +0200 | [diff] [blame] | 1 | --- |
| 2 | - project: |
| 3 | name: openci-onap |
| 4 | |
| 5 | project: '{name}' |
| 6 | |
| 7 | stream: |
| 8 | - master: |
| 9 | branch: '{stream}' |
| 10 | gs-pathname: '' |
| 11 | disabled: false |
| 12 | |
| 13 | jobs: |
| 14 | - 'openci-onap-autorelease-daily-{stream}' |
| 15 | - 'openci-onap-promote-daily-{stream}' |
| 16 | |
| 17 | # This job gets triggered manually for the demo purposes. |
| 18 | # |
| 19 | # In prototype, either what this job does needs to be integrated to |
| 20 | # ONAP autorelease job or triggered by the upstream autorelease job. |
| 21 | - job-template: |
| 22 | name: 'openci-onap-autorelease-daily-{stream}' |
| 23 | |
| 24 | disabled: '{obj:disabled}' |
| 25 | |
| 26 | concurrent: false |
| 27 | |
Jessica Wagantall | c3bf516 | 2020-03-31 10:27:35 -0700 | [diff] [blame] | 28 | build-node: ubuntu1804-builder-4c-4g |
Fatih Degirmenci | 46838e2 | 2018-05-18 19:01:25 +0200 | [diff] [blame] | 29 | |
| 30 | parameters: |
| 31 | - string: |
| 32 | name: PUBLISH_EVENT_TYPE |
| 33 | default: ArtifactPublishedEvent |
| 34 | description: 'The type of the event this job publishes' |
| 35 | - string: |
| 36 | name: PUBLISH_EVENT_ORIGIN |
| 37 | default: ONAP |
| 38 | description: 'Originating community' |
| 39 | - string: |
| 40 | name: ARTIFACT_LOCATION |
| 41 | default: https://url/to/artifact/on/onap/nexus/$BUILD_NUMBER |
| 42 | description: 'The location of the artifact on ONAP Nexus' |
| 43 | - string: |
| 44 | name: CONFIDENCE_LEVEL |
| 45 | default: "'autorelease': 'SUCCESS'" |
| 46 | description: 'The confidence level the published artifact gained' |
| 47 | |
Fatih Degirmenci | d454600 | 2018-09-21 17:01:19 +0200 | [diff] [blame] | 48 | wrappers: |
| 49 | - credentials-binding: |
| 50 | - username-password-separated: |
| 51 | credential-id: openci-connect-activemq |
| 52 | username: ACTIVEMQ_USER |
| 53 | password: ACTIVEMQ_PASSWORD |
| 54 | - workspace-cleanup |
| 55 | |
Fatih Degirmenci | 46838e2 | 2018-05-18 19:01:25 +0200 | [diff] [blame] | 56 | builders: |
Fatih Degirmenci | 9eb9d2d | 2018-09-20 15:38:12 +0200 | [diff] [blame] | 57 | # this build step in the job executes create-ape.sh to construct the |
| 58 | # ArtifactPublishedEvent (ape) and publish it using the python utility |
Fatih Degirmenci | 46838e2 | 2018-05-18 19:01:25 +0200 | [diff] [blame] | 59 | - shell: |
| 60 | !include-raw-escape: ./create-ape.sh |
Fatih Degirmenci | 46838e2 | 2018-05-18 19:01:25 +0200 | [diff] [blame] | 61 | |
| 62 | # This job gets triggered by a ConfidenceLevelModifiedEvent published |
| 63 | # by OPNFV jobs so ONAP can promote the autorelease artifact even further. |
| 64 | # |
| 65 | # This job is created for the demo purposes and might not be there for |
| 66 | # the prototype. |
| 67 | - job-template: |
| 68 | name: 'openci-onap-promote-daily-{stream}' |
| 69 | |
| 70 | disabled: '{obj:disabled}' |
| 71 | |
| 72 | concurrent: false |
| 73 | |
Jessica Wagantall | c3bf516 | 2020-03-31 10:27:35 -0700 | [diff] [blame] | 74 | build-node: ubuntu1804-builder-4c-4g |
Fatih Degirmenci | 46838e2 | 2018-05-18 19:01:25 +0200 | [diff] [blame] | 75 | |
| 76 | triggers: |
| 77 | - jms-messaging: |
| 78 | provider-name: openci.activemq |
Fatih Degirmenci | 9eb9d2d | 2018-09-20 15:38:12 +0200 | [diff] [blame] | 79 | selector: JMSType = 'ConfidenceLevelModifiedEvent' and JMSOrigin = 'OPNFV' and JMSScenario = 'k8-nosdn-onap-ha' |
Fatih Degirmenci | 46838e2 | 2018-05-18 19:01:25 +0200 | [diff] [blame] | 80 | |
| 81 | builders: |
| 82 | - shell: | |
| 83 | #!/bin/bash |
| 84 | |
| 85 | echo |
| 86 | echo "Triggered by $type" |
| 87 | echo "----------------------------------" |
| 88 | echo $CI_MESSAGE |
| 89 | echo "----------------------------------" |
| 90 | echo " Promoted ONAP Autorelease artifact as release candidate!" |