Ray Milkey | a8f64f3 | 2017-10-26 12:11:56 -0700 | [diff] [blame] | 1 | --- |
| 2 | # ONOS Buck Pipeline jobs |
| 3 | |
| 4 | - job: |
Ray Milkey | 8df72c1 | 2017-10-27 09:05:12 -0700 | [diff] [blame^] | 5 | branch: master |
| 6 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 7 | stream: master |
Ray Milkey | a8f64f3 | 2017-10-26 12:11:56 -0700 | [diff] [blame] | 8 | name: onos-buck-gerrit |
| 9 | project-type: pipeline |
| 10 | sandbox: false |
Ray Milkey | 8df72c1 | 2017-10-27 09:05:12 -0700 | [diff] [blame^] | 11 | |
| 12 | parameters: |
| 13 | - lf-infra-parameters: |
| 14 | project: '{project}' |
| 15 | stream: '{stream}' |
| 16 | branch: '{branch}' |
| 17 | lftools-version: '{lftools-version}' |
| 18 | |
Brian O'Connor | 09cf757 | 2017-10-26 18:42:47 -0700 | [diff] [blame] | 19 | #TODO(BOC): use the build node from the project |
Brian O'Connor | 54a2319 | 2017-10-26 20:24:11 -0700 | [diff] [blame] | 20 | #FIXME figure out how to run this on a slave |
| 21 | #node: 'ubuntu16.04-basebuild-8c-15g' |
Brian O'Connor | 09cf757 | 2017-10-26 18:42:47 -0700 | [diff] [blame] | 22 | #TODO(BOC) Need build discarding |
| 23 | #TODO(BOC) Need build parameters |
| 24 | concurrent: true |
Ray Milkey | a8f64f3 | 2017-10-26 12:11:56 -0700 | [diff] [blame] | 25 | |
| 26 | pipeline-scm: |
| 27 | script-path: tools/build/jenkins/onos-buck-gerrit |
| 28 | scm: |
| 29 | - lf-infra-gerrit-scm: |
Brian O'Connor | 09cf757 | 2017-10-26 18:42:47 -0700 | [diff] [blame] | 30 | # git-url: '{git-url}' |
| 31 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
Brian O'Connor | 32bc42f | 2017-10-26 18:31:07 -0700 | [diff] [blame] | 32 | refspec: '$GERRIT_REFSPEC' |
| 33 | branch: '$GERRIT_BRANCH' |
| 34 | #submodule-recursive: '{submodule-recursive}' |
| 35 | submodule-recursive: false |
Ray Milkey | a8f64f3 | 2017-10-26 12:11:56 -0700 | [diff] [blame] | 36 | choosing-strategy: gerrit |
Brian O'Connor | 32bc42f | 2017-10-26 18:31:07 -0700 | [diff] [blame] | 37 | #jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 38 | jenkins-ssh-credential: 'jenkins' |
| 39 | shallow-clone: true |
Ray Milkey | a8f64f3 | 2017-10-26 12:11:56 -0700 | [diff] [blame] | 40 | |
Brian O'Connor | 32bc42f | 2017-10-26 18:31:07 -0700 | [diff] [blame] | 41 | triggers: |
| 42 | - gerrit: |
| 43 | #server-name: '{gerrit-server-name}' |
| 44 | server-name: 'ONOS Project Gerrit' |
| 45 | #trigger-on: '{obj:gerrit_verify_triggers}' |
| 46 | trigger-on: |
| 47 | - patchset-created-event: |
| 48 | exclude-drafts: true |
| 49 | exclude-trivial-rebase: false |
| 50 | exclude-no-code-change: true |
| 51 | - draft-published-event |
| 52 | projects: |
| 53 | - project-compare-type: PLAIN |
| 54 | #project-pattern: '{project}' |
| 55 | project-pattern: 'onos' |
| 56 | branches: |
| 57 | - branch-compare-type: ANT |
| 58 | #branch-pattern: '**/{branch}' |
| 59 | branch-pattern: '**/master' |
| 60 | #file-paths: '{obj:gerrit_trigger_file_paths}' |
Ray Milkey | a8f64f3 | 2017-10-26 12:11:56 -0700 | [diff] [blame] | 61 | |
| 62 | - project: |
| 63 | name: onos-buck-gerrit |
| 64 | build-timeout: '1800' |
| 65 | build-node: 'ubuntu16.04-basebuild-8c-15g' |
| 66 | project: 'onos' |
| 67 | project-name: 'onos' |
| 68 | |
| 69 | jobs: |
| 70 | - 'onos-buck-gerrit' |
| 71 | |
| 72 | |