Fathi Boudra | 304de5a | 2018-03-20 09:16:51 +0200 | [diff] [blame] | 1 | - job: |
| 2 | name: trigger-odp-sanity-check |
| 3 | project-type: freestyle |
| 4 | defaults: global |
| 5 | properties: |
| 6 | - authorization: |
| 7 | anonymous: |
| 8 | - job-read |
| 9 | - job-extended-read |
| 10 | - build-discarder: |
| 11 | days-to-keep: 30 |
| 12 | num-to-keep: 30 |
| 13 | - github: |
| 14 | url: https://github.com/Linaro/odp |
| 15 | parameters: |
| 16 | - string: |
| 17 | name: LAVA_SERVER |
| 18 | default: 'https://lng.validation.linaro.org/RPC2/' |
| 19 | - string: |
| 20 | name: QA_SERVER |
| 21 | default: 'https://qa-reports.linaro.org' |
| 22 | - string: |
| 23 | name: QA_SERVER_PROJECT |
| 24 | default: 'odp' |
| 25 | - string: |
| 26 | name: QA_SERVER_TEAM |
| 27 | default: 'lng' |
| 28 | disabled: false |
Kelley Spoon | 083a72b | 2022-04-26 07:05:14 -0500 | [diff] [blame] | 29 | node: master |
Fathi Boudra | 304de5a | 2018-03-20 09:16:51 +0200 | [diff] [blame] | 30 | display-name: 'Trigger for ODP sanity check' |
| 31 | scm: |
| 32 | - git: |
| 33 | url: https://github.com/Linaro/odp.git |
| 34 | refspec: +refs/pull/*:refs/remotes/origin/pr/* |
| 35 | name: origin |
| 36 | branches: |
| 37 | - ${sha1} |
| 38 | skip-tag: true |
| 39 | shallow-clone: true |
| 40 | wipe-workspace: true |
| 41 | triggers: |
| 42 | - github-pull-request: |
| 43 | github-hooks: true |
| 44 | permit-all: true |
| 45 | auth-id: 'GITHUB_TOKEN' |
| 46 | wrappers: |
| 47 | - timestamps |
| 48 | - credentials-binding: |
| 49 | - text: |
| 50 | credential-id: QA_REPORTS_TOKEN |
| 51 | variable: QA_REPORTS_TOKEN |
| 52 | builders: |
| 53 | - shell: | |
| 54 | #!/bin/bash -e |
| 55 | echo "#${BUILD_NUMBER}-${ghprbActualCommit:0:8}" > ${WORKSPACE}/version.txt |
| 56 | - shell: | |
| 57 | #!/bin/bash -e |
| 58 | |
| 59 | rm -rf configs odp-ci-lava |
| 60 | git clone --depth 1 http://git.linaro.org/ci/job/configs.git |
| 61 | git clone --depth 1 https://github.com/Linaro/odp-ci-lava.git |
| 62 | |
| 63 | python configs/openembedded-lkft/submit_for_testing.py \ |
| 64 | --device-type thunderx \ |
| 65 | --build-number ${BUILD_NUMBER} \ |
| 66 | --lava-server ${LAVA_SERVER} \ |
| 67 | --qa-server ${QA_SERVER} \ |
| 68 | --qa-server-team ${QA_SERVER_TEAM} \ |
| 69 | --qa-server-project ${QA_SERVER_PROJECT} \ |
| 70 | --git-commit ${ghprbActualCommit} \ |
| 71 | --template-path odp-ci-lava/multinodes \ |
Maxim Uvarov | 9579f91 | 2018-04-12 17:21:19 +0300 | [diff] [blame] | 72 | --template-names thunderx-lng03-ubuntu-17.10.yaml |
Fathi Boudra | 304de5a | 2018-03-20 09:16:51 +0200 | [diff] [blame] | 73 | - build-name-setter: |
| 74 | name: 'version.txt' |
| 75 | file: true |