blob: 7d5160ac5ae1271d6a21a9fb9e6147cb0826c347 [file] [log] [blame]
Fathi Boudra304de5a2018-03-20 09:16:51 +02001- 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 Spoon083a72b2022-04-26 07:05:14 -050029 node: master
Fathi Boudra304de5a2018-03-20 09:16:51 +020030 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 Uvarov9579f912018-04-12 17:21:19 +030072 --template-names thunderx-lng03-ubuntu-17.10.yaml
Fathi Boudra304de5a2018-03-20 09:16:51 +020073 - build-name-setter:
74 name: 'version.txt'
75 file: true