Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 1 | --- |
| 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 Cascone | 2ce1d77 | 2020-09-02 19:37:32 -0700 | [diff] [blame] | 53 | - credentials-binding: |
| 54 | - username-password-separated: |
| 55 | credential-id: aether-internal-registry |
| 56 | username: AETHER_REGISTRY_USERNAME |
| 57 | password: AETHER_REGISTRY_PASSWORD |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 58 | |
| 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 |
Yi Tseng | aa7a60f | 2020-09-24 16:57:18 -0700 | [diff] [blame] | 68 | - archive: |
| 69 | artifacts: '**/*.log,**/*.pcap' |
| 70 | excludes: 'tmp/**/*' |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 71 | |
| 72 | - job-template: |
| 73 | id: 'fabric-tna-postmerge' |
| 74 | name: 'fabric-tna-postmerge' |
| 75 | |
| 76 | description: | |
| 77 | Created by {id} job-template from ci-management/jjb/templates/fabric-tna-jobs.yaml<br/> |
| 78 | |
| 79 | properties: |
| 80 | # Visibility restricted to ONFStaff because logs contain output from |
| 81 | # Barefoot toolchain (under NDA). |
| 82 | - onf-infra-onfstaff-private: |
| 83 | - onf-infra-properties: |
| 84 | build-days-to-keep: '{build-days-to-keep}' |
| 85 | artifact-num-to-keep: '-1' |
| 86 | - github: |
| 87 | url: 'https://github.com/{github-organization}/{project}' |
| 88 | |
| 89 | node: '{bigger-build-node}' |
| 90 | project-type: freestyle |
| 91 | concurrent: true |
| 92 | |
| 93 | parameters: |
| 94 | - onf-infra-github-pr-merge-parameters: |
| 95 | repo-name: '{project}' |
| 96 | repo-url: 'git@github.com:{github-organization}/{project}.git' |
| 97 | branch: '{stream}' |
| 98 | sha1: '{stream}' |
| 99 | |
| 100 | |
| 101 | scm: |
| 102 | - onf-infra-github-ssh-scm: |
| 103 | github-organization: '{github-organization}' |
| 104 | project: '{project}' |
| 105 | branch: "$commitHash" |
| 106 | ssh-credential: "{github-onf-bot-ssh-credential}" |
| 107 | |
| 108 | triggers: |
| 109 | - onf-infra-github-pr-trigger-merge: |
| 110 | project: '{project}' |
Carmelo Cascone | 9a4cbfa | 2020-08-19 23:11:50 -0700 | [diff] [blame] | 111 | - timed: "@midnight" |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 112 | |
| 113 | wrappers: |
| 114 | - lf-infra-wrappers: |
| 115 | build-timeout: '30' |
| 116 | jenkins-ssh-credential: '{github-onf-bot-ssh-credential}' |
| 117 | - credentials-binding: |
| 118 | - username-password-separated: |
| 119 | credential-id: docker-artifact-push-credentials |
| 120 | username: DOCKERHUB_USERNAME |
| 121 | password: DOCKERHUB_PASSWORD |
Carmelo Cascone | 2ce1d77 | 2020-09-02 19:37:32 -0700 | [diff] [blame] | 122 | - credentials-binding: |
| 123 | - username-password-separated: |
| 124 | credential-id: aether-internal-registry |
| 125 | username: AETHER_REGISTRY_USERNAME |
| 126 | password: AETHER_REGISTRY_PASSWORD |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 127 | |
| 128 | builders: |
Carmelo Cascone | 09e86b9 | 2020-08-19 21:09:25 -0700 | [diff] [blame] | 129 | - github-notifier |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 130 | - shell: !include-raw-escape: ../shell/docker-login.sh |
| 131 | # For now, let the actual job script evolve in the repo. We can make that |
| 132 | # a pipeline later. |
| 133 | - shell: | |
| 134 | bash .jenkins/postmerge.sh |
| 135 | |
| 136 | publishers: |
Carmelo Cascone | 09e86b9 | 2020-08-19 21:09:25 -0700 | [diff] [blame] | 137 | - github-notifier |
Carmelo Cascone | 81631ed | 2020-08-18 19:33:25 -0700 | [diff] [blame] | 138 | - onf-infra-wscleanup-publisher |