blob: 17788a60903e85d24d9e167915dc3731f4f3ce88 [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.
16 build-node: "ubuntu16.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}"
76
77- job-template:
78 id: "up4-postmerge"
79 name: "up4-postmerge"
80 description: |
81 Created by {id} job-template from ci-management/up4.yaml<br/>
82
83 project-type: pipeline
84 concurrent: true
85
86 properties:
87 # Visibility restricted to Aether members only.
88 - cord-infra-aether-private:
89 - cord-infra-properties:
90 build-days-to-keep: "15"
91 artifact-num-to-keep: "-1"
92 - github:
93 url: "https://github.com/{github-organization}/{project}"
94
95 parameters:
96 - string:
97 name: buildNode
98 default: "{build-node}"
99 description: "Name of the Jenkins executor node to run the job on."
100 - string:
101 name: commitHash
102 default: 'origin/{stream}'
103 description: 'SHA string of the merged commit to build. Populated by Generic Webhook Trigger.'
104
105 pipeline-scm:
106 script-path: ".jenkins/Jenkinsfile"
107 scm:
108 - git:
109 url: "git@github.com:{github-organization}/{project}.git"
110 credentials-id: "github-onf-bot-ssh-key"
111 refspec: "+refs/heads/*:refs/remotes/origin/*"
112 branches:
113 - "$commitHash"
114 submodule:
115 disable: true
116 shallow-clone: true
117
118 triggers:
119 - cord-infra-github-pr-trigger-merge:
120 project: '{project}'
121 - timed: "@midnight"
122
123 wrappers:
124 - lf-infra-wrappers:
125 build-timeout: "{build-timeout}"
126 jenkins-ssh-credential: "{jenkins-ssh-credential}"