X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fcontroller%2Fcontroller.yaml;h=31641f8f02514eb7c65b01dad323c865b11be2b0;hb=c0005a1499d962ed366d089a8bb1d40cc6b38657;hp=2b8629daebf6603cb4bd52c7417c69d3f71b8de0;hpb=73ed66e75d50ce57f34ab52a1dc66c883e205756;p=releng%2Fbuilder.git diff --git a/jjb/controller/controller.yaml b/jjb/controller/controller.yaml index 2b8629dae..31641f8f0 100644 --- a/jjb/controller/controller.yaml +++ b/jjb/controller/controller.yaml @@ -6,21 +6,35 @@ - project: name: controller jobs: - - 'controller-verify-{stream}' - 'controller-merge-{stream}' - 'controller-daily-{stream}' - 'controller-integration-{stream}' + - 'controller-sonar' + - 'controller-clm' + # stream: branch with - in place of / (eg. stable-helium) # branch: branch (eg. stable/helium) stream: - master: branch: 'master' + jdk: openjdk7 + jdks: + - openjdk7 + - openjdk8 - stable-helium: branch: 'stable/helium' + jdk: openjdk7 + jdks: + - openjdk7 + - stable-lithium: + branch: 'stable/lithium' + jdk: openjdk7 + jdks: + - openjdk7 + - openjdk8 project: 'controller' - jdk: 'openjdk7' # For the Job templates below replace instances of: # PROJECT with your project name (eg. controller) @@ -28,18 +42,19 @@ # MAVEN_OPTS with your maven options to build - job-template: - name: 'controller-verify-{stream}' + name: 'controller-merge-{stream}' - # Job template for ODL verify jobs + # Job template for ODL merge jobs # - # The purpose of this job template is to setup a ODL verify job + # The purpose of this job template is to setup a ODL merge job + # and deploy artifacts to Nexus. # # Required Variables: # stream: branch with - in place of / (eg. stable-helium) # branch: branch (eg. stable/helium) project-type: maven - node: dynamic_verify + node: dynamic_merge jdk: '{jdk}' logrotate: @@ -51,51 +66,65 @@ parameters: - project-parameter: project: '{project}' - - gerrit-parameter: - branch: '{branch}' scm: - gerrit-trigger-scm: credentials-id: '{ssh-credentials}' - refspec: '$GERRIT_REFSPEC' - choosing-strategy: 'gerrit' + refspec: '' + choosing-strategy: 'default' wrappers: + - build-timeout - ssh-agent-credentials: - user: '{ssh-credentials}' + users: + - '{ssh-credentials}' triggers: - - gerrit-trigger-patch-submitted: + - gerrit-trigger-patch-merged: name: 'controller' branch: '{branch}' + prebuilders: + - wipe-org-opendaylight-repo + maven: maven-name: '{mvn32}' root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install -Pintegrationtests,docs' - maven-opts: '-Xmx4096m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' + goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs source:jar javadoc:jar' + maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' settings: '{controller-settings}' global-settings: '{odl-global-settings}' - ignore-upstream-changes: true + + postbuilders: + - jacoco-nojava-workaround + + reporters: + - findbugs publishers: + - email-notification: email-prefix: '[controller]' + - maven-deploy: + id: '' + unique-version: true + deploy-unstable: false + - jacoco-report - job-template: - name: 'controller-merge-{stream}' + name: 'controller-daily-{stream}' - # Job template for ODL merge jobs + # Job template for daily builders # - # The purpose of this job template is to setup a ODL merge job - # and deploy artifacts to Nexus. + # The purpose of this job template is to setup a daily/nightly + # builder and pushes to Sonar analysis. # # Required Variables: # stream: branch with - in place of / (eg. stable-helium) # branch: branch (eg. stable/helium) project-type: maven - node: dynamic_merge + node: dynamic_verify jdk: '{jdk}' logrotate: @@ -109,50 +138,58 @@ project: '{project}' scm: - - gerrit-trigger-scm: + - git-scm: credentials-id: '{ssh-credentials}' refspec: '' - choosing-strategy: 'default' + branch: '{branch}' wrappers: + - build-timeout - ssh-agent-credentials: - user: '{ssh-credentials}' + users: + - '{ssh-credentials}' triggers: - - gerrit-trigger-patch-merged: - name: 'controller' - branch: '{branch}' + - timed: 'H H * * *' + + prebuilders: + - wipe-org-opendaylight-repo maven: maven-name: '{mvn32}' root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install -Pintegrationtests,docs' - maven-opts: '-Xmx4096m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' + goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs source:jar javadoc:jar' + maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' settings: '{controller-settings}' global-settings: '{odl-global-settings}' + postbuilders: + - jacoco-nojava-workaround + + reporters: + - findbugs + publishers: - email-notification: email-prefix: '[controller]' - - maven-deploy: - id: '' - unique-version: true - deploy-unstable: false + - jacoco-report - job-template: - name: 'controller-daily-{stream}' + name: 'controller-integration-{stream}' + disabled: false - # Job template for daily builders + # Job template for ODL integration verify jobs # - # The purpose of this job template is to setup a daily/nightly - # builder and pushes to Sonar analysis. + # This is similar to a normal verify job, but it runs + # when a project that's a dependency of your project + # is successfully built. # # Required Variables: # stream: branch with - in place of / (eg. stable-helium) # branch: branch (eg. stable/helium) project-type: maven - node: dynamic_verify + node: dynamic_merge jdk: '{jdk}' logrotate: @@ -172,44 +209,98 @@ branch: '{branch}' wrappers: + - build-timeout - ssh-agent-credentials: - user: '{ssh-credentials}' + users: + - '{ssh-credentials}' triggers: - - timed: 'H H * * *' + - reverse: + jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},aaa-merge-{stream}' + result: 'success' + + prebuilders: + - wipe-org-opendaylight-repo maven: maven-name: '{mvn32}' root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install -Pintegrationtests,docs' - maven-opts: '-Xmx4096m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' + goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs source:jar javadoc:jar' + maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' settings: '{controller-settings}' global-settings: '{odl-global-settings}' + postbuilders: + - jacoco-nojava-workaround + + reporters: + - findbugs + publishers: - email-notification: - email-prefix: '[controller]' + email-prefix: '[controller] [odlparent] [yangtools] [aaa]' + - jacoco-report + +- job-template: + name: 'controller-sonar' + + project-type: maven + node: dynamic_verify + jdk: 'openjdk7' + + logrotate: + daysToKeep: '7' + numToKeep: '10' + artifactDaysToKeep: '1' + artifactNumToKeep: '1' + + parameters: + - project-parameter: + project: '{project}' + + scm: + - git-scm: + credentials-id: '{ssh-credentials}' + refspec: '' + branch: 'master' + + wrappers: + - build-timeout + - ssh-agent-credentials: + users: + - '{ssh-credentials}' + + triggers: + - timed: 'H H * * *' + + maven: + maven-name: '{mvn32}' + root-pom: 'pom.xml' + goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -Dsonar' + maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' + settings: '{controller-settings}' + global-settings: '{odl-global-settings}' + + postbuilders: + - jacoco-nojava-workaround + + reporters: + - findbugs + + publishers: - sonar: - branch: '{stream}' language: 'java' - maven-opts: '-Xmx4096m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' + maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m' + - email-notification: + email-prefix: '[controller]' + - jacoco-report - job-template: - name: 'controller-integration-{stream}' - disabled: false - - # 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: branch with - in place of / (eg. stable-helium) - # branch: branch (eg. stable/helium) + name: 'controller-clm' project-type: maven - node: dynamic_merge - jdk: '{jdk}' + node: dynamic_verify + jdk: 'openjdk7' logrotate: daysToKeep: '{build-days-to-keep}' @@ -222,28 +313,36 @@ project: '{project}' scm: - - gerrit-trigger-scm: + - git-scm: credentials-id: '{ssh-credentials}' refspec: '' - choosing-strategy: 'default' + branch: 'master' wrappers: + - build-timeout - ssh-agent-credentials: - user: '{ssh-credentials}' + users: + - '{ssh-credentials}' triggers: - - reverse: - jobs: 'yangtools-merge,aaa-merge' - result: 'success' + - timed: '@weekly' + + prebuilders: + - wipe-org-opendaylight-repo maven: maven-name: '{mvn32}' root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install -Pintegrationtests,docs' - maven-opts: '-Xmx4096m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' + goals: 'com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' settings: '{controller-settings}' global-settings: '{odl-global-settings}' + postbuilders: + - check-clm: + application-name: controller + publishers: - email-notification: - email-prefix: '[controller] [yangtools] [aaa]' + email-prefix: '[controller]' +