blob: 5fe2498f4afe5585688122baac49ed7a4ac162bb [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
53
54 builders:
55 - shell: !include-raw-escape: ../shell/docker-login.sh
56 # For now, let the actual job script evolve in the repo. We can make that
57 # a pipeline later.
58 - shell: |
59 bash .jenkins/pr_verify.sh
60
61 publishers:
62 - onf-infra-wscleanup-publisher
63
64- job-template:
65 id: 'fabric-tna-postmerge'
66 name: 'fabric-tna-postmerge'
67
68 description: |
69 Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/>
70
71 properties:
72 # Visibility restricted to ONFStaff because logs contain output from
73 # Barefoot toolchain (under NDA).
74 - onf-infra-onfstaff-private:
75 - onf-infra-properties:
76 build-days-to-keep: '{build-days-to-keep}'
77 artifact-num-to-keep: '-1'
78 - github:
79 url: 'https://github.com/{github-organization}/{project}'
80
81 node: '{bigger-build-node}'
82 project-type: freestyle
83 concurrent: true
84
85 parameters:
86 - onf-infra-github-pr-merge-parameters:
87 repo-name: '{project}'
88 repo-url: 'git@github.com:{github-organization}/{project}.git'
89 branch: '{stream}'
90 sha1: '{stream}'
91
92
93 scm:
94 - onf-infra-github-ssh-scm:
95 github-organization: '{github-organization}'
96 project: '{project}'
97 branch: "$commitHash"
98 ssh-credential: "{github-onf-bot-ssh-credential}"
99
100 triggers:
101 - onf-infra-github-pr-trigger-merge:
102 project: '{project}'
103
104 wrappers:
105 - lf-infra-wrappers:
106 build-timeout: '30'
107 jenkins-ssh-credential: '{github-onf-bot-ssh-credential}'
108 - credentials-binding:
109 - username-password-separated:
110 credential-id: docker-artifact-push-credentials
111 username: DOCKERHUB_USERNAME
112 password: DOCKERHUB_PASSWORD
113
114 builders:
115 - shell: !include-raw-escape: ../shell/docker-login.sh
116 # For now, let the actual job script evolve in the repo. We can make that
117 # a pipeline later.
118 - shell: |
119 bash .jenkins/postmerge.sh
120
121 publishers:
122 - onf-infra-wscleanup-publisher