blob: 087b66b0497d1a3300a979373954efdd8d7d2e82 [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"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080023
Carmelo Cascone61030f02021-01-11 22:42:21 -080024- job-template:
25 id: "up4-pr-verify"
26 name: "up4-pr-verify"
27 description: |
28 Created by {id} job-template from ci-management/up4.yaml<br/>
Carmelo Casconebaceafe2021-01-10 19:28:49 -080029
Carmelo Cascone61030f02021-01-11 22:42:21 -080030 project-type: pipeline
31 concurrent: true
Carmelo Casconebaceafe2021-01-10 19:28:49 -080032
Carmelo Cascone61030f02021-01-11 22:42:21 -080033 properties:
34 # Visibility restricted to Aether members only.
35 - cord-infra-aether-private:
36 - cord-infra-properties:
37 build-days-to-keep: "15"
38 artifact-num-to-keep: "-1"
39 - github:
40 url: "https://github.com/{github-organization}/{project}"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080041
Carmelo Cascone61030f02021-01-11 22:42:21 -080042 parameters:
43 - string:
44 name: buildNode
45 default: "{build-node}"
46 description: "Name of the Jenkins executor node to run the job on."
47 - string:
48 name: sha1
49 default: "origin/{stream}"
50 description: "SHA string of the pull request commit to build. Populated by GitHUb Pull Request Builder."
Carmelo Casconebaceafe2021-01-10 19:28:49 -080051
Carmelo Cascone61030f02021-01-11 22:42:21 -080052 # Run pipeline that is checked-in in the same PR we want to verify.
53 pipeline-scm:
54 script-path: ".jenkins/Jenkinsfile"
55 scm:
56 - git:
57 url: "git@github.com:{github-organization}/{project}.git"
58 credentials-id: "github-onf-bot-ssh-key"
59 refspec: "+refs/pull/*:refs/remotes/origin/pr/*"
60 branches:
61 - "$sha1"
62 submodule:
63 disable: true
64 shallow-clone: true
Carmelo Casconebaceafe2021-01-10 19:28:49 -080065
Carmelo Cascone61030f02021-01-11 22:42:21 -080066 triggers:
67 - cord-infra-github-pr-trigger:
68 github_pr_org_list: "{obj:github_pr_org_list}"
69 github_pr_auth_id: "{github_pr_auth_id}"
70 status_context: "up4-pr-verify"
Carmelo Casconebaceafe2021-01-10 19:28:49 -080071
Carmelo Cascone61030f02021-01-11 22:42:21 -080072 wrappers:
73 - lf-infra-wrappers:
74 build-timeout: "{build-timeout}"
75 jenkins-ssh-credential: "{jenkins-ssh-credential}"
Yi Tsengfeca1aa2021-04-23 01:59:01 -070076 - credentials-binding:
77 - text:
78 credential-id: codecov-up4
79 variable: CODECOV_TOKEN
Carmelo Cascone61030f02021-01-11 22:42:21 -080080
81- job-template:
82 id: "up4-postmerge"
83 name: "up4-postmerge"
84 description: |
85 Created by {id} job-template from ci-management/up4.yaml<br/>
86
87 project-type: pipeline
88 concurrent: true
89
90 properties:
91 # Visibility restricted to Aether members only.
92 - cord-infra-aether-private:
93 - cord-infra-properties:
94 build-days-to-keep: "15"
95 artifact-num-to-keep: "-1"
96 - github:
97 url: "https://github.com/{github-organization}/{project}"
98
99 parameters:
100 - string:
101 name: buildNode
102 default: "{build-node}"
103 description: "Name of the Jenkins executor node to run the job on."
104 - string:
105 name: commitHash
106 default: 'origin/{stream}'
107 description: 'SHA string of the merged commit to build. Populated by Generic Webhook Trigger.'
108
109 pipeline-scm:
110 script-path: ".jenkins/Jenkinsfile"
111 scm:
112 - git:
113 url: "git@github.com:{github-organization}/{project}.git"
114 credentials-id: "github-onf-bot-ssh-key"
115 refspec: "+refs/heads/*:refs/remotes/origin/*"
116 branches:
117 - "$commitHash"
118 submodule:
119 disable: true
120 shallow-clone: true
121
122 triggers:
123 - cord-infra-github-pr-trigger-merge:
124 project: '{project}'
125 - timed: "@midnight"
126
127 wrappers:
128 - lf-infra-wrappers:
129 build-timeout: "{build-timeout}"
130 jenkins-ssh-credential: "{jenkins-ssh-credential}"
Yi Tsengfeca1aa2021-04-23 01:59:01 -0700131 - credentials-binding:
132 - text:
133 credential-id: codecov-up4
134 variable: CODECOV_TOKEN