blob: 5baf8e3bbd8fd9af94ca0e1959d6d2b22cc94d0d [file] [log] [blame]
Carmelo Casconebaceafe2021-01-10 19:28:49 -08001---
2# jobs for https://github.com/omec-project/up4
3
Carmelo Cascone61030f02021-01-11 22:42:21 -08004- 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 Chiuf6cbde22021-04-22 22:15:23 -070016 build-node: "ubuntu18.04-basebuild-8c-15g"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080017
Carmelo Cascone61030f02021-01-11 22:42:21 -080018- job-group:
19 name: "up4-jobs"
20 jobs:
21 - "up4-pr-verify"
Carmelo Cascone0ba14752021-01-21 22:32:49 -080022 - "up4-postmerge"
Daniele Moro2be339e2022-01-24 19:27:09 +010023 - "up4-devel-nightly"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080024
Carmelo Cascone61030f02021-01-11 22:42:21 -080025- 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 Casconebaceafe2021-01-10 19:28:49 -080030
Carmelo Cascone61030f02021-01-11 22:42:21 -080031 project-type: pipeline
32 concurrent: true
Carmelo Casconebaceafe2021-01-10 19:28:49 -080033
Carmelo Cascone61030f02021-01-11 22:42:21 -080034 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 Casconebaceafe2021-01-10 19:28:49 -080042
Carmelo Cascone61030f02021-01-11 22:42:21 -080043 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 Casconebaceafe2021-01-10 19:28:49 -080052
Carmelo Cascone61030f02021-01-11 22:42:21 -080053 # 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 Casconebaceafe2021-01-10 19:28:49 -080066
Carmelo Cascone61030f02021-01-11 22:42:21 -080067 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 Casconebaceafe2021-01-10 19:28:49 -080072
Carmelo Cascone61030f02021-01-11 22:42:21 -080073 wrappers:
74 - lf-infra-wrappers:
75 build-timeout: "{build-timeout}"
76 jenkins-ssh-credential: "{jenkins-ssh-credential}"
Yi Tsengfeca1aa2021-04-23 01:59:01 -070077 - credentials-binding:
78 - text:
79 credential-id: codecov-up4
80 variable: CODECOV_TOKEN
Carmelo Cascone61030f02021-01-11 22:42:21 -080081
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 Tsengfeca1aa2021-04-23 01:59:01 -0700132 - credentials-binding:
133 - text:
134 credential-id: codecov-up4
135 variable: CODECOV_TOKEN
Daniele Moro2be339e2022-01-24 19:27:09 +0100136
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