Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [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: 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: '{branch}' |
| 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 | - verify_boiler_plate: &verify_boiler_plate |
| 42 | name: verify_boiler_plate |
| 43 | |
| 44 | concurrent: true |
| 45 | |
| 46 | scm: |
Brian O'Connor | e78aff6 | 2017-10-30 14:08:51 -0700 | [diff] [blame] | 47 | - lf-infra-gerrit-scm: |
| 48 | git-url: '{git-url}' |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 49 | refspec: '$GERRIT_REFSPEC' |
| 50 | branch: '$GERRIT_BRANCH' |
| 51 | submodule-recursive: '{submodule-recursive}' |
Brian O'Connor | e78aff6 | 2017-10-30 14:08:51 -0700 | [diff] [blame] | 52 | choosing-strategy: gerrit |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 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 |
Brian O'Connor | edd8741 | 2017-10-30 19:27:08 -0700 | [diff] [blame] | 66 | - comment-added-contains-event: |
| 67 | comment-contains-value: '(?i)^.*recheck$' |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 68 | projects: |
| 69 | - project-compare-type: PLAIN |
Ray Milkey | 20beeae | 2017-10-31 15:26:10 -0700 | [diff] [blame] | 70 | project-pattern: '{project}' |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 71 | branches: |
| 72 | - branch-compare-type: ANT |
| 73 | #branch-pattern: '**/{branch}' |
| 74 | branch-pattern: '**/master' |
| 75 | #file-paths: '{obj:gerrit_trigger_file_paths}' |
Ray Milkey | c0c94f5 | 2017-10-30 17:36:14 -0700 | [diff] [blame] | 76 | - project-compare-type: PLAIN |
| 77 | #project-pattern: '{project}' |
| 78 | project-pattern: 'onos' |
| 79 | branches: |
| 80 | - branch-compare-type: ANT |
| 81 | #branch-pattern: '**/{branch}' |
| 82 | branch-pattern: '**/onos-1.11' |
| 83 | #file-paths: '{obj:gerrit_trigger_file_paths}' |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 84 | |
| 85 | - job-template: |
| 86 | #default name is global |
| 87 | name: '{project-name}-{stream}-verify' |
| 88 | |
| 89 | # Job template for Java verify jobs |
| 90 | # |
| 91 | # The purpose of this job templte is to run "maven clean install" for |
| 92 | # projects using this template. |
| 93 | # |
| 94 | # Required Variables: |
| 95 | # branch: git branch (eg. master) |
| 96 | |
| 97 | <<: *job_boiler_plate |
| 98 | # yamllint disable-line rule:key-duplicates |
| 99 | <<: *verify_boiler_plate |
| 100 | |
| 101 | builders: |
| 102 | #put shell scripts in file then make sure shell check is installed on verify vms |
Ray Milkey | 7aa4346 | 2017-10-30 16:15:23 -0700 | [diff] [blame] | 103 | - shell: !include-raw-escape: onos-verify.sh |
Yuta HIGUCHI | 02e46d3 | 2017-10-31 10:17:47 -0700 | [diff] [blame] | 104 | # JJB 1.6.2 does not support parameter expansion on filename? |
| 105 | #- shell: !include-raw-escape: {project-name}-verify.sh |
| 106 | |
| 107 | # workaround for lack of parameter expansion support in shell: (see above) |
| 108 | - job-template: |
| 109 | #default name is global |
| 110 | name: 'onos-yang-tools-{stream}-verify' |
| 111 | |
| 112 | # Job template for Java verify jobs |
| 113 | # |
| 114 | # The purpose of this job templte is to run "maven clean install" for |
| 115 | # projects using this template. |
| 116 | # |
| 117 | # Required Variables: |
| 118 | # branch: git branch (eg. master) |
| 119 | |
| 120 | <<: *job_boiler_plate |
| 121 | # yamllint disable-line rule:key-duplicates |
| 122 | <<: *verify_boiler_plate |
| 123 | |
| 124 | builders: |
| 125 | #put shell scripts in file then make sure shell check is installed on verify vms |
| 126 | - shell: !include-raw-escape: onos-yang-tools-verify.sh |
| 127 | |
Brian O'Connor | 9fbe772 | 2017-10-27 12:44:04 -0700 | [diff] [blame] | 128 | |
| 129 | - project: |
| 130 | name: onos |
| 131 | project-name: onos |
| 132 | project: onos |
| 133 | |
| 134 | build-timeout: '1800' |
| 135 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 136 | |
| 137 | stream: |
| 138 | - 'master' |
| 139 | |
| 140 | jobs: |
| 141 | - '{project-name}-{stream}-verify' |
Yuta HIGUCHI | 02e46d3 | 2017-10-31 10:17:47 -0700 | [diff] [blame] | 142 | |
| 143 | - project: |
| 144 | name: onos-yang-tools |
| 145 | project-name: onos-yang-tools |
| 146 | project: onos-yang-tools |
| 147 | |
| 148 | build-timeout: '1800' |
| 149 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 150 | |
| 151 | stream: |
| 152 | - 'master' |
| 153 | |
| 154 | jobs: |
| 155 | - 'onos-yang-tools-{stream}-verify' |