Luca Prete | 74fa322 | 2018-03-02 15:46:14 -0800 | [diff] [blame] | 1 | --- |
| 2 | |
| 3 | - job_boiler_plate: &job_boiler_plate |
| 4 | name: job-boiler-plate |
| 5 | |
| 6 | project-type: freestyle |
| 7 | node: '{build-node}' |
| 8 | |
| 9 | ###################### |
| 10 | # Default parameters # |
| 11 | ###################### |
| 12 | |
| 13 | branch: master |
| 14 | submodule-recursive: false |
| 15 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 16 | |
| 17 | ##################### |
| 18 | # Job Configuration # |
| 19 | ##################### |
| 20 | |
| 21 | properties: |
| 22 | - lf-infra-properties: |
| 23 | project: '{project}' |
| 24 | build-days-to-keep: '{build-days-to-keep}' |
| 25 | |
| 26 | parameters: |
| 27 | - lf-infra-parameters: |
| 28 | project: '{project}' |
| 29 | branch: '{stream}' |
| 30 | stream: '{stream}' |
| 31 | lftools-version: '{lftools-version}' |
| 32 | |
| 33 | wrappers: |
| 34 | - lf-infra-wrappers: |
| 35 | build-timeout: '{build-timeout}' |
| 36 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 37 | |
| 38 | - verify_boiler_plate: &verify_boiler_plate |
| 39 | name: verify_boiler_plate |
| 40 | |
| 41 | concurrent: true |
| 42 | |
| 43 | scm: |
| 44 | - lf-infra-gerrit-scm: |
| 45 | git-url: '{git-url}' |
| 46 | refspec: '$GERRIT_REFSPEC' |
| 47 | branch: '$GERRIT_BRANCH' |
| 48 | submodule-recursive: '{submodule-recursive}' |
| 49 | choosing-strategy: gerrit |
| 50 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 51 | |
| 52 | triggers: |
| 53 | - gerrit: |
| 54 | #server-name: '{gerrit-server-name}' |
| 55 | server-name: 'CORD Project Gerrit' |
| 56 | #trigger-on: '{obj:gerrit_verify_triggers}' |
| 57 | trigger-on: |
| 58 | - patchset-created-event: |
| 59 | exclude-drafts: true |
| 60 | exclude-trivial-rebase: false |
| 61 | exclude-no-code-change: true |
| 62 | - draft-published-event |
| 63 | - comment-added-contains-event: |
| 64 | comment-contains-value: '(?i)^.*recheck$' |
| 65 | projects: |
| 66 | - project-compare-type: PLAIN |
| 67 | project-pattern: '{project}' |
| 68 | branches: |
| 69 | - branch-compare-type: ANT |
| 70 | branch-pattern: '**/{stream}' |
| 71 | #file-paths: '{obj:gerrit_trigger_file_paths}' |
| 72 | |
| 73 | # workaround for lack of parameter expansion support in shell: (see above) |
| 74 | - job-template: |
| 75 | #default name is global |
| 76 | name: 'cord-xos-gui-unit-{stream}' |
| 77 | |
| 78 | <<: *job_boiler_plate |
| 79 | # yamllint disable-line rule:key-duplicates |
| 80 | <<: *verify_boiler_plate |
| 81 | |
| 82 | builders: |
| 83 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 84 | - shell: !include-raw-escape: cord-xos-gui-unit.sh |
| 85 | |
| 86 | - project: |
| 87 | name: cord-xos-gui-unit |
| 88 | project-name: cord-xos-gui-unit |
| 89 | project: xos-gui |
| 90 | |
| 91 | build-timeout: '10' |
Zack Williams | ac98441 | 2018-04-04 15:39:45 -0700 | [diff] [blame^] | 92 | build-node: '{build-node}' |
Luca Prete | 74fa322 | 2018-03-02 15:46:14 -0800 | [diff] [blame] | 93 | |
Zack Williams | ac98441 | 2018-04-04 15:39:45 -0700 | [diff] [blame^] | 94 | # ideally this would be in defaults.yaml, but that doesn't work |
| 95 | supported_versions: &supported_versions |
Luca Prete | 74fa322 | 2018-03-02 15:46:14 -0800 | [diff] [blame] | 96 | - 'master' |
| 97 | - 'cord-5.0' |
| 98 | - 'cord-4.1' |
| 99 | - 'cord-4.0' |
Luca Prete | 74fa322 | 2018-03-02 15:46:14 -0800 | [diff] [blame] | 100 | |
Zack Williams | ac98441 | 2018-04-04 15:39:45 -0700 | [diff] [blame^] | 101 | stream: *supported_versions |
| 102 | |
Luca Prete | 74fa322 | 2018-03-02 15:46:14 -0800 | [diff] [blame] | 103 | jobs: |
| 104 | - 'cord-xos-gui-unit-{stream}' |