-# For the Job templates below replace instances of:
-# PROJECT_SHORTNAME with your project name (eg. circuitsw)
-# PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
-# MAVEN_GOALS with your maven goals to build
-# MAVEN_OPTS with your maven options to build
-
-- job-template:
- name: 'usc-verify-{stream}'
-
- # Job template for ODL verify jobs
- #
- # The purpose of this job template is to setup a ODL verify job
- #
- # Required Variables:
- # stream: release stream (eg. stable-lithium or beryllium)
- # branch: git branch (eg. stable/lithium or master)
-
- project-type: matrix
- node: matrix_master
- concurrent: true
-
- axes:
- - axis:
- type: slave
- name: nodes
- values:
- - dynamic_verify
- - axis:
- type: jdk
- values: '{obj:jdks}'
-
- logrotate:
- daysToKeep: '14'
-
- parameters:
- - project-parameter:
- project: '{project}'
- - gerrit-parameters:
- project: '{project}'
- branch: '{branch}'
- refspec: 'refs/heads/{branch}'
-
- scm:
- - gerrit-trigger-scm:
- refspec: '$GERRIT_REFSPEC'
- choosing-strategy: 'gerrit'
-
- wrappers:
- - opendaylight-infra-wrappers:
- build-timeout: '{build-timeout}'
-
- triggers:
- - gerrit-trigger-patch-submitted:
- name: 'usc'
- branch: '{branch}'
-
- builders:
- - jacoco-nojava-workaround
- - provide-maven-settings:
- global-settings-file: 'odl-global-settings'
- settings-file: 'usc-settings'
- - maven-target:
- maven-version: '{mvn33}'
- pom: 'pom.xml'
- goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
- java-opts:
- - '-Xmx1024m -XX:MaxPermSize=256m'
- settings: 'usc-settings'
- settings-type: cfp
- global-settings: 'odl-global-settings'
- global-settings-type: cfp
-
- publishers:
- - archive-artifacts:
- artifacts: '**/target/surefire-reports/*-output.txt, '
- - findbugs
- - email-notification:
- email-prefix: '[usc]'
- - jacoco-report
- - archive-build:
- maven-version: '{mvn33}'
-
-- job-template:
- name: 'usc-merge-{stream}'
-
- # Job template for ODL merge jobs
- #
- # The purpose of this job template is to setup a ODL merge job
- # and deploy artifacts to Nexus.
- #
- # Required Variables:
- # stream: release stream (eg. stable-lithium or beryllium)
- # branch: git branch (eg. stable/lithium or master)
-
- project-type: maven
- node: dynamic_merge
- jdk: '{jdk}'
-
- logrotate:
- daysToKeep: '14'
- numToKeep: '10'
- artifactDaysToKeep: '{build-artifact-days-to-keep}'
- artifactNumToKeep: '{build-artifact-num-to-keep}'
-
- parameters:
- - project-parameter:
- project: '{project}'
- - gerrit-parameters:
- project: '{project}'
- branch: '{branch}'
- refspec: 'refs/heads/{branch}'
-
- scm:
- - gerrit-trigger-scm:
- refspec: ''
- choosing-strategy: 'default'
-
- wrappers:
- - opendaylight-infra-wrappers:
- build-timeout: '{build-timeout}'
-
- triggers:
- - timed: 'H H * * 0'
- - gerrit-trigger-patch-merged:
- name: 'usc'
- branch: '{branch}'
-
- prebuilders:
- - jacoco-nojava-workaround
- - provide-maven-settings:
- global-settings-file: 'odl-global-settings'
- settings-file: 'usc-settings'
-
- maven:
- maven-name: '{mvn33}'
- root-pom: 'pom.xml'
- goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
- maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
- settings: 'usc-settings'
- settings-type: cfp
- global-settings: 'odl-global-settings'
- global-settings-type: cfp
- post-step-run-condition: UNSTABLE
-
- postbuilders:
- - conditional-step:
- condition-kind: file-exists
- condition-filename: deploy-site.xml
- condition-basedir: workspace
-
- # The strategy here is intentional to run Maven site:deploy twice
- # once using regular pom.xml to produce a staged-site which is
- # then used by deploy-site.xml to push to Nexus. This is a
- # workaround to Maven Site's default linking code which creates
- # incorrect URLs for sites due to auto-detection assuming your
- # project is configured in a certain way which ODL is not.
- steps:
- - maven-target:
- maven-version: '{mvn33}'
- pom: pom.xml
- goals: 'site:deploy -V -B -Dstream={stream}'
- java-opts:
- - '-Xmx2g'
- settings: 'usc-settings'
- settings-type: cfp
- global-settings: 'odl-global-settings'
- global-settings-type: cfp
- - maven-target:
- maven-version: '{mvn33}'
- pom: deploy-site.xml
- goals: 'site:deploy -V -B -Dstream={stream}'
- java-opts:
- - '-Xmx2g'
- settings: 'usc-settings'
- settings-type: cfp
- global-settings: 'odl-global-settings'
- global-settings-type: cfp
-
- reporters:
- - findbugs
-
- publishers:
- - archive-artifacts:
- artifacts: '**/target/surefire-reports/*-output.txt, '
- - email-notification:
- email-prefix: '[usc]'
- - maven-deploy:
- id: ''
- unique-version: true
- deploy-unstable: false
- - jacoco-report
- - archive-build:
- maven-version: '{mvn33}'
-
-- job-template:
- name: 'usc-periodic-{stream}'
- disabled: false
-
- # Job template for periodic builders
- #
- # The purpose of this job template is to setup a periodic
- # builder.
- #
- # Required Variables:
- # stream: release stream (eg. stable-lithium or beryllium)
- # branch: git branch (eg. stable/lithium or master)
-
- project-type: maven
- node: dynamic_verify
- jdk: '{jdk}'
-
- logrotate:
- daysToKeep: '14'
- numToKeep: '10'
- artifactDaysToKeep: '{build-artifact-days-to-keep}'
- artifactNumToKeep: '{build-artifact-num-to-keep}'
-
- parameters:
- - project-parameter:
- project: '{project}'
-
- scm:
- - git-scm:
- refspec: ''
- branch: '{branch}'
-
- wrappers:
- - opendaylight-infra-wrappers:
- build-timeout: '{build-timeout}'
-
- triggers:
- - timed: '@daily'
-
- prebuilders:
- - jacoco-nojava-workaround
- - provide-maven-settings:
- global-settings-file: 'odl-global-settings'
- settings-file: 'usc-settings'
-
- maven:
- maven-name: '{mvn33}'
- root-pom: 'pom.xml'
- goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
- maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
- settings: 'usc-settings'
- settings-type: cfp
- global-settings: 'odl-global-settings'
- global-settings-type: cfp
-
- reporters:
- - findbugs
-
- publishers:
- - email-notification:
- email-prefix: '[usc]'
- - jacoco-report
- - archive-build:
- maven-version: '{mvn33}'
-
-- job-template:
- name: 'usc-distribution-{stream}'
-
- # Required variables:
- # stream: release stream (eg. stable-lithium or beryllium)
- # branch: git branch (eg. stable/lithium or master)
-
- project-type: maven
- node: dynamic_merge
- jdk: '{jdk}'
-
- logrotate:
- daysToKeep: '{build-days-to-keep}'
- numToKeep: '{build-num-to-keep}'
- artifactDaysToKeep: '{build-artifact-days-to-keep}'
- artifactNumToKeep: '{build-artifact-num-to-keep}'
-
- parameters:
- - project-parameter:
- project: 'integration/distribution'
-
- scm:
- - git-scm:
- refspec: ''
- branch: '{branch}'
-
- wrappers:
- - opendaylight-infra-wrappers:
- build-timeout: '{build-timeout}'
-
- triggers:
- - reverse:
- jobs: '{project}-merge-{stream}'
- result: 'success'
-
- prebuilders:
- - provide-maven-settings:
- global-settings-file: 'odl-global-settings'
- settings-file: 'usc-settings'
-
- maven:
- maven-name: '{mvn33}'
- root-pom: 'pom.xml'
- goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
- maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
- settings: 'integration-distribution-settings'
- settings-type: cfp
- global-settings: 'odl-global-settings'
- global-settings-type: cfp
-
- publishers:
- - email-notification:
- email-prefix: '[{project}]'
- - maven-deploy:
- id: ''
- unique-version: true
- deploy-unstable: false
- - archive-build:
- maven-version: '{mvn33}'
-
-# Template: integration-patch-distribution-{stream}
-# Goal: Build a patch and make sure the distribution can deploy with this change
-# Operation: This job template builds a patch, creates a distribution containing
-# the patch, and triggers the distribution deploy test
-
-- job-template:
- name: 'usc-distribution-check-{stream}'
- disabled: '{obj:disable_distribution_check}'
-
- project-type: maven
- node: dynamic_verify
- concurrent: true
- jdk: '{jdk}'
-
- logrotate:
- daysToKeep: '{build-days-to-keep}'
- numToKeep: '{build-num-to-keep}'
- artifactDaysToKeep: '{build-artifact-days-to-keep}'
- artifactNumToKeep: '{build-artifact-num-to-keep}'
-
- parameters:
- - gerrit-parameters:
- project: '{project}'
- branch: '{branch}'
- refspec: 'refs/heads/{branch}'
- - project-parameter:
- project: '{project}'
- - integration-distribution-git-url