blob: 2b41e960cd2442429a12a97766406f784b3a1b24 [file] [log] [blame]
Carmelo Cascone81631ed2020-08-18 19:33:25 -07001---
2# Run pull request verify job for fabric-tna
3
4- job-template:
5 id: 'fabric-tna-pr-verify'
6 name: 'fabric-tna-pr-verify'
7
8 description: |
9 Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/>
10
11 properties:
Carmelo Cascone010ab112021-01-13 00:37:06 -080012 # Visibility restricted to because logs contain output from
Carmelo Cascone81631ed2020-08-18 19:33:25 -070013 # Barefoot toolchain (under NDA).
Carmelo Cascone010ab112021-01-13 00:37:06 -080014 - onf-infra-pronto-private:
Carmelo Cascone81631ed2020-08-18 19:33:25 -070015 - onf-infra-properties:
Carmelo Casconefe5ef682020-10-01 10:24:01 -070016 build-days-to-keep: '15'
Carmelo Cascone81631ed2020-08-18 19:33:25 -070017 artifact-num-to-keep: '-1'
18 - github:
19 url: 'https://github.com/{github-organization}/{project}'
20
21 node: '{bigger-build-node}'
22 project-type: freestyle
23 concurrent: true
24
25 parameters:
26 - onf-infra-parameters:
27 project: '{project}'
28 stream: '{stream}'
29 gerrit_project: 'not-a-gerrit-project'
30
31 scm:
32 - onf-infra-github-ssh-scm:
33 github-organization: '{github-organization}'
34 project: '{project}'
35 branch: "$sha1"
36 ssh-credential: "{github-onf-bot-ssh-credential}"
37
38 triggers:
39 - onf-infra-github-pr-trigger:
40 github_pr_org_list: '{obj:github_pr_org_list}'
41 github_pr_auth_id: '{github_pr_auth_id}'
42 status_context: 'fabric-tna-pr-verify'
43
44 wrappers:
45 - lf-infra-wrappers:
Carmelo Casconefe5ef682020-10-01 10:24:01 -070046 build-timeout: '45'
Carmelo Cascone81631ed2020-08-18 19:33:25 -070047 jenkins-ssh-credential: '{github-onf-bot-ssh-credential}'
48 - credentials-binding:
49 - username-password-separated:
50 credential-id: docker-artifact-push-credentials
51 username: DOCKERHUB_USERNAME
52 password: DOCKERHUB_PASSWORD
Carmelo Cascone2ce1d772020-09-02 19:37:32 -070053 - credentials-binding:
54 - username-password-separated:
55 credential-id: aether-internal-registry
56 username: AETHER_REGISTRY_USERNAME
57 password: AETHER_REGISTRY_PASSWORD
Yi Tseng9c7b1142021-04-19 10:33:11 -070058 - credentials-binding:
59 - text:
60 credential-id: codecov-fabric-tna
61 variable: CODECOV_TOKEN
Carmelo Cascone81631ed2020-08-18 19:33:25 -070062
63 builders:
64 - shell: !include-raw-escape: ../shell/docker-login.sh
65 # For now, let the actual job script evolve in the repo. We can make that
66 # a pipeline later.
67 - shell: |
68 bash .jenkins/pr_verify.sh
69
70 publishers:
71 - onf-infra-wscleanup-publisher
Yi Tsengaa7a60f2020-09-24 16:57:18 -070072 - archive:
73 artifacts: '**/*.log,**/*.pcap'
74 excludes: 'tmp/**/*'
Carmelo Cascone81631ed2020-08-18 19:33:25 -070075
76- job-template:
77 id: 'fabric-tna-postmerge'
78 name: 'fabric-tna-postmerge'
79
80 description: |
81 Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/>
82
83 properties:
Carmelo Cascone010ab112021-01-13 00:37:06 -080084 # Visibility restricted to because logs contain output from
Carmelo Cascone81631ed2020-08-18 19:33:25 -070085 # Barefoot toolchain (under NDA).
Carmelo Cascone010ab112021-01-13 00:37:06 -080086 - onf-infra-pronto-private:
Carmelo Cascone81631ed2020-08-18 19:33:25 -070087 - onf-infra-properties:
88 build-days-to-keep: '{build-days-to-keep}'
89 artifact-num-to-keep: '-1'
90 - github:
91 url: 'https://github.com/{github-organization}/{project}'
92
93 node: '{bigger-build-node}'
94 project-type: freestyle
95 concurrent: true
96
97 parameters:
98 - onf-infra-github-pr-merge-parameters:
99 repo-name: '{project}'
100 repo-url: 'git@github.com:{github-organization}/{project}.git'
101 branch: '{stream}'
102 sha1: '{stream}'
103
104
105 scm:
106 - onf-infra-github-ssh-scm:
107 github-organization: '{github-organization}'
108 project: '{project}'
109 branch: "$commitHash"
110 ssh-credential: "{github-onf-bot-ssh-credential}"
111
112 triggers:
113 - onf-infra-github-pr-trigger-merge:
114 project: '{project}'
Carmelo Cascone9a4cbfa2020-08-19 23:11:50 -0700115 - timed: "@midnight"
Carmelo Cascone81631ed2020-08-18 19:33:25 -0700116
117 wrappers:
118 - lf-infra-wrappers:
Carmelo Casconefe5ef682020-10-01 10:24:01 -0700119 build-timeout: '45'
Carmelo Cascone81631ed2020-08-18 19:33:25 -0700120 jenkins-ssh-credential: '{github-onf-bot-ssh-credential}'
121 - credentials-binding:
122 - username-password-separated:
123 credential-id: docker-artifact-push-credentials
124 username: DOCKERHUB_USERNAME
125 password: DOCKERHUB_PASSWORD
Carmelo Cascone2ce1d772020-09-02 19:37:32 -0700126 - credentials-binding:
127 - username-password-separated:
128 credential-id: aether-internal-registry
129 username: AETHER_REGISTRY_USERNAME
130 password: AETHER_REGISTRY_PASSWORD
Yi Tseng17e77b72021-04-23 02:02:25 -0700131 - credentials-binding:
132 - text:
133 credential-id: codecov-fabric-tna
134 variable: CODECOV_TOKEN
Carmelo Cascone81631ed2020-08-18 19:33:25 -0700135
136 builders:
Carmelo Cascone09e86b92020-08-19 21:09:25 -0700137 - github-notifier
Carmelo Cascone81631ed2020-08-18 19:33:25 -0700138 - shell: !include-raw-escape: ../shell/docker-login.sh
139 # For now, let the actual job script evolve in the repo. We can make that
140 # a pipeline later.
141 - shell: |
142 bash .jenkins/postmerge.sh
143
144 publishers:
Carmelo Cascone09e86b92020-08-19 21:09:25 -0700145 - github-notifier
Carmelo Cascone81631ed2020-08-18 19:33:25 -0700146 - onf-infra-wscleanup-publisher