blob: 351470863f608544848b2cfc9a1d2d7446c83470 [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:
12 # Visibility restricted to ONFStaff because logs contain output from
13 # Barefoot toolchain (under NDA).
14 - onf-infra-onfstaff-private:
15 - onf-infra-properties:
16 build-days-to-keep: '{build-days-to-keep}'
17 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:
46 build-timeout: '30'
47 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
Carmelo Cascone81631ed2020-08-18 19:33:25 -070058
59 builders:
60 - shell: !include-raw-escape: ../shell/docker-login.sh
61 # For now, let the actual job script evolve in the repo. We can make that
62 # a pipeline later.
63 - shell: |
64 bash .jenkins/pr_verify.sh
65
66 publishers:
67 - onf-infra-wscleanup-publisher
68
69- job-template:
70 id: 'fabric-tna-postmerge'
71 name: 'fabric-tna-postmerge'
72
73 description: |
74 Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/>
75
76 properties:
77 # Visibility restricted to ONFStaff because logs contain output from
78 # Barefoot toolchain (under NDA).
79 - onf-infra-onfstaff-private:
80 - onf-infra-properties:
81 build-days-to-keep: '{build-days-to-keep}'
82 artifact-num-to-keep: '-1'
83 - github:
84 url: 'https://github.com/{github-organization}/{project}'
85
86 node: '{bigger-build-node}'
87 project-type: freestyle
88 concurrent: true
89
90 parameters:
91 - onf-infra-github-pr-merge-parameters:
92 repo-name: '{project}'
93 repo-url: 'git@github.com:{github-organization}/{project}.git'
94 branch: '{stream}'
95 sha1: '{stream}'
96
97
98 scm:
99 - onf-infra-github-ssh-scm:
100 github-organization: '{github-organization}'
101 project: '{project}'
102 branch: "$commitHash"
103 ssh-credential: "{github-onf-bot-ssh-credential}"
104
105 triggers:
106 - onf-infra-github-pr-trigger-merge:
107 project: '{project}'
Carmelo Cascone9a4cbfa2020-08-19 23:11:50 -0700108 - timed: "@midnight"
Carmelo Cascone81631ed2020-08-18 19:33:25 -0700109
110 wrappers:
111 - lf-infra-wrappers:
112 build-timeout: '30'
113 jenkins-ssh-credential: '{github-onf-bot-ssh-credential}'
114 - credentials-binding:
115 - username-password-separated:
116 credential-id: docker-artifact-push-credentials
117 username: DOCKERHUB_USERNAME
118 password: DOCKERHUB_PASSWORD
Carmelo Cascone2ce1d772020-09-02 19:37:32 -0700119 - credentials-binding:
120 - username-password-separated:
121 credential-id: aether-internal-registry
122 username: AETHER_REGISTRY_USERNAME
123 password: AETHER_REGISTRY_PASSWORD
Carmelo Cascone81631ed2020-08-18 19:33:25 -0700124
125 builders:
Carmelo Cascone09e86b92020-08-19 21:09:25 -0700126 - github-notifier
Carmelo Cascone81631ed2020-08-18 19:33:25 -0700127 - shell: !include-raw-escape: ../shell/docker-login.sh
128 # For now, let the actual job script evolve in the repo. We can make that
129 # a pipeline later.
130 - shell: |
131 bash .jenkins/postmerge.sh
132
133 publishers:
Carmelo Cascone09e86b92020-08-19 21:09:25 -0700134 - github-notifier
Carmelo Cascone81631ed2020-08-18 19:33:25 -0700135 - onf-infra-wscleanup-publisher
Yi Tsengee098292020-09-22 14:03:42 -0700136 - archive:
137 artifacts: '**/*.log,**/*.pcap'
138 excludes: 'tmp/**/*'