X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-distribution-jobs.yaml;h=b57211c7ba159c200f4c3237a0e7bbbadcef513d;hb=c6dd8be243134ba5a87db1a2eb96b90452608f3d;hp=06993ffd65c2a428460f820caf6c44b03c28d014;hpb=755df2529e71a80299c0036b61eb5464d40133a3;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-distribution-jobs.yaml b/jjb/integration/integration-distribution-jobs.yaml index 06993ffd6..b57211c7b 100644 --- a/jjb/integration/integration-distribution-jobs.yaml +++ b/jjb/integration/integration-distribution-jobs.yaml @@ -2,31 +2,37 @@ - project: name: integration-distribution jobs: - - '{name}-verify-python-{stream}' + - '{project-name}-verify-python-{stream}' - 'integration-distribution-verify-{stream}' - 'integration-distribution-merge-{stream}' - 'integration-distribution-deploy-{stream}' - 'integration-distribution-offline-{stream}' project: integration/distribution + project-name: integration-distribution stream: - - boron: + - carbon: branch: 'master' jre: 'openjdk8' + - boron: + branch: 'stable/boron' + jre: 'openjdk8' - beryllium: branch: 'stable/beryllium' jre: 'openjdk7' - stable-lithium: + disabled: true branch: 'stable/lithium' jre: 'openjdk7' - job-template: name: 'integration-distribution-verify-{stream}' + disabled: {disabled} + node: centos7-java-builder-2c-8g project-type: maven - node: dynamic_verify concurrent: true jdk: '{jre}' @@ -37,27 +43,25 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: 'integration/distribution' - - gerrit-parameter: + - opendaylight-infra-parameters: + project: '{project}' branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts} **/dependency_tree.txt **/*.hprof' - integration-patch-refspec: branch: '$GERRIT_REFSPEC' scm: - gerrit-trigger-scm: - credentials-id: '{ssh-credentials}' refspec: '$PATCHREFSPEC' choosing-strategy: 'gerrit' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - - gerrit-trigger-patch-submitted: + - gerrit-trigger-relevant-patch-submitted: name: 'integration/distribution' branch: '{branch}' @@ -66,14 +70,19 @@ - inject: properties-file: 'bundle.txt' - wipe-org-opendaylight-repo + - provide-maven-settings: + global-settings-file: 'odl-global-settings' + settings-file: 'integration-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' - settings: '{integration-settings}' - global-settings: '{odl-global-settings}' + goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}' + maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' + settings: 'integration-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp ignore-upstream-changes: true post-step-run-condition: 'SUCCESS' @@ -84,15 +93,22 @@ predefined-parameters: BUNDLEURL=$BUNDLEURL + reporters: + - findbugs + publishers: + - jacoco-report + - archive-build: + maven-version: '{mvn33}' - email-notification: - email-prefix: '[integration]' + email-prefix: '[int/dist]' - job-template: name: 'integration-distribution-merge-{stream}' + disabled: {disabled} + node: centos7-java-builder-2c-8g project-type: maven - node: dynamic_merge jdk: '{jre}' logrotate: @@ -102,46 +118,91 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: 'integration/distribution' - - gerrit-parameter: + - opendaylight-infra-parameters: + project: '{project}' branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts} **/dependency_tree.txt **/*.hprof' scm: - gerrit-trigger-scm: - credentials-id: '{ssh-credentials}' refspec: '' choosing-strategy: 'default' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: + - timed: 'H H * * 0' - gerrit-trigger-patch-merged: name: 'integration/distribution' branch: '{branch}' prebuilders: - wipe-org-opendaylight-repo + - jacoco-nojava-workaround + - provide-maven-settings: + global-settings-file: 'odl-global-settings' + settings-file: 'integration-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' - settings: '{integration-settings}' - global-settings: '{odl-global-settings}' + goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}' + maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' + settings: 'integration-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp + + 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: 'integration-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: 'integration-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp + + reporters: + - findbugs publishers: - - email-notification: - email-prefix: '[integration]' - maven-deploy: id: '' unique-version: true deploy-unstable: false + - jacoco-report + - archive-build: + maven-version: '{mvn33}' + - email-notification: + email-prefix: '[int/dist]' # Template: integration-distribution-deploy-{stream} # Goal: Verify distribution starts with no issues when all features are loaded @@ -149,20 +210,24 @@ - job-template: name: 'integration-distribution-deploy-{stream}' + disabled: {disabled} + node: centos7-java-builder-2c-8g project-type: freestyle - node: dynamic_verify concurrent: true logrotate: daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' + artifactNumToKeep: '{build-num-to-keep}' parameters: - - project-parameter: - project: 'integration/distribution' + - opendaylight-infra-parameters: + project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts} **/*.hprof' - integration-branch: branch: '{branch}' - integration-bundleurl: @@ -171,10 +236,8 @@ jdkversion: '{jre}' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - timed: 'H H * * *' @@ -186,10 +249,11 @@ - integration-deploy-controller-verify publishers: - - archive: - artifacts: '*.log,*.log.xz' - email-notification: - email-prefix: '[integration]' + email-prefix: '[int/dist]' + - integration-csit-archive-build + - archive-build: + maven-version: '{mvn33}' # Template: integration-distribution-offline-{stream} # Goal: Verify distribution can start with no internet connection @@ -197,19 +261,23 @@ - job-template: name: 'integration-distribution-offline-{stream}' + disabled: {disabled} + node: centos7-java-builder-2c-8g project-type: freestyle - node: dynamic_verify logrotate: daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' + artifactNumToKeep: '{build-num-to-keep}' parameters: - - project-parameter: - project: 'integration/distribution' + - opendaylight-infra-parameters: + project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts} **/*.hprof' - integration-branch: branch: '{branch}' - integration-bundleurl: @@ -218,10 +286,8 @@ jdkversion: '{jre}' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - timed: 'H H * * *' @@ -233,7 +299,8 @@ - integration-deploy-controller-offline publishers: - - archive: - artifacts: '*.log,*.log.xz' - email-notification: - email-prefix: '[integration]' + email-prefix: '[int/dist]' + - integration-csit-archive-build + - archive-build: + maven-version: '{mvn33}'