Ray Milkey | d61caa9 | 2019-03-07 15:43:25 -0800 | [diff] [blame] | 1 | --- |
| 2 | |
| 3 | - routing_job_boiler_plate: &routing_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: true |
| 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 | #- github: |
| 26 | # url: '{git-url}/{github-org}/{project}' |
| 27 | |
| 28 | parameters: |
| 29 | - lf-infra-parameters: |
| 30 | project: '{project}' |
| 31 | branch: '{stream}' |
| 32 | stream: '{stream}' |
| 33 | lftools-version: '{lftools-version}' |
| 34 | |
| 35 | wrappers: |
| 36 | - lf-infra-wrappers: |
| 37 | build-timeout: '{build-timeout}' |
| 38 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 39 | |
| 40 | |
| 41 | - routing_verify_boiler_plate: &routing_verify_boiler_plate |
| 42 | name: routing_verify_boiler_plate |
| 43 | |
| 44 | concurrent: true |
| 45 | |
| 46 | scm: |
| 47 | - lf-infra-gerrit-scm: |
| 48 | git-url: '{git-url}' |
| 49 | refspec: '$GERRIT_REFSPEC' |
| 50 | branch: '$GERRIT_BRANCH' |
| 51 | submodule-recursive: '{submodule-recursive}' |
| 52 | choosing-strategy: gerrit |
| 53 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 54 | |
| 55 | triggers: |
| 56 | - gerrit: |
| 57 | #server-name: '{gerrit-server-name}' |
| 58 | server-name: 'ONOS Project Gerrit' |
| 59 | #trigger-on: '{obj:gerrit_verify_triggers}' |
| 60 | trigger-on: |
| 61 | - patchset-created-event: |
| 62 | exclude-drafts: true |
| 63 | exclude-trivial-rebase: false |
| 64 | exclude-no-code-change: true |
| 65 | - draft-published-event: true |
| 66 | - comment-added-contains-event: |
| 67 | comment-contains-value: '(?i)^.*recheck$' |
| 68 | projects: |
| 69 | - project-compare-type: PLAIN |
| 70 | project-pattern: '{project}' |
| 71 | branches: |
| 72 | - branch-compare-type: ANT |
| 73 | branch-pattern: '**/{stream}' |
| 74 | #file-paths: '{obj:gerrit_trigger_file_paths}' |
| 75 | |
| 76 | |
| 77 | - job-template: |
| 78 | #default name is global |
| 79 | name: '{project-name}-{stream}-routing-verify' |
| 80 | |
| 81 | # Job template for Java verify jobs |
| 82 | # |
| 83 | # The purpose of this job templte is to run "maven clean install" for |
| 84 | # projects using this template. |
| 85 | # |
| 86 | # Required Variables: |
| 87 | # branch: git branch (eg. master) |
| 88 | |
| 89 | <<: *routing_job_boiler_plate |
| 90 | # yamllint disable-line rule:key-duplicates |
| 91 | <<: *routing_verify_boiler_plate |
| 92 | |
| 93 | builders: |
| 94 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 95 | - shell: !include-raw-escape: routing-verify.sh |
| 96 | |
| 97 | - project: |
| 98 | name: routing |
| 99 | project-name: routing |
| 100 | project: routing |
| 101 | |
| 102 | build-timeout: '30' |
| 103 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 104 | |
| 105 | stream: |
| 106 | - 'master' |
| 107 | |
| 108 | jobs: |
| 109 | - '{project-name}-{stream}-routing-verify' |
| 110 | |
| 111 | |