Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 1 | --- |
| 2 | # jobs for https://github.com/omec-project/up4 |
| 3 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 4 | - project: |
| 5 | name: up4 |
| 6 | project: "{name}" |
| 7 | github-organization: "omec-project" |
| 8 | github_pr_auth_id: "64fe2b1a-b33a-4f13-8442-ad8360434003" |
| 9 | github_pr_org_list: |
| 10 | - "omec-project" |
| 11 | jobs: |
| 12 | - "up4-jobs": |
| 13 | stream: "master" |
| 14 | # As we run integration tests with 3 ONOS instances, |
| 15 | # we need a beefy node. |
Hung-Wei Chiu | f6cbde2 | 2021-04-22 22:15:23 -0700 | [diff] [blame] | 16 | build-node: "ubuntu18.04-basebuild-8c-15g" |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 17 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 18 | - job-group: |
| 19 | name: "up4-jobs" |
| 20 | jobs: |
| 21 | - "up4-pr-verify" |
Carmelo Cascone | 0ba1475 | 2021-01-21 22:32:49 -0800 | [diff] [blame] | 22 | - "up4-postmerge" |
Daniele Moro | 2be339e | 2022-01-24 19:27:09 +0100 | [diff] [blame] | 23 | - "up4-devel-nightly" |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 24 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 25 | - job-template: |
| 26 | id: "up4-pr-verify" |
| 27 | name: "up4-pr-verify" |
| 28 | description: | |
| 29 | Created by {id} job-template from ci-management/up4.yaml<br/> |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 30 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 31 | project-type: pipeline |
| 32 | concurrent: true |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 33 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 34 | properties: |
| 35 | # Visibility restricted to Aether members only. |
| 36 | - cord-infra-aether-private: |
| 37 | - cord-infra-properties: |
| 38 | build-days-to-keep: "15" |
| 39 | artifact-num-to-keep: "-1" |
| 40 | - github: |
| 41 | url: "https://github.com/{github-organization}/{project}" |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 42 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 43 | parameters: |
| 44 | - string: |
| 45 | name: buildNode |
| 46 | default: "{build-node}" |
| 47 | description: "Name of the Jenkins executor node to run the job on." |
| 48 | - string: |
| 49 | name: sha1 |
| 50 | default: "origin/{stream}" |
| 51 | description: "SHA string of the pull request commit to build. Populated by GitHUb Pull Request Builder." |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 52 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 53 | # Run pipeline that is checked-in in the same PR we want to verify. |
| 54 | pipeline-scm: |
| 55 | script-path: ".jenkins/Jenkinsfile" |
| 56 | scm: |
| 57 | - git: |
| 58 | url: "git@github.com:{github-organization}/{project}.git" |
| 59 | credentials-id: "github-onf-bot-ssh-key" |
| 60 | refspec: "+refs/pull/*:refs/remotes/origin/pr/*" |
| 61 | branches: |
| 62 | - "$sha1" |
| 63 | submodule: |
| 64 | disable: true |
| 65 | shallow-clone: true |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 66 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 67 | triggers: |
| 68 | - cord-infra-github-pr-trigger: |
| 69 | github_pr_org_list: "{obj:github_pr_org_list}" |
| 70 | github_pr_auth_id: "{github_pr_auth_id}" |
| 71 | status_context: "up4-pr-verify" |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 72 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 73 | wrappers: |
| 74 | - lf-infra-wrappers: |
| 75 | build-timeout: "{build-timeout}" |
| 76 | jenkins-ssh-credential: "{jenkins-ssh-credential}" |
Yi Tseng | feca1aa | 2021-04-23 01:59:01 -0700 | [diff] [blame] | 77 | - credentials-binding: |
| 78 | - text: |
| 79 | credential-id: codecov-up4 |
| 80 | variable: CODECOV_TOKEN |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 81 | |
| 82 | - job-template: |
| 83 | id: "up4-postmerge" |
| 84 | name: "up4-postmerge" |
| 85 | description: | |
| 86 | Created by {id} job-template from ci-management/up4.yaml<br/> |
| 87 | |
| 88 | project-type: pipeline |
| 89 | concurrent: true |
| 90 | |
| 91 | properties: |
| 92 | # Visibility restricted to Aether members only. |
| 93 | - cord-infra-aether-private: |
| 94 | - cord-infra-properties: |
| 95 | build-days-to-keep: "15" |
| 96 | artifact-num-to-keep: "-1" |
| 97 | - github: |
| 98 | url: "https://github.com/{github-organization}/{project}" |
| 99 | |
| 100 | parameters: |
| 101 | - string: |
| 102 | name: buildNode |
| 103 | default: "{build-node}" |
| 104 | description: "Name of the Jenkins executor node to run the job on." |
| 105 | - string: |
| 106 | name: commitHash |
| 107 | default: 'origin/{stream}' |
| 108 | description: 'SHA string of the merged commit to build. Populated by Generic Webhook Trigger.' |
| 109 | |
| 110 | pipeline-scm: |
| 111 | script-path: ".jenkins/Jenkinsfile" |
| 112 | scm: |
| 113 | - git: |
| 114 | url: "git@github.com:{github-organization}/{project}.git" |
| 115 | credentials-id: "github-onf-bot-ssh-key" |
| 116 | refspec: "+refs/heads/*:refs/remotes/origin/*" |
| 117 | branches: |
| 118 | - "$commitHash" |
| 119 | submodule: |
| 120 | disable: true |
| 121 | shallow-clone: true |
| 122 | |
| 123 | triggers: |
| 124 | - cord-infra-github-pr-trigger-merge: |
| 125 | project: '{project}' |
| 126 | - timed: "@midnight" |
| 127 | |
| 128 | wrappers: |
| 129 | - lf-infra-wrappers: |
| 130 | build-timeout: "{build-timeout}" |
| 131 | jenkins-ssh-credential: "{jenkins-ssh-credential}" |
Yi Tseng | feca1aa | 2021-04-23 01:59:01 -0700 | [diff] [blame] | 132 | - credentials-binding: |
| 133 | - text: |
| 134 | credential-id: codecov-up4 |
| 135 | variable: CODECOV_TOKEN |
Daniele Moro | 2be339e | 2022-01-24 19:27:09 +0100 | [diff] [blame] | 136 | |
| 137 | - job-template: |
| 138 | id: "up4-devel-nightly" |
| 139 | name: "up4-devel-nightly" |
| 140 | description: | |
| 141 | Created by {id} job-template from ci-management/up4.yaml<br/> |
| 142 | |
| 143 | project-type: pipeline |
| 144 | concurrent: true |
| 145 | |
| 146 | properties: |
| 147 | # Visibility restricted to Aether members only. |
| 148 | - cord-infra-aether-private: |
| 149 | - cord-infra-properties: |
| 150 | build-days-to-keep: "15" |
| 151 | artifact-num-to-keep: "-1" |
| 152 | - github: |
| 153 | url: "https://github.com/{github-organization}/{project}" |
| 154 | |
| 155 | parameters: |
| 156 | - string: |
| 157 | name: buildNode |
| 158 | default: "{build-node}" |
| 159 | description: "Name of the Jenkins executor node to run the job on." |
| 160 | - string: |
| 161 | name: commitHash |
| 162 | default: 'origin/{stream}' |
| 163 | description: 'SHA string of the merged commit to build. Populated by Generic Webhook Trigger.' |
| 164 | - string: |
| 165 | name: up4Env |
| 166 | default: 'devel' |
| 167 | description: 'UP4 STC scenarios environment (stable or devel)' |
| 168 | |
| 169 | pipeline-scm: |
| 170 | script-path: ".jenkins/Jenkinsfile" |
| 171 | scm: |
| 172 | - git: |
| 173 | url: "git@github.com:{github-organization}/{project}.git" |
| 174 | credentials-id: "github-onf-bot-ssh-key" |
| 175 | refspec: "+refs/heads/*:refs/remotes/origin/*" |
| 176 | branches: |
| 177 | - "$commitHash" |
| 178 | submodule: |
| 179 | disable: true |
| 180 | shallow-clone: true |
| 181 | |
| 182 | triggers: |
| 183 | - timed: "@midnight" |
| 184 | |
| 185 | wrappers: |
| 186 | - lf-infra-wrappers: |
| 187 | build-timeout: "{build-timeout}" |
| 188 | jenkins-ssh-credential: "{jenkins-ssh-credential}" |
| 189 | - credentials-binding: |
| 190 | - text: |
| 191 | credential-id: codecov-up4 |
| 192 | variable: CODECOV_TOKEN |