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. |
| 16 | build-node: "ubuntu16.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" |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 23 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 24 | - 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 Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 29 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 30 | project-type: pipeline |
| 31 | concurrent: true |
Carmelo Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 32 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 33 | 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 Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 41 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 42 | 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 Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 51 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 52 | # 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 Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 65 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 66 | 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 Cascone | baceafe | 2021-01-10 19:28:49 -0800 | [diff] [blame] | 71 | |
Carmelo Cascone | 61030f0 | 2021-01-11 22:42:21 -0800 | [diff] [blame] | 72 | 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}" |