blob: 09379ee629ebe2db3d017cca188fb0cfe8dc8c9b [file] [log] [blame]
Brian O'Connor9fbe7722017-10-27 12:44:04 -07001#---
Ray Milkeye28a4db2017-10-27 12:36:14 -07002# ONOS Buck Pipeline jobs
3
Ray Milkey78abc202017-11-07 11:20:18 -08004- job:
5 branch: master
6 git-url: '$GIT_URL/$GERRIT_PROJECT'
7 stream: master
8 name: onos-validate-pipeline
9 project-type: pipeline
10 sandbox: false
Ray Milkeye28a4db2017-10-27 12:36:14 -070011
Ray Milkey78abc202017-11-07 11:20:18 -080012 parameters:
13 - lf-infra-parameters:
14 # TODO - this is a hack, figure out how to get these from defaults.yaml
15 project: 'onos'
16 stream: 'master'
17 branch: 'master'
18 lftools-version: '<1.0.0'
Ray Milkeye28a4db2017-10-27 12:36:14 -070019
Ray Milkey78abc202017-11-07 11:20:18 -080020 #TODO(BOC): use the build node from the project
21 #FIXME figure out how to run this on a slave
22 #node: 'ubuntu16.04-basebuild-8c-15g'
23 #TODO(BOC) Need build discarding
24 concurrent: true
Ray Milkeye28a4db2017-10-27 12:36:14 -070025
Ray Milkey78abc202017-11-07 11:20:18 -080026 pipeline-scm:
27 script-path: tools/build/jenkins/onos-buck-gerrit
28 scm:
29 - lf-infra-gerrit-scm:
Ray Milkeyfbd3da22017-11-07 13:18:43 -080030 #git-url: '{git-url}'
31 git-url: '$GIT_URL/$GERRIT_PROJECT'
Ray Milkey78abc202017-11-07 11:20:18 -080032 refspec: '$GERRIT_REFSPEC'
33 branch: '$GERRIT_BRANCH'
34 #submodule-recursive: '{submodule-recursive}'
35 submodule-recursive: false
36 choosing-strategy: gerrit
37 #jenkins-ssh-credential: '{jenkins-ssh-credential}'
38 jenkins-ssh-credential: 'jenkins'
39 shallow-clone: true
40
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}'
61
62- project:
63 name: onos-validate-pipeline
64 build-timeout: '1800'
65 build-node: 'ubuntu16.04-basebuild-8c-15g'
66 project: 'onos'
67 project-name: 'onos'
68
69 jobs:
70 - 'onos-validate-pipeline'
Ray Milkeye28a4db2017-10-27 12:36:14 -070071
72