X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fof-config%2Fof-config.yaml;h=8d9d1f4e2528c1dcbba3a4137a901f9441f1eefc;hb=eee0a9a1a1ed3590af566a8c14d273c57634364b;hp=f5ea008be762ae122186c14ea5218e1d87ae8f86;hpb=ba99806b75b580292f541dc587cb14c7461d0262;p=releng%2Fbuilder.git diff --git a/jjb/of-config/of-config.yaml b/jjb/of-config/of-config.yaml index f5ea008be..8d9d1f4e2 100644 --- a/jjb/of-config/of-config.yaml +++ b/jjb/of-config/of-config.yaml @@ -8,22 +8,31 @@ jobs: - 'of-config-verify-{stream}' - 'of-config-merge-{stream}' - - 'of-config-daily-{stream}' + - 'of-config-periodic-{stream}' - 'of-config-distribution-{stream}' - 'of-config-integration-{stream}' - 'of-config-sonar' - 'of-config-clm-{stream}' + - 'of-config-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) # branch: git branch (eg. stable/lithium or master) stream: - - beryllium: + - boron: branch: 'master' jdk: openjdk7 jdks: - openjdk7 - openjdk8 + disable_autorelease: False + - beryllium: + branch: 'stable/beryllium' + jdk: openjdk7 + jdks: + - openjdk7 + - openjdk8 + disable_autorelease: False project: 'of-config' @@ -69,6 +78,8 @@ project: '{project}' - gerrit-parameter: branch: '{branch}' + - gerrit-refspec-parameter: + refspec: 'refs/heads/{branch}' scm: - gerrit-trigger-scm: @@ -96,7 +107,7 @@ - maven-target: maven-version: '{mvn33}' pom: 'pom.xml' - goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' + goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}' java-opts: - '-Xmx1024m -XX:MaxPermSize=256m' settings: '{of-config-settings}' @@ -125,14 +136,18 @@ jdk: '{jdk}' logrotate: - daysToKeep: '{build-days-to-keep}' - numToKeep: '{build-num-to-keep}' + daysToKeep: '14' + numToKeep: '10' artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - project-parameter: project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - gerrit-refspec-parameter: + refspec: 'refs/heads/{branch}' scm: - gerrit-trigger-scm: @@ -147,6 +162,7 @@ - '{ssh-credentials}' triggers: + - timed: 'H H * * 0' - gerrit-trigger-patch-merged: name: 'of-config' branch: '{branch}' @@ -161,7 +177,7 @@ maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmerge -Dstream={stream}' + goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}' maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' settings: '{of-config-settings}' global-settings: '{odl-global-settings}' @@ -201,6 +217,8 @@ - findbugs publishers: + - archive-artifacts: + artifacts: '**/target/surefire-reports/*-output.txt, ' - email-notification: email-prefix: '[of-config]' - maven-deploy: @@ -210,12 +228,13 @@ - jacoco-report - job-template: - name: 'of-config-daily-{stream}' + name: 'of-config-periodic-{stream}' + disabled: false - # Job template for daily builders + # Job template for periodic builders # - # The purpose of this job template is to setup a daily/nightly - # builder and pushes to Sonar analysis. + # The purpose of this job template is to setup a periodic + # builder. # # Required Variables: # stream: release stream (eg. stable-lithium or beryllium) @@ -226,8 +245,8 @@ jdk: '{jdk}' logrotate: - daysToKeep: '{build-days-to-keep}' - numToKeep: '{build-num-to-keep}' + daysToKeep: '14' + numToKeep: '10' artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' @@ -248,7 +267,7 @@ - '{ssh-credentials}' triggers: - - timed: 'H H * * *' + - timed: '@daily' prebuilders: - wipe-org-opendaylight-repo @@ -260,7 +279,7 @@ maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins' maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' settings: '{of-config-settings}' global-settings: '{odl-global-settings}' @@ -292,7 +311,7 @@ parameters: - project-parameter: - project: 'integration' + project: 'integration/distribution' scm: - git-scm: @@ -320,7 +339,7 @@ maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install' + goals: 'clean install -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-settings}' global-settings: '{odl-global-settings}' @@ -388,7 +407,7 @@ maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins' maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' settings: '{of-config-settings}' global-settings: '{odl-global-settings}' @@ -403,10 +422,11 @@ - job-template: name: 'of-config-sonar' + disabled: false project-type: maven node: dynamic_verify - jdk: 'openjdk7' + jdk: 'openjdk8' logrotate: daysToKeep: '7' @@ -431,7 +451,7 @@ - '{ssh-credentials}' triggers: - - timed: 'H H * * *' + - timed: '@weekly' - gerrit-trigger-patch-sonar: name: 'of-config' @@ -445,7 +465,7 @@ maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dsonar' + goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar' maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' settings: '{of-config-settings}' global-settings: '{odl-global-settings}' @@ -463,6 +483,7 @@ - job-template: name: 'of-config-clm-{stream}' + disabled: false project-type: maven node: dynamic_verify @@ -502,12 +523,13 @@ maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' settings: '{of-config-settings}' global-settings: '{odl-global-settings}' postbuilders: + - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - check-clm: application-name: of-config @@ -515,3 +537,103 @@ - email-notification: email-prefix: '[of-config]' +- job-template: + name: 'of-config-validate-autorelease-{stream}' + disabled: '{obj:disable_autorelease}' + + 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: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - autorelease-release-tag: + release-tag: 'validate' + - autorelease-release-branch: + release-branch: '{branch}' + - autorelease-release-datestamp: + datestamp: true + + scm: + - git: + url: 'https://git.opendaylight.org/gerrit/releng/autorelease' + refspec: '' + branches: + - 'origin/{branch}' + skip-tag: true + submodule: + recursive: true + + wrappers: + - autorelease-build-timeout + - ssh-agent-credentials: + users: + - '{ssh-credentials}' + + triggers: + - gerrit: + server-name: 'OpenDaylight' + trigger-on: + - patchset-created-event: + exclude-drafts: 'false' + exclude-trivial-rebase: 'false' + exclude-no-code-change: 'false' + - draft-published-event + - comment-added-contains-event: + comment-contains-value: 'recheck' + - comment-added-contains-event: + comment-contains-value: 'reverify' + - comment-added-contains-event: + comment-contains-value: 'revalidate' + projects: + - project-compare-type: 'ANT' + project-pattern: 'of-config' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + + prebuilders: + - wipe-org-opendaylight-repo + - jacoco-nojava-workaround + - autorelease-checkout-gerrit-patch + - autorelease-generate-taglist + - autorelease-generate-release-patches + - maven-target: + maven-version: '{mvn33}' + pom: validate-pom.xml + goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + java-opts: + - '-Xmx8g' + settings: '{autorelease-settings}' + global-settings: '{odl-global-settings}' + + maven: + maven-name: '{mvn33}' + root-pom: 'pom.xml' + goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' + settings: '{autorelease-settings}' + global-settings: '{odl-global-settings}' + automatic-archiving: false + post-step-run-condition: UNSTABLE + + postbuilders: + - shell: "./scripts/list-project-dependencies.sh" + - autorelease-sys-stats + + publishers: + - archive-artifacts: + artifacts: '*.log' + - email-notification: + email-prefix: '[autorelease] [of-config]' +