X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Freleng-templates-java.yaml;h=8612c19bb579bbd4662ec0abd5936e445470071a;hb=ed70b8667a2dc06e0d445ef7fbfa05051f5d905c;hp=9caa5f984e93ffa5fe38c907b96c05972d2b8aee;hpb=cb3cedbb503dbc2c5b86d64af31a2962088f12e7;p=releng%2Fbuilder.git diff --git a/jjb/releng-templates-java.yaml b/jjb/releng-templates-java.yaml index 9caa5f984..8612c19bb 100644 --- a/jjb/releng-templates-java.yaml +++ b/jjb/releng-templates-java.yaml @@ -12,9 +12,9 @@ node: '{build-node}' jdk: '{jdk}' - logrotate: - daysToKeep: '{build-days-to-keep}' - numToKeep: '{build-num-to-keep}' + properties: + - opendaylight-infra-properties: + build-days-to-keep: '{build-days-to-keep}' parameters: - opendaylight-infra-parameters: @@ -40,7 +40,7 @@ global-settings-file: 'odl-global-settings' settings-file: '{mvn-settings}' - maven-target: - maven-version: '{mvn33}' + maven-version: 'mvn33' pom: 'pom.xml' goals: 'clean install dependency:tree com.sonatype.clm:clm-maven-plugin:index -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' java-opts: @@ -55,26 +55,29 @@ publishers: - email-notification: + email-recipients: '{email-recipients}' email-prefix: '[{project-name}]' - opendaylight-infra-shiplogs: - maven-version: '{mvn33}' + maven-version: 'mvn33' - job-template: name: '{project-name}-distribution-{stream}' # Required variables: - # stream: release stream (eg. stable-lithium or beryllium) - # branch: git branch (eg. stable/lithium or master) + # stream: release stream (eg. boron or carbon) + # branch: git branch (eg. stable/boron or master) + # Need to keep jobs that deploy to Nexus at end of build as Maven + # projects. Maybe reconsider this once upstream moves deploy to a + # separate lifecycle: + # https://issues.apache.org/jira/browse/MNG-5666 project-type: maven node: '{build-node}' 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}' + properties: + - opendaylight-infra-properties: + build-days-to-keep: '{build-days-to-keep}' parameters: - opendaylight-infra-parameters: @@ -103,7 +106,7 @@ settings-file: '{mvn-settings}' maven: - maven-name: '{mvn33}' + maven-name: 'mvn33' root-pom: 'pom.xml' goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -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' @@ -114,13 +117,14 @@ publishers: - email-notification: + email-recipients: '{email-recipients}' email-prefix: '[{project}]' - maven-deploy: id: '' unique-version: true deploy-unstable: false - opendaylight-infra-shiplogs: - maven-version: '{mvn33}' + maven-version: 'mvn33' - job-template: # Template: {name}-distribution-check-{stream} @@ -129,18 +133,16 @@ # the patch, and triggers the distribution deploy test name: '{project-name}-distribution-check-{stream}' - disabled: '{obj:disable_distribution_check}' + disabled: false project-type: freestyle node: '{build-node}' 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}' + properties: + - opendaylight-infra-properties: + build-days-to-keep: '{build-days-to-keep}' parameters: - opendaylight-infra-parameters: @@ -148,7 +150,8 @@ branch: '{branch}' refspec: 'refs/heads/{branch}' artifacts: '{archive-artifacts} **/dependency_tree.txt **/target/surefire-reports/*-output.txt' - - integration-distribution-git-url + - integration-distribution-git-url: + git-url: '{git-url}' scm: - integration-gerrit-scm: @@ -160,38 +163,22 @@ wrappers: - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' + # Distro-check jobs typically run within 10 - 30 minutes + # with 45 minutes being the occassional edge case. + # enforce a 60 minute limit to ensure stuck jobs get + # cleared up sooner. + build-timeout: '60' triggers: - - gerrit: - server-name: 'OpenDaylight' - trigger-on: - - patchset-created-event: - exclude-drafts: 'true' - exclude-trivial-rebase: 'false' - exclude-no-code-change: 'true' - - draft-published-event - - comment-added-contains-event: - comment-contains-value: 'test-distribution' - - comment-added-contains-event: - comment-contains-value: 'reverify' - - comment-added-contains-event: - comment-contains-value: 'recheck' - projects: - - project-compare-type: 'ANT' - project-pattern: '{project}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false + - gerrit-trigger-patch-submitted: + server: '{server-name}' + project: '{project}' + branch: '{branch}' + files: '**' builders: - maven-target: - maven-version: '{mvn33}' + maven-version: 'mvn33' pom: '$GERRIT_PROJECT/pom.xml' goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' java-opts: @@ -201,7 +188,7 @@ global-settings: 'odl-global-settings' global-settings-type: cfp - maven-target: - maven-version: '{mvn33}' + maven-version: 'mvn33' pom: 'distribution/pom.xml' goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' java-opts: @@ -214,6 +201,7 @@ publishers: - email-notification: + email-recipients: '{email-recipients}' email-prefix: '[{project-name}]' - postbuildscript: builders: @@ -227,7 +215,7 @@ - archive: artifacts: '*.zip' - opendaylight-infra-shiplogs: - maven-version: '{mvn33}' + maven-version: 'mvn33' - job-template: name: '{project-name}-integration-{stream}' @@ -239,18 +227,16 @@ # is successfully built. # # Required Variables: - # stream: release stream (eg. stable-lithium or beryllium) - # branch: git branch (eg. stable/lithium or master) + # stream: release stream (eg. boron or carbon) + # branch: git branch (eg. stable/boron or master) project-type: freestyle node: '{build-node}' 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}' + properties: + - opendaylight-infra-properties: + build-days-to-keep: '{build-days-to-keep}' parameters: - opendaylight-infra-parameters: @@ -279,7 +265,7 @@ global-settings-file: 'odl-global-settings' settings-file: '{mvn-settings}' - maven-target: - maven-version: '{mvn33}' + maven-version: 'mvn33' goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' java-opts: - '{mvn-opts}' @@ -290,11 +276,12 @@ publishers: - email-notification: + email-recipients: '{email-recipients}' email-prefix: '{email-upstream}' - findbugs - jacoco-report - opendaylight-infra-shiplogs: - maven-version: '{mvn33}' + maven-version: 'mvn33' - job-template: name: '{project-name}-merge-{stream}' @@ -305,18 +292,20 @@ # and deploy artifacts to Nexus. # # Required Variables: - # stream: release stream (eg. stable-lithium or beryllium) - # branch: git branch (eg. stable/lithium or master) + # stream: release stream (eg. boron or carbon) + # branch: git branch (eg. stable/boron or master) + # Need to keep jobs that deploy to Nexus at end of build as Maven + # projects. Maybe reconsider this once upstream moves deploy to a + # separate lifecycle: + # https://issues.apache.org/jira/browse/MNG-5666 project-type: maven node: '{build-node}' jdk: '{jdk}' - logrotate: - daysToKeep: '14' - numToKeep: '10' - artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' + properties: + - opendaylight-infra-properties: + build-days-to-keep: 14 parameters: - opendaylight-infra-parameters: @@ -337,6 +326,7 @@ triggers: - timed: 'H H * * 0' - gerrit-trigger-patch-merged: + server-name: '{server-name}' name: '{project}' branch: '{branch}' @@ -347,7 +337,7 @@ settings-file: '{mvn-settings}' maven: - maven-name: '{mvn33}' + maven-name: 'mvn33' goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' maven-opts: '{mvn-opts}' settings: '{mvn-settings}' @@ -370,7 +360,7 @@ # project is configured in a certain way which ODL is not. steps: - maven-target: - maven-version: '{mvn33}' + maven-version: 'mvn33' pom: pom.xml goals: 'site:deploy -V -B -Dstream={stream}' java-opts: @@ -380,7 +370,7 @@ global-settings: 'odl-global-settings' global-settings-type: cfp - maven-target: - maven-version: '{mvn33}' + maven-version: 'mvn33' pom: deploy-site.xml goals: 'site:deploy -V -B -Dstream={stream}' java-opts: @@ -395,6 +385,7 @@ publishers: - email-notification: + email-recipients: '{email-recipients}' email-prefix: '[{project-name}]' - maven-deploy: id: '' @@ -402,68 +393,7 @@ deploy-unstable: false - jacoco-report - opendaylight-infra-shiplogs: - maven-version: '{mvn33}' - -- job-template: - name: '{project-name}-periodic-{stream}' - - # 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: freestyle - node: '{build-node}' - jdk: '{jdk}' - - logrotate: - daysToKeep: '14' - - parameters: - - opendaylight-infra-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - artifacts: '{archive-artifacts}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: '@daily' - - builders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: '{mvn-settings}' - - maven-target: - maven-version: '{mvn33}' - goals: '{mvn-goals} -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - java-opts: - - '{mvn-opts}' - settings: '{mvn-settings}' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - publishers: - - email-notification: - email-prefix: '[{project-name}]' - - jacoco-report - - findbugs - - opendaylight-infra-shiplogs: - maven-version: '{mvn33}' + maven-version: 'mvn33' - job-template: name: '{project-name}-sonar' @@ -473,11 +403,9 @@ node: '{build-node}' jdk: 'openjdk8' - logrotate: - daysToKeep: '7' - numToKeep: '10' - artifactDaysToKeep: '1' - artifactNumToKeep: '1' + properties: + - opendaylight-infra-properties: + build-days-to-keep: 7 parameters: - opendaylight-infra-parameters: @@ -498,7 +426,9 @@ triggers: - timed: 'H H * * 6' - gerrit-trigger-patch-sonar: + server-name: '{server-name}' name: '{project}' + # FIXME: Make sure this does not alter Gerrit votes, then update docs. builders: - jacoco-nojava-workaround @@ -506,7 +436,7 @@ global-settings-file: 'odl-global-settings' settings-file: '{mvn-settings}' - maven-target: - maven-version: '{mvn33}' + maven-version: 'mvn33' goals: '{mvn-goals} -V -B -Djenkins -Dsonar -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' maven-opts: - '{mvn-opts}' @@ -515,7 +445,7 @@ global-settings: 'odl-global-settings' global-settings-type: cfp - maven-target: - maven-version: '{mvn33}' + maven-version: 'mvn33' # We should switch to the recommended configuration of sonar once # JJB adds support for configurating the Sonar wrapper: # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins @@ -529,23 +459,25 @@ publishers: - email-notification: + email-recipients: '{email-recipients}' email-prefix: '[{project-name}]' - jacoco-report - findbugs - opendaylight-infra-shiplogs: - maven-version: '{mvn33}' + maven-version: 'mvn33' - job-template: name: '{project-name}-validate-autorelease-{stream}' - disabled: '{obj:disable_autorelease}' + disabled: false project-type: freestyle node: '{build-node}' concurrent: true jdk: '{jdk}' - logrotate: - daysToKeep: '7' + properties: + - opendaylight-infra-properties: + build-days-to-keep: 7 parameters: - opendaylight-infra-parameters: @@ -559,7 +491,7 @@ release-branch: '{branch}' - string: name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' + default: '{git-url}/releng/autorelease' description: "Autorelease clone URL" scm: @@ -579,36 +511,18 @@ build-timeout: '{build-timeout}' triggers: - - gerrit: - server-name: 'OpenDaylight' - trigger-on: - - patchset-created-event: - exclude-drafts: 'true' - exclude-trivial-rebase: 'false' - exclude-no-code-change: 'true' - - 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: '{project}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' + - gerrit-trigger-patch-submitted: + server: '{server-name}' + project: '{project}' + branch: '{branch}' + files: '**/*.xml' builders: - jacoco-nojava-workaround - autorelease-checkout-gerrit-patch - autorelease-generate-release-patches - maven-target: - maven-version: '{mvn33}' + maven-version: 'mvn33' pom: validate-pom.xml goals: 'clean install dependency:tree -V -B -T1.5C -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' java-opts: @@ -618,7 +532,7 @@ global-settings: 'odl-global-settings' global-settings-type: cfp - maven-target: - maven-version: '{mvn33}' + maven-version: 'mvn33' pom: 'pom.xml' goals: 'clean validate -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' java-opts: @@ -631,9 +545,10 @@ publishers: - email-notification: + email-recipients: '{email-recipients}' email-prefix: '[autorelease] [{project-name}]' - opendaylight-infra-shiplogs: - maven-version: '{mvn33}' + maven-version: 'mvn33' - job-template: name: '{project-name}-verify-{stream}-{maven}-{jdks}' @@ -643,16 +558,17 @@ # 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) + # stream: release stream (eg. boron or carbon) + # branch: git branch (eg. stable/boron or master) project-type: freestyle node: '{build-node}' concurrent: true jdk: '{jdks}' - logrotate: - daysToKeep: '7' + properties: + - opendaylight-infra-properties: + build-days-to-keep: 7 parameters: - opendaylight-infra-parameters: @@ -672,8 +588,10 @@ triggers: - gerrit-trigger-patch-submitted: - name: '{project}' + server: '{server-name}' + project: '{project}' branch: '{branch}' + files: '**' builders: - jacoco-nojava-workaround @@ -693,6 +611,7 @@ publishers: - findbugs - email-notification: + email-recipients: '{email-recipients}' email-prefix: '[{project-name}]' - jacoco-report - opendaylight-infra-shiplogs: