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