| - defaults: |
| name: global |
| project-type: freestyle |
| description: | |
| This is an auto-generated job. |
| |
| To add or modify a job, look for the "vm-build" project on https://gerrit.onlab.us |
| logrotate: |
| daysToKeep: 10 |
| numToKeep: 10 |
| artifactDaysToKeep: 5 |
| artifactNumToKeep: 5 |
| wrappers: |
| - workspace-cleanup: |
| include: |
| - "*" |
| dirmatch: true |
| |
| # ---- Mininet Build and Test Jobs ---- |
| - project: |
| name: mininet-build |
| flavor: |
| - precise32server |
| - precise64server |
| - trusty32server |
| - trusty64server |
| - utopic32server |
| - utopic64server |
| jobs: |
| - 'mininet-{flavor}' |
| |
| - project: |
| name: mininet-test |
| flavor: |
| - precise32server |
| - precise64server |
| - trusty32server |
| - trusty64server |
| - utopic32server |
| - utopic64server |
| jobs: |
| - 'mininet-{flavor}-test' |
| |
| - job-template: |
| name: 'mininet-{flavor}' |
| block-downstream: true |
| triggers: |
| - timed: "@midnight" |
| builders: |
| - shell: "~mininet/mininet/util/vm/build.py -v --test sanity {flavor}" |
| publishers: |
| - archive: |
| artifacts: '**' |
| - trigger-parameterized-builds: |
| - project: 'mininet-{flavor}-test' |
| condition: SUCCESS |
| predefined-parameters: dir=$WORKSPACE |
| |
| - job-template: |
| name: 'mininet-{flavor}-test' |
| parameters: |
| - string: |
| name: dir |
| default: /var/lib/jenkins/jobs/mininet-{flavor}/workspace |
| description: "$dir defaults to last build when using Build Now." |
| builders: |
| - shell: "echo $dir; ~mininet/mininet/util/vm/build.py -v --test core --image $dir/*/*.vmdk" |
| |
| # ---- the following are jobs that update jenkins when this file is updated ---- |
| - job: |
| name: update-jenkins-jobs |
| description: | |
| This job updates Jenkins jobs automatically when updates are make to the YAML file. |
| |
| To add or modify a job, look for the "vm-build" project on https://gerrit.onlab.us |
| scm: |
| - git: |
| url: ssh://jenkins@gerrit.onlab.us:29418/vm-build |
| branches: |
| - master |
| browser: gitweb |
| browser-url: https://gerrit.onlab.us/gitweb?p=vm-build.git |
| timeout: 20 |
| triggers: |
| - gerrit: |
| trigger-on-ref-updated-event: true |
| trigger-on-change-merged-event: true |
| projects: |
| - project-compare-type: 'PLAIN' |
| project-pattern: 'vm-build' |
| branches: |
| - branch-compare-type: 'PLAIN' |
| branch-pattern: 'master' |
| silent: true |
| builders: |
| - shell: "jenkins-jobs --conf /var/lib/jenkins/jenkins_jobs.conf update jobs.yaml" |
| |
| - job: |
| name: update-jenkins-verify |
| description: | |
| This job is used to verify new Jenkins jobs using jenkins-job test before they are accepted in Gerrit. |
| parameters: |
| - string: |
| name: GERRIT_REFSPEC |
| default: refs/heads/master |
| description: "Use master as default when using Build Now." |
| scm: |
| - git: |
| url: ssh://jenkins@gerrit.onlab.us:29418/vm-build |
| refspec: $GERRIT_REFSPEC |
| branches: |
| - $GERRIT_BRANCH |
| browser: gitweb |
| browser-url: https://gerrit.onlab.us/gitweb?p=vm-build.git |
| choosing-strategy: gerrit |
| timeout: 20 |
| triggers: |
| - gerrit: |
| trigger-on-draft-published-event: true |
| trigger-on-patchset-uploaded-event: true |
| trigger-for-unreviewed-patches: true |
| projects: |
| - project-compare-type: 'PLAIN' |
| project-pattern: 'vm-build' |
| branches: |
| - branch-compare-type: 'PLAIN' |
| branch-pattern: 'master' |
| builders: |
| - shell: "jenkins-jobs test jobs.yaml" |