aboutsummaryrefslogtreecommitdiff
path: root/tcwg-trigger-buildapp.yaml
blob: ab15f52218a3b3893e9c1f3ebc5d6b9a69eae999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
- job:
    name: tcwg-trigger-buildapp
    project-type: freestyle
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 30
    parameters:
        - string:
            name: toolchain_url
            default: ''
            description: 'Toolchain URL'
        - string:
            name: app_list
            default: 'gcc linux'
            description: 'Apps to build (eg gcc, linux, linux+myconfig)'
        - string:
            name: target_list
            default: 'arm-linux-gnueabihf aarch64-linux-gnu'
            description: 'Targets'
    disabled: false
    node: tcwg-x86_64-dev-01-short
    display-name: 'TCWG ZZZ Trigger BuildApp'
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}'
    builders:
        - shell: |
            #!/bin/bash

            set -e

            echo "app_list=${app_list}" > buildapp.properties
            echo "target_list=${target_list}" >> buildapp.properties
            echo "toolchain_url=${toolchain_url}" >> buildapp.properties
            cat buildapp.properties
        - trigger-builds:
            - project: 'tcwg-buildapp-christophe'
              property-file: buildapp.properties