Brian O'Connor | 9cf3715 | 2014-09-20 01:49:22 -0700 | [diff] [blame] | 1 | - defaults: |
| 2 | name: global |
Brian O'Connor | d0ad16e | 2014-09-20 00:07:08 -0700 | [diff] [blame] | 3 | project-type: freestyle |
Brian O'Connor | 9cf3715 | 2014-09-20 01:49:22 -0700 | [diff] [blame] | 4 | description: | |
Brian O'Connor | c6aef8f | 2014-09-20 01:51:08 -0700 | [diff] [blame] | 5 | This is an auto-generated job. |
Brian O'Connor | c9449db | 2014-09-20 02:04:51 -0700 | [diff] [blame] | 6 | |
Brian O'Connor | 9cf3715 | 2014-09-20 01:49:22 -0700 | [diff] [blame] | 7 | To add or modify a job, look for the "vm-build" project on https://gerrit.onlab.us |
Brian O'Connor | aa7950f | 2014-09-20 00:58:52 -0700 | [diff] [blame] | 8 | logrotate: |
Brian O'Connor | 7366606 | 2014-09-20 02:29:13 -0700 | [diff] [blame] | 9 | daysToKeep: 10 |
| 10 | numToKeep: 10 |
| 11 | artifactDaysToKeep: 5 |
| 12 | artifactNumToKeep: 5 |
Brian O'Connor | c9449db | 2014-09-20 02:04:51 -0700 | [diff] [blame] | 13 | wrappers: |
| 14 | - workspace-cleanup: |
Bob Lantz | 933c4a2 | 2014-09-22 17:27:37 -0700 | [diff] [blame] | 15 | include: |
Brian O'Connor | 1b80383 | 2014-09-20 02:13:48 -0700 | [diff] [blame] | 16 | - "*" |
Brian O'Connor | c9449db | 2014-09-20 02:04:51 -0700 | [diff] [blame] | 17 | dirmatch: true |
Brian O'Connor | aa7950f | 2014-09-20 00:58:52 -0700 | [diff] [blame] | 18 | |
Brian O'Connor | 9cf3715 | 2014-09-20 01:49:22 -0700 | [diff] [blame] | 19 | # ---- Mininet Build and Test Jobs ---- |
| 20 | - project: |
| 21 | name: mininet-build |
Bob Lantz | 933c4a2 | 2014-09-22 17:27:37 -0700 | [diff] [blame] | 22 | flavor: |
| 23 | - precise32server |
| 24 | - precise64server |
| 25 | - trusty32server |
| 26 | - trusty64server |
| 27 | - utopic32server |
| 28 | - utopic64server |
Brian O'Connor | 9cf3715 | 2014-09-20 01:49:22 -0700 | [diff] [blame] | 29 | jobs: |
Bob Lantz | 933c4a2 | 2014-09-22 17:27:37 -0700 | [diff] [blame] | 30 | - 'mininet-{flavor}' |
Bob Lantz | 933c4a2 | 2014-09-22 17:27:37 -0700 | [diff] [blame] | 31 | - 'mininet-{flavor}-test' |
Brian O'Connor | 9cf3715 | 2014-09-20 01:49:22 -0700 | [diff] [blame] | 32 | |
| 33 | - job-template: |
| 34 | name: 'mininet-{flavor}' |
| 35 | block-downstream: true |
Brian O'Connor | d0ad16e | 2014-09-20 00:07:08 -0700 | [diff] [blame] | 36 | triggers: |
| 37 | - timed: "@midnight" |
| 38 | builders: |
Brian O'Connor | 9cf3715 | 2014-09-20 01:49:22 -0700 | [diff] [blame] | 39 | - shell: "~mininet/mininet/util/vm/build.py -v --test sanity {flavor}" |
Brian O'Connor | d0ad16e | 2014-09-20 00:07:08 -0700 | [diff] [blame] | 40 | publishers: |
Brian O'Connor | 7366606 | 2014-09-20 02:29:13 -0700 | [diff] [blame] | 41 | - archive: |
Brian O'Connor | 74b9c23 | 2014-09-20 04:01:46 -0700 | [diff] [blame] | 42 | artifacts: '**' |
Brian O'Connor | d0ad16e | 2014-09-20 00:07:08 -0700 | [diff] [blame] | 43 | - trigger-parameterized-builds: |
Brian O'Connor | 9cf3715 | 2014-09-20 01:49:22 -0700 | [diff] [blame] | 44 | - project: 'mininet-{flavor}-test' |
Brian O'Connor | 3af0f48 | 2014-09-19 20:00:29 -0700 | [diff] [blame] | 45 | condition: SUCCESS |
Brian O'Connor | 326d042 | 2014-09-19 19:54:29 -0700 | [diff] [blame] | 46 | predefined-parameters: dir=$WORKSPACE |
Brian O'Connor | 08c5b11 | 2014-09-19 19:10:17 -0700 | [diff] [blame] | 47 | |
Brian O'Connor | 9cf3715 | 2014-09-20 01:49:22 -0700 | [diff] [blame] | 48 | - job-template: |
| 49 | name: 'mininet-{flavor}-test' |
Brian O'Connor | 7366606 | 2014-09-20 02:29:13 -0700 | [diff] [blame] | 50 | parameters: |
| 51 | - string: |
Bob Lantz | 933c4a2 | 2014-09-22 17:27:37 -0700 | [diff] [blame] | 52 | name: dir |
Brian O'Connor | 7366606 | 2014-09-20 02:29:13 -0700 | [diff] [blame] | 53 | default: /var/lib/jenkins/jobs/mininet-{flavor}/workspace |
| 54 | description: "$dir defaults to last build when using Build Now." |
Brian O'Connor | d0ad16e | 2014-09-20 00:07:08 -0700 | [diff] [blame] | 55 | builders: |
| 56 | - shell: "echo $dir; ~mininet/mininet/util/vm/build.py -v --test core --image $dir/*/*.vmdk" |
Brian O'Connor | 65f9985 | 2014-09-19 23:14:03 -0700 | [diff] [blame] | 57 | |
| 58 | # ---- the following are jobs that update jenkins when this file is updated ---- |
Brian O'Connor | 01303d4 | 2014-09-19 18:10:58 -0700 | [diff] [blame] | 59 | - job: |
Brian O'Connor | 8279208 | 2014-09-19 18:59:43 -0700 | [diff] [blame] | 60 | name: update-jenkins-jobs |
Brian O'Connor | 380c252 | 2014-09-20 00:12:40 -0700 | [diff] [blame] | 61 | description: | |
Bob Lantz | 6f80672 | 2014-09-22 18:13:47 -0700 | [diff] [blame] | 62 | This job updates Jenkins jobs automatically when updates are made to the YAML file. |
Brian O'Connor | 380c252 | 2014-09-20 00:12:40 -0700 | [diff] [blame] | 63 | |
| 64 | To add or modify a job, look for the "vm-build" project on https://gerrit.onlab.us |
Brian O'Connor | 01303d4 | 2014-09-19 18:10:58 -0700 | [diff] [blame] | 65 | scm: |
| 66 | - git: |
| 67 | url: ssh://jenkins@gerrit.onlab.us:29418/vm-build |
| 68 | branches: |
| 69 | - master |
| 70 | browser: gitweb |
| 71 | browser-url: https://gerrit.onlab.us/gitweb?p=vm-build.git |
| 72 | timeout: 20 |
| 73 | triggers: |
Brian O'Connor | 4e72d84 | 2014-09-19 18:20:04 -0700 | [diff] [blame] | 74 | - gerrit: |
Brian O'Connor | 01303d4 | 2014-09-19 18:10:58 -0700 | [diff] [blame] | 75 | trigger-on-ref-updated-event: true |
| 76 | trigger-on-change-merged-event: true |
| 77 | projects: |
| 78 | - project-compare-type: 'PLAIN' |
| 79 | project-pattern: 'vm-build' |
| 80 | branches: |
| 81 | - branch-compare-type: 'PLAIN' |
| 82 | branch-pattern: 'master' |
Brian O'Connor | 4e72d84 | 2014-09-19 18:20:04 -0700 | [diff] [blame] | 83 | silent: true |
Brian O'Connor | 01303d4 | 2014-09-19 18:10:58 -0700 | [diff] [blame] | 84 | builders: |
| 85 | - shell: "jenkins-jobs --conf /var/lib/jenkins/jenkins_jobs.conf update jobs.yaml" |
Brian O'Connor | c990f87 | 2014-09-19 18:21:25 -0700 | [diff] [blame] | 86 | |
| 87 | - job: |
| 88 | name: update-jenkins-verify |
Brian O'Connor | 380c252 | 2014-09-20 00:12:40 -0700 | [diff] [blame] | 89 | description: | |
| 90 | This job is used to verify new Jenkins jobs using jenkins-job test before they are accepted in Gerrit. |
Brian O'Connor | 7366606 | 2014-09-20 02:29:13 -0700 | [diff] [blame] | 91 | parameters: |
| 92 | - string: |
| 93 | name: GERRIT_REFSPEC |
Bob Lantz | 933c4a2 | 2014-09-22 17:27:37 -0700 | [diff] [blame] | 94 | default: refs/heads/master |
Brian O'Connor | 7366606 | 2014-09-20 02:29:13 -0700 | [diff] [blame] | 95 | description: "Use master as default when using Build Now." |
Brian O'Connor | db899fb | 2014-09-19 23:09:14 -0700 | [diff] [blame] | 96 | scm: |
| 97 | - git: |
| 98 | url: ssh://jenkins@gerrit.onlab.us:29418/vm-build |
Brian O'Connor | 7366606 | 2014-09-20 02:29:13 -0700 | [diff] [blame] | 99 | refspec: $GERRIT_REFSPEC |
Brian O'Connor | db899fb | 2014-09-19 23:09:14 -0700 | [diff] [blame] | 100 | branches: |
| 101 | - $GERRIT_BRANCH |
| 102 | browser: gitweb |
| 103 | browser-url: https://gerrit.onlab.us/gitweb?p=vm-build.git |
Brian O'Connor | c82eaf8 | 2014-09-20 03:28:50 -0700 | [diff] [blame] | 104 | choosing-strategy: gerrit |
Brian O'Connor | db899fb | 2014-09-19 23:09:14 -0700 | [diff] [blame] | 105 | timeout: 20 |
| 106 | triggers: |
| 107 | - gerrit: |
| 108 | trigger-on-draft-published-event: true |
| 109 | trigger-on-patchset-uploaded-event: true |
Brian O'Connor | 51c53d8 | 2014-09-19 23:19:42 -0700 | [diff] [blame] | 110 | trigger-for-unreviewed-patches: true |
Brian O'Connor | db899fb | 2014-09-19 23:09:14 -0700 | [diff] [blame] | 111 | projects: |
| 112 | - project-compare-type: 'PLAIN' |
| 113 | project-pattern: 'vm-build' |
| 114 | branches: |
| 115 | - branch-compare-type: 'PLAIN' |
| 116 | branch-pattern: 'master' |
| 117 | builders: |
| 118 | - shell: "jenkins-jobs test jobs.yaml" |