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