From: Vratko Polák Date: Tue, 12 Jul 2016 17:14:06 +0000 (+0000) Subject: Merge "Migrate docs-rtd to archive-builds macro" X-Git-Tag: release/beryllium-sr3~183 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=5cf5961a3b764c82fbc22d1a03e6bff1aedbb7b5;hp=dcb41f639bc14ea0db28f09ff3a4516892ab5d72;p=releng%2Fbuilder.git Merge "Migrate docs-rtd to archive-builds macro" --- diff --git a/jjb-templates/clm.yaml b/jjb-templates/clm.yaml deleted file mode 100644 index c21f3e8f3..000000000 --- a/jjb-templates/clm.yaml +++ /dev/null @@ -1,55 +0,0 @@ -- job-template: - name: 'PROJECT_SHORTNAME-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'JENKINS_SETTINGS' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'JENKINS_SETTINGS' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: PROJECT_SHORTNAME - - publishers: - - email-notification: - email-prefix: '[PROJECT_SHORTNAME]' - - archive-build: - maven-version: '{mvn33}' diff --git a/jjb-templates/distribution-check.yaml b/jjb-templates/distribution-check.yaml deleted file mode 100644 index 6962b7d74..000000000 --- a/jjb-templates/distribution-check.yaml +++ /dev/null @@ -1,109 +0,0 @@ -# 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: 'PROJECT_SHORTNAME-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'JENKINS_SETTINGS' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'JENKINS_SETTINGS' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[PROJECT_SHORTNAME]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' diff --git a/jjb-templates/distribution.yaml b/jjb-templates/distribution.yaml deleted file mode 100644 index dfd1c5db2..000000000 --- a/jjb-templates/distribution.yaml +++ /dev/null @@ -1,59 +0,0 @@ -- job-template: - name: 'PROJECT_SHORTNAME-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: 'JENKINS_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}' diff --git a/jjb-templates/integration.yaml b/jjb-templates/integration.yaml deleted file mode 100644 index d7eec71e8..000000000 --- a/jjb-templates/integration.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- job-template: - name: 'PROJECT_SHORTNAME-integration-{stream}' - disabled: DISABLED - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'DEPENDENCIES' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'JENKINS_SETTINGS' - - maven: - maven-name: '{mvn33}' - root-pom: 'POM' - goals: 'MAVEN_GOALS -V -B -Djenkins' - maven-opts: 'MAVEN_OPTS' - settings: 'JENKINS_SETTINGS' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: 'EMAIL_PREFIX' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' diff --git a/jjb-templates/merge.yaml b/jjb-templates/merge.yaml index 8a3b0b4d3..b9974501a 100644 --- a/jjb-templates/merge.yaml +++ b/jjb-templates/merge.yaml @@ -21,12 +21,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: diff --git a/jjb-templates/periodic.yaml b/jjb-templates/periodic.yaml deleted file mode 100644 index f3e0a392d..000000000 --- a/jjb-templates/periodic.yaml +++ /dev/null @@ -1,64 +0,0 @@ -- job-template: - name: 'PROJECT_SHORTNAME-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: 'JENKINS_SETTINGS' - - maven: - maven-name: '{mvn33}' - root-pom: 'POM' - goals: 'MAVEN_GOALS -V -B -Djenkins' - maven-opts: 'MAVEN_OPTS' - settings: 'JENKINS_SETTINGS' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[PROJECT_SHORTNAME]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' diff --git a/jjb-templates/project.yaml b/jjb-templates/project.yaml index ebb7d9d0a..1c70c870d 100644 --- a/jjb-templates/project.yaml +++ b/jjb-templates/project.yaml @@ -6,12 +6,23 @@ - project: name: PROJECT_SHORTNAME jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' JOB_TEMPLATES # stream: release stream (eg. stable-lithium or beryllium) # branch: git branch (eg. stable/lithium or master) STREAMS project: 'PROJECT_PATH' + mvn-settings: 'JENKINS_SETTINGS' + mvn-goals: 'MAVEN_GOALS' + mvn-opts: 'MAVEN_OPTS' + dependencies: 'DEPENDENCIES' + email-upstream: 'EMAIL_PREFIX' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) diff --git a/jjb-templates/sonar.yaml b/jjb-templates/sonar.yaml index 47fba2d68..4223ebd68 100644 --- a/jjb-templates/sonar.yaml +++ b/jjb-templates/sonar.yaml @@ -13,8 +13,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: diff --git a/jjb-templates/validate-autorelease.yaml b/jjb-templates/validate-autorelease.yaml deleted file mode 100644 index fcb819c23..000000000 --- a/jjb-templates/validate-autorelease.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- job-template: - name: 'PROJECT_SHORTNAME-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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_PATH' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [PROJECT_SHORTNAME]' - - archive-build: - maven-version: '{mvn33}' diff --git a/jjb-templates/verify.yaml b/jjb-templates/verify.yaml index e995783f1..3e1c5a903 100644 --- a/jjb-templates/verify.yaml +++ b/jjb-templates/verify.yaml @@ -27,12 +27,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: diff --git a/jjb/aaa/aaa.yaml b/jjb/aaa/aaa.yaml index cccdf9ef7..72b9c73dc 100644 --- a/jjb/aaa/aaa.yaml +++ b/jjb/aaa/aaa.yaml @@ -6,15 +6,15 @@ - project: name: aaa jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'aaa-verify-{stream}' - 'aaa-merge-{stream}' - - 'aaa-periodic-{stream}' - - 'aaa-distribution-{stream}' - - 'aaa-distribution-check-{stream}' - - 'aaa-integration-{stream}' - 'aaa-sonar' - - 'aaa-clm-{stream}' - - 'aaa-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'aaa' + mvn-settings: 'aaa-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}' + email-upstream: '[aaa] [odlparent] [yangtools] [controller]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'aaa-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: 'aaa-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: 'aaa-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[aaa]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'aaa-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: 'aaa-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: 'aaa-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'aaa-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'aaa-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[aaa]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'aaa-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'aaa-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: 'aaa-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[aaa] [odlparent] [yangtools] [controller]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'aaa-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'aaa-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'aaa-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'aaa-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: aaa - - publishers: - - email-notification: - email-prefix: '[aaa]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'aaa-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'aaa' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [aaa]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/alto/alto.yaml b/jjb/alto/alto.yaml index c6422c7cd..ccb6552f3 100644 --- a/jjb/alto/alto.yaml +++ b/jjb/alto/alto.yaml @@ -6,15 +6,15 @@ - project: name: alto jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'alto-verify-{stream}' - 'alto-merge-{stream}' - - 'alto-periodic-{stream}' - - 'alto-distribution-{stream}' - - 'alto-distribution-check-{stream}' - - 'alto-integration-{stream}' - 'alto-sonar' - - 'alto-clm-{stream}' - - 'alto-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'alto' + mvn-settings: 'alto-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},l2switch-merge-{stream}' + email-upstream: '[alto] [controller] [yangtools] [odlparent] [l2switch]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'alto-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: 'alto-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: 'alto-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[alto]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'alto-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: 'alto-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: 'alto-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'alto-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'alto-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[alto]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'alto-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},l2switch-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'alto-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: 'alto-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[alto] [controller] [yangtools] [odlparent] [l2switch]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'alto-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'alto-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'alto-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'alto-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: alto - - publishers: - - email-notification: - email-prefix: '[alto]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'alto-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'alto' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [alto]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/armoury/armoury.yaml b/jjb/armoury/armoury.yaml index 6c12156ea..e94caed62 100644 --- a/jjb/armoury/armoury.yaml +++ b/jjb/armoury/armoury.yaml @@ -6,15 +6,15 @@ - project: name: armoury jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'armoury-verify-{stream}' - 'armoury-merge-{stream}' - - 'armoury-periodic-{stream}' - - 'armoury-distribution-{stream}' - - 'armoury-distribution-check-{stream}' - - 'armoury-integration-{stream}' - 'armoury-sonar' - - 'armoury-clm-{stream}' - - 'armoury-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -38,6 +38,11 @@ disable_distribution_check: False project: 'armoury' + mvn-settings: 'armoury-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream}' + email-upstream: '[armoury] [odlparent] [yangtools] [controller] [mdsal]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -74,12 +79,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -144,12 +148,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -233,309 +236,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'armoury-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: 'armoury-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: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' - settings: 'armoury-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[armoury]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'armoury-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: 'armoury-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: 'armoury-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'armoury-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'armoury-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[armoury]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'armoury-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'armoury-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: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' - settings: 'armoury-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[armoury] [odlparent] [yangtools] [controller] [mdsal]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'armoury-sonar' disabled: false @@ -551,8 +251,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -597,167 +300,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'armoury-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'armoury-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'armoury-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: armoury - - publishers: - - email-notification: - email-prefix: '[armoury]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'armoury-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'armoury' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [armoury]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/atrium/atrium.yaml b/jjb/atrium/atrium.yaml index 3f5580854..541215754 100644 --- a/jjb/atrium/atrium.yaml +++ b/jjb/atrium/atrium.yaml @@ -6,15 +6,15 @@ - project: name: atrium jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'atrium-verify-{stream}' - 'atrium-merge-{stream}' - - 'atrium-periodic-{stream}' - - 'atrium-distribution-{stream}' - - 'atrium-distribution-check-{stream}' - - 'atrium-integration-{stream}' - 'atrium-sonar' - - 'atrium-clm-{stream}' - - 'atrium-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -29,6 +29,11 @@ disable_distribution_check: False project: 'atrium' + mvn-settings: 'atrium-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream}' + email-upstream: '[atrium] [odlparent] [yangtools] [controller] [mdsal]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -65,12 +70,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -135,12 +139,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -224,309 +227,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'atrium-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: 'atrium-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: 'atrium-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[atrium]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'atrium-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: 'atrium-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: 'atrium-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'atrium-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'atrium-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[atrium]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'atrium-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'atrium-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: 'atrium-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[atrium] [odlparent] [yangtools] [controller] [mdsal]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'atrium-sonar' disabled: false @@ -542,8 +242,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -588,167 +291,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'atrium-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'atrium-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'atrium-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: atrium - - publishers: - - email-notification: - email-prefix: '[atrium]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'atrium-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'atrium' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [atrium]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/autorelease/autorelease-templates.yaml b/jjb/autorelease/autorelease-templates.yaml index ec0bbeea4..e31cfc311 100644 --- a/jjb/autorelease/autorelease-templates.yaml +++ b/jjb/autorelease/autorelease-templates.yaml @@ -12,8 +12,11 @@ artifactDaysToKeep: '14' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - autorelease-release-tag: release-tag: '{next-release-tag}' - autorelease-release-branch: @@ -95,8 +98,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - string: name: REPORT_DIR default: '$WORKSPACE/project-reports' @@ -166,12 +172,11 @@ artifactNumToKeep: -1 parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' + - opendaylight-infra-parameters: + project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -218,12 +223,11 @@ artifactNumToKeep: -1 parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' + - opendaylight-infra-parameters: + project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: diff --git a/jjb/bgpcep/bgpcep.yaml b/jjb/bgpcep/bgpcep.yaml index c22af932c..b3d0ebd3e 100644 --- a/jjb/bgpcep/bgpcep.yaml +++ b/jjb/bgpcep/bgpcep.yaml @@ -6,15 +6,15 @@ - project: name: bgpcep jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'bgpcep-verify-{stream}' - 'bgpcep-merge-{stream}' - - 'bgpcep-periodic-{stream}' - - 'bgpcep-distribution-{stream}' - - 'bgpcep-distribution-check-{stream}' - - 'bgpcep-integration-{stream}' - 'bgpcep-sonar' - - 'bgpcep-clm-{stream}' - - 'bgpcep-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -45,6 +45,11 @@ disable_distribution_check: True project: 'bgpcep' + mvn-settings: 'bgpcep-settings' + mvn-goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream},tcpmd5-merge-{stream}' + email-upstream: '[bgpcep] [odlparent] [yangtools] [controller] [mdsal] [tcpmd5]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -81,12 +86,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -151,12 +155,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -240,309 +243,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'bgpcep-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: 'bgpcep-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'bgpcep-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[bgpcep]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'bgpcep-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: 'bgpcep-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: 'bgpcep-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'bgpcep-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'bgpcep-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[bgpcep]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'bgpcep-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream},tcpmd5-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'bgpcep-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'bgpcep-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[bgpcep] [odlparent] [yangtools] [controller] [mdsal] [tcpmd5]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'bgpcep-sonar' disabled: false @@ -558,8 +258,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -604,167 +307,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'bgpcep-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'bgpcep-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'bgpcep-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: bgpcep - - publishers: - - email-notification: - email-prefix: '[bgpcep]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'bgpcep-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'bgpcep' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [bgpcep]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/capwap/capwap.yaml b/jjb/capwap/capwap.yaml index 0a89d3129..8a71de4e8 100644 --- a/jjb/capwap/capwap.yaml +++ b/jjb/capwap/capwap.yaml @@ -6,15 +6,15 @@ - project: name: capwap jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'capwap-verify-{stream}' - 'capwap-merge-{stream}' - - 'capwap-periodic-{stream}' - - 'capwap-distribution-{stream}' - - 'capwap-distribution-check-{stream}' - - 'capwap-integration-{stream}' - 'capwap-sonar' - - 'capwap-clm-{stream}' - - 'capwap-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'capwap' + mvn-settings: 'capwap-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}' + email-upstream: '[capwap] [controller] [yangtools] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'capwap-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: 'capwap-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: 'capwap-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[capwap]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'capwap-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: 'capwap-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: 'capwap-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'capwap-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'capwap-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[capwap]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'capwap-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'capwap-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: 'capwap-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[capwap] [controller] [yangtools] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'capwap-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'capwap-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'capwap-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'capwap-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: capwap - - publishers: - - email-notification: - email-prefix: '[capwap]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'capwap-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'capwap' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [capwap]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/cardinal/cardinal.yaml b/jjb/cardinal/cardinal.yaml index 4fc86a118..d06d13c8f 100644 --- a/jjb/cardinal/cardinal.yaml +++ b/jjb/cardinal/cardinal.yaml @@ -6,15 +6,15 @@ - project: name: cardinal jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'cardinal-verify-{stream}' - 'cardinal-merge-{stream}' - - 'cardinal-periodic-{stream}' - - 'cardinal-distribution-{stream}' - - 'cardinal-distribution-check-{stream}' - - 'cardinal-integration-{stream}' - 'cardinal-sonar' - - 'cardinal-clm-{stream}' - - 'cardinal-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -29,6 +29,11 @@ disable_distribution_check: False project: 'cardinal' + mvn-settings: 'cardinal-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream},iotdm-merge-{stream},sfc-merge-{stream}' + email-upstream: '[cardinal] [controller] [yangtools] [odlparent] [openflowplugin] [iotdm] [sfc]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -65,12 +70,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -135,12 +139,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -224,309 +227,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'cardinal-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: 'cardinal-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: 'cardinal-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[cardinal]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'cardinal-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: 'cardinal-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: 'cardinal-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'cardinal-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'cardinal-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[cardinal]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'cardinal-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream},iotdm-merge-{stream},sfc-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'cardinal-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: 'cardinal-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[cardinal] [controller] [yangtools] [odlparent] [openflowplugin] [iotdm] [sfc]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'cardinal-sonar' disabled: false @@ -542,8 +242,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -588,167 +291,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'cardinal-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'cardinal-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'cardinal-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: cardinal - - publishers: - - email-notification: - email-prefix: '[cardinal]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'cardinal-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'cardinal' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [cardinal]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/centinel/centinel.yaml b/jjb/centinel/centinel.yaml index 6c45d8291..c7b08cece 100644 --- a/jjb/centinel/centinel.yaml +++ b/jjb/centinel/centinel.yaml @@ -6,15 +6,15 @@ - project: name: centinel jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'centinel-verify-{stream}' - 'centinel-merge-{stream}' - - 'centinel-periodic-{stream}' - - 'centinel-distribution-{stream}' - - 'centinel-distribution-check-{stream}' - - 'centinel-integration-{stream}' - 'centinel-sonar' - - 'centinel-clm-{stream}' - - 'centinel-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'centinel' + mvn-settings: 'centinel-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[centinel] [odlparent] [controller] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'centinel-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: 'centinel-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: 'centinel-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[centinel]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'centinel-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: 'centinel-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: 'centinel-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'centinel-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'centinel-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[centinel]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'centinel-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'centinel-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: 'centinel-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[centinel] [odlparent] [controller] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'centinel-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'centinel-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'centinel-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'centinel-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: centinel - - publishers: - - email-notification: - email-prefix: '[centinel]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'centinel-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'centinel' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [centinel]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/controller/controller.yaml b/jjb/controller/controller.yaml index fbffe40b6..0ad2ee080 100644 --- a/jjb/controller/controller.yaml +++ b/jjb/controller/controller.yaml @@ -6,15 +6,15 @@ - project: name: controller jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'controller-verify-{stream}' - 'controller-merge-{stream}' - - 'controller-periodic-{stream}' - - 'controller-distribution-{stream}' - - 'controller-distribution-check-{stream}' - - 'controller-integration-{stream}' - 'controller-sonar' - - 'controller-clm-{stream}' - - 'controller-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -45,6 +45,11 @@ disable_distribution_check: True project: 'controller' + mvn-settings: 'controller-settings' + mvn-goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs' + mvn-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},aaa-merge-{stream}' + email-upstream: '[controller] [odlparent] [yangtools] [aaa]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -81,12 +86,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -151,12 +155,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -240,309 +243,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'controller-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: 'controller-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -V -B -Djenkins' - maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'controller-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[controller]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'controller-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: 'controller-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: 'controller-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'controller-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'controller-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[controller]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'controller-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},aaa-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'controller-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -V -B -Djenkins' - maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'controller-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[controller] [odlparent] [yangtools] [aaa]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'controller-sonar' disabled: false @@ -558,8 +258,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -604,167 +307,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'controller-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'controller-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'controller-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: controller - - publishers: - - email-notification: - email-prefix: '[controller]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'controller-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'controller' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [controller]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/coretutorials/coretutorials.yaml b/jjb/coretutorials/coretutorials.yaml index c921d1e93..915975cb9 100644 --- a/jjb/coretutorials/coretutorials.yaml +++ b/jjb/coretutorials/coretutorials.yaml @@ -6,15 +6,15 @@ - project: name: coretutorials jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'coretutorials-verify-{stream}' - 'coretutorials-merge-{stream}' - - 'coretutorials-periodic-{stream}' - - 'coretutorials-distribution-{stream}' - - 'coretutorials-distribution-check-{stream}' - - 'coretutorials-integration-{stream}' - 'coretutorials-sonar' - - 'coretutorials-clm-{stream}' - - 'coretutorials-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -43,6 +43,11 @@ disable_distribution_check: True project: 'coretutorials' + mvn-settings: 'coretutorials-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}' + email-upstream: '[coretutorials] [odlparent] [yangtools] [controller]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -79,12 +84,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -149,12 +153,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -238,309 +241,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'coretutorials-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: 'coretutorials-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: 'coretutorials-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[coretutorials]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'coretutorials-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: 'coretutorials-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: 'coretutorials-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'coretutorials-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'coretutorials-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[coretutorials]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'coretutorials-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'coretutorials-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: 'coretutorials-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'coretutorials-sonar' disabled: false @@ -556,8 +256,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -602,167 +305,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'coretutorials-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'coretutorials-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'coretutorials-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: coretutorials - - publishers: - - email-notification: - email-prefix: '[coretutorials]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'coretutorials-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'coretutorials' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [coretutorials]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/didm/didm.yaml b/jjb/didm/didm.yaml index 16a3eeee9..a76fcaf96 100644 --- a/jjb/didm/didm.yaml +++ b/jjb/didm/didm.yaml @@ -6,15 +6,15 @@ - project: name: didm jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'didm-verify-{stream}' - 'didm-merge-{stream}' - - 'didm-periodic-{stream}' - - 'didm-distribution-{stream}' - - 'didm-distribution-check-{stream}' - - 'didm-integration-{stream}' - 'didm-sonar' - - 'didm-clm-{stream}' - - 'didm-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'didm' + mvn-settings: 'didm-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[didm] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'didm-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: 'didm-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: 'didm-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[didm]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'didm-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: 'didm-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: 'didm-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'didm-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'didm-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[didm]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'didm-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'didm-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: 'didm-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[didm] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'didm-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'didm-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'didm-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'didm-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: didm - - publishers: - - email-notification: - email-prefix: '[didm]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'didm-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'didm' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [didm]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/discovery/discovery.yaml b/jjb/discovery/discovery.yaml index 8177f3a7a..de618c09d 100644 --- a/jjb/discovery/discovery.yaml +++ b/jjb/discovery/discovery.yaml @@ -6,15 +6,15 @@ - project: name: discovery jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'discovery-verify-{stream}' - 'discovery-merge-{stream}' - - 'discovery-periodic-{stream}' - - 'discovery-distribution-{stream}' - - 'discovery-distribution-check-{stream}' - - 'discovery-integration-{stream}' - 'discovery-sonar' - - 'discovery-clm-{stream}' - - 'discovery-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -36,6 +36,11 @@ disable_distribution_check: False project: 'discovery' + mvn-settings: 'discovery-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[discovery] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -72,12 +77,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -142,12 +146,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -231,309 +234,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'discovery-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: 'discovery-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: 'discovery-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[discovery]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'discovery-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: 'discovery-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: 'discovery-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'discovery-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'discovery-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[discovery]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'discovery-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'discovery-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: 'discovery-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[discovery] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'discovery-sonar' disabled: false @@ -549,8 +249,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -595,167 +298,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'discovery-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'discovery-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'discovery-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: discovery - - publishers: - - email-notification: - email-prefix: '[discovery]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'discovery-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'discovery' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [discovery]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/dlux/dlux.yaml b/jjb/dlux/dlux.yaml index a7e885cd9..58c07a53f 100644 --- a/jjb/dlux/dlux.yaml +++ b/jjb/dlux/dlux.yaml @@ -6,15 +6,15 @@ - project: name: dlux jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'dlux-verify-{stream}' - 'dlux-merge-{stream}' - - 'dlux-periodic-{stream}' - - 'dlux-distribution-{stream}' - - 'dlux-distribution-check-{stream}' - - 'dlux-integration-{stream}' - 'dlux-sonar' - - 'dlux-clm-{stream}' - - 'dlux-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'dlux' + mvn-settings: 'dlux-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[dlux] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'dlux-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: 'dlux-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: 'dlux-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[dlux]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'dlux-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: 'dlux-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: 'dlux-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'dlux-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'dlux-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[dlux]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'dlux-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'dlux-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: 'dlux-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[dlux] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'dlux-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'dlux-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'dlux-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'dlux-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: dlux - - publishers: - - email-notification: - email-prefix: '[dlux]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'dlux-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'dlux' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [dlux]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/docs/docs-rtd.yaml b/jjb/docs/docs-rtd.yaml index 0af6be603..f480ed5d1 100644 --- a/jjb/docs/docs-rtd.yaml +++ b/jjb/docs/docs-rtd.yaml @@ -7,6 +7,8 @@ stream: - boron: branch: 'master' + - beryllium: + branch: 'stable/beryllium' project: 'docs' rtdproject: 'opendaylight' @@ -21,12 +23,11 @@ daysToKeep: 14 parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' wrappers: - opendaylight-infra-wrappers: @@ -69,12 +70,11 @@ daysToKeep: 14 parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm-with-submodules: diff --git a/jjb/docs/docs.yaml b/jjb/docs/docs.yaml index 1b506cf4c..7d151c8f6 100644 --- a/jjb/docs/docs.yaml +++ b/jjb/docs/docs.yaml @@ -6,15 +6,15 @@ - project: name: docs jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'docs-verify-{stream}' - 'docs-merge-{stream}' - - 'docs-periodic-{stream}' - - 'docs-distribution-{stream}' - - 'docs-distribution-check-{stream}' - - 'docs-integration-{stream}' - 'docs-sonar' - - 'docs-clm-{stream}' - - 'docs-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'docs' + mvn-settings: 'docs-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[docs] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'docs-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: 'docs-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: 'docs-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[docs]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'docs-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: 'docs-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: 'docs-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'docs-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'docs-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[docs]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'docs-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'docs-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: 'docs-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[docs] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'docs-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'docs-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'docs-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'docs-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: docs - - publishers: - - email-notification: - email-prefix: '[docs]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'docs-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'docs' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [docs]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/faas/faas.yaml b/jjb/faas/faas.yaml index 596e56b72..2032e7b40 100644 --- a/jjb/faas/faas.yaml +++ b/jjb/faas/faas.yaml @@ -6,15 +6,15 @@ - project: name: faas jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'faas-verify-{stream}' - 'faas-merge-{stream}' - - 'faas-periodic-{stream}' - - 'faas-distribution-{stream}' - - 'faas-distribution-check-{stream}' - - 'faas-integration-{stream}' - 'faas-sonar' - - 'faas-clm-{stream}' - - 'faas-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'faas' + mvn-settings: 'faas-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}' + email-upstream: '[faas] [controller] [yangtools] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'faas-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: 'faas-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: 'faas-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[faas]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'faas-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: 'faas-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: 'faas-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'faas-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'faas-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[faas]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'faas-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'faas-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: 'faas-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[faas] [controller] [yangtools] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'faas-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'faas-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'faas-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'faas-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: faas - - publishers: - - email-notification: - email-prefix: '[faas]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'faas-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'faas' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [faas]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/genius/genius.yaml b/jjb/genius/genius.yaml index 9182c8d20..d1de85b67 100644 --- a/jjb/genius/genius.yaml +++ b/jjb/genius/genius.yaml @@ -6,15 +6,15 @@ - project: name: genius jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'genius-verify-{stream}' - 'genius-merge-{stream}' - - 'genius-periodic-{stream}' - - 'genius-distribution-{stream}' - - 'genius-distribution-check-{stream}' - - 'genius-integration-{stream}' - 'genius-sonar' - - 'genius-clm-{stream}' - - 'genius-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -29,6 +29,11 @@ disable_distribution_check: False project: 'genius' + mvn-settings: 'genius-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream},neutron-merge-{stream}' + email-upstream: '[genius] [controller] [yangtools] [odlparent] [openflowplugin] [neutron]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -65,12 +70,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -135,12 +139,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -224,309 +227,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'genius-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: 'genius-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: 'genius-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[genius]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'genius-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: 'genius-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: 'genius-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'genius-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'genius-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[genius]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'genius-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream},neutron-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'genius-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: 'genius-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[genius] [controller] [yangtools] [odlparent] [openflowplugin] [neutron]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'genius-sonar' disabled: false @@ -542,8 +242,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -588,167 +291,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'genius-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'genius-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'genius-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: genius - - publishers: - - email-notification: - email-prefix: '[genius]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'genius-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'genius' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [genius]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/groupbasedpolicy/groupbasedpolicy.yaml b/jjb/groupbasedpolicy/groupbasedpolicy.yaml index 8399049a2..fc2a5dd68 100644 --- a/jjb/groupbasedpolicy/groupbasedpolicy.yaml +++ b/jjb/groupbasedpolicy/groupbasedpolicy.yaml @@ -6,15 +6,15 @@ - project: name: groupbasedpolicy jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'groupbasedpolicy-verify-{stream}' - 'groupbasedpolicy-merge-{stream}' - - 'groupbasedpolicy-periodic-{stream}' - - 'groupbasedpolicy-distribution-{stream}' - - 'groupbasedpolicy-distribution-check-{stream}' - - 'groupbasedpolicy-integration-{stream}' - 'groupbasedpolicy-sonar' - - 'groupbasedpolicy-clm-{stream}' - - 'groupbasedpolicy-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'groupbasedpolicy' + mvn-settings: 'groupbasedpolicy-settings' + mvn-goals: '-U clean install findbugs:findbugs -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream},openflowplugin-merge-{stream},neutron-merge-{stream},sfc-merge-{stream},ovsdb-merge-{stream}' + email-upstream: '[groupbasedpolicy] [odlparent] [yangtools] [controller] [openflowjava] [openflowplugin] [neutron] [sfc] [ovsdb]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'groupbasedpolicy-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: 'groupbasedpolicy-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-U clean install findbugs:findbugs -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'groupbasedpolicy-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[groupbasedpolicy]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'groupbasedpolicy-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: 'groupbasedpolicy-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: 'groupbasedpolicy-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'groupbasedpolicy-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'groupbasedpolicy-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[groupbasedpolicy]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'groupbasedpolicy-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream},openflowplugin-merge-{stream},neutron-merge-{stream},sfc-merge-{stream},ovsdb-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'groupbasedpolicy-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-U clean install findbugs:findbugs -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'groupbasedpolicy-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[groupbasedpolicy] [odlparent] [yangtools] [controller] [openflowjava] [openflowplugin] [neutron] [sfc] [ovsdb]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'groupbasedpolicy-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'groupbasedpolicy-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'groupbasedpolicy-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'groupbasedpolicy-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: groupbasedpolicy - - publishers: - - email-notification: - email-prefix: '[groupbasedpolicy]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'groupbasedpolicy-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'groupbasedpolicy' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [groupbasedpolicy]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/honeycomb/vbd/vbd.yaml b/jjb/honeycomb/vbd/vbd.yaml index 7b7495359..7138d7fc8 100644 --- a/jjb/honeycomb/vbd/vbd.yaml +++ b/jjb/honeycomb/vbd/vbd.yaml @@ -6,15 +6,15 @@ - project: name: vbd jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'vbd-verify-{stream}' - 'vbd-merge-{stream}' - - 'vbd-periodic-{stream}' - - 'vbd-distribution-{stream}' - - 'vbd-distribution-check-{stream}' - - 'vbd-integration-{stream}' - 'vbd-sonar' - - 'vbd-clm-{stream}' - - 'vbd-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -29,6 +29,11 @@ disable_distribution_check: False project: 'honeycomb/vbd' + mvn-settings: 'honeycomb-vbd-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream},netconf-merge-{stream}' + email-upstream: '[vbd] [odlparent] [yangtools] [controller] [mdsal] [netconf]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -65,12 +70,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -135,12 +139,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -224,309 +227,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'vbd-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: 'honeycomb-vbd-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: 'honeycomb-vbd-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[vbd]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'vbd-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: 'honeycomb-vbd-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: 'vbd-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'honeycomb-vbd-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'honeycomb-vbd-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[vbd]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'vbd-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream},netconf-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'honeycomb-vbd-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: 'honeycomb-vbd-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[vbd] [odlparent] [yangtools] [controller] [mdsal] [netconf]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'vbd-sonar' disabled: false @@ -542,8 +242,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -588,167 +291,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'vbd-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'honeycomb-vbd-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'honeycomb-vbd-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: vbd - - publishers: - - email-notification: - email-prefix: '[vbd]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'vbd-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'honeycomb/vbd' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [vbd]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/include-raw-deploy-archives.sh b/jjb/include-raw-deploy-archives.sh index 5b90f1df2..56a77eaea 100644 --- a/jjb/include-raw-deploy-archives.sh +++ b/jjb/include-raw-deploy-archives.sh @@ -50,6 +50,19 @@ cat > deploy-archives.xml < /dev/null 2>&1 touch $ARCHIVES_DIR/_build-details.txt diff --git a/jjb/infrautils/infrautils.yaml b/jjb/infrautils/infrautils.yaml index 82402a3e5..526e66ccd 100644 --- a/jjb/infrautils/infrautils.yaml +++ b/jjb/infrautils/infrautils.yaml @@ -6,15 +6,15 @@ - project: name: infrautils jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'infrautils-verify-{stream}' - 'infrautils-merge-{stream}' - - 'infrautils-periodic-{stream}' - - 'infrautils-distribution-{stream}' - - 'infrautils-distribution-check-{stream}' - - 'infrautils-integration-{stream}' - 'infrautils-sonar' - - 'infrautils-clm-{stream}' - - 'infrautils-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -29,6 +29,11 @@ disable_distribution_check: False project: 'infrautils' + mvn-settings: 'infrautils-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[infrautils] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -65,12 +70,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -135,12 +139,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -224,309 +227,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'infrautils-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: 'infrautils-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: 'infrautils-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[infrautils]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'infrautils-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: 'infrautils-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: 'infrautils-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'infrautils-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'infrautils-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[infrautils]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'infrautils-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'infrautils-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: 'infrautils-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[infrautils] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'infrautils-sonar' disabled: false @@ -542,8 +242,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -588,167 +291,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'infrautils-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'infrautils-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'infrautils-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: infrautils - - publishers: - - email-notification: - email-prefix: '[infrautils]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'infrautils-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'infrautils' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [infrautils]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/integration/distribution/distribution.yaml b/jjb/integration/distribution/distribution.yaml index d5dc9f06a..71f166ff2 100644 --- a/jjb/integration/distribution/distribution.yaml +++ b/jjb/integration/distribution/distribution.yaml @@ -6,9 +6,13 @@ - project: name: distribution jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'distribution-sonar' - - 'distribution-clm-{stream}' - - 'distribution-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -31,6 +35,11 @@ disable_distribution_check: False project: 'integration/distribution' + mvn-settings: 'integration-distribution-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[distribution] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -53,8 +62,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -99,167 +111,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'distribution-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'integration-distribution-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'integration-distribution-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: distribution - - publishers: - - email-notification: - email-prefix: '[distribution]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'distribution-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'integration/distribution' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [distribution]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/integration/include-raw-integration-deploy-openstack-run-test.sh b/jjb/integration/include-raw-integration-deploy-openstack-run-test.sh index 091373528..e58789936 100644 --- a/jjb/integration/include-raw-integration-deploy-openstack-run-test.sh +++ b/jjb/integration/include-raw-integration-deploy-openstack-run-test.sh @@ -276,8 +276,8 @@ do ssh "${!CONTROLLERIP}" "cp -r /tmp/${BUNDLEFOLDER}/data/log /tmp/odl_log" ssh "${!CONTROLLERIP}" "tar -cf /tmp/odl${i}_karaf.log.tar /tmp/odl_log/*" scp "${!CONTROLLERIP}:/tmp/odl${i}_karaf.log.tar" "${WORKSPACE}/odl${i}_karaf.log.tar" - mkdir odl${i} && tar -xvf ${WORKSPACE}/odl${i}_karaf.log.tar -C odl${i}/ - + tar -xvf ${WORKSPACE}/odl${i}_karaf.log.tar -C . --strip-components 2 --transform s/karaf/odl${i}_karaf/g + rm ${WORKSPACE}/odl${i}_karaf.log.tar done scp ${OPENSTACK_CONTROL_NODE_IP}:/opt/stack/devstack/nohup.out "openstack_control_stack.log" diff --git a/jjb/integration/integration-distribution-jobs.yaml b/jjb/integration/integration-distribution-jobs.yaml index 5013f52ab..066867173 100644 --- a/jjb/integration/integration-distribution-jobs.yaml +++ b/jjb/integration/integration-distribution-jobs.yaml @@ -37,12 +37,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: 'integration/distribution' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - integration-patch-refspec: branch: '$GERRIT_REFSPEC' @@ -110,12 +109,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: 'integration/distribution' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -215,8 +213,11 @@ 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}' - integration-branch: branch: '{branch}' - integration-bundleurl: @@ -261,8 +262,11 @@ 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}' - integration-branch: branch: '{branch}' - integration-bundleurl: diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml index 32bb079e3..f96ef155f 100644 --- a/jjb/integration/integration-templates.yaml +++ b/jjb/integration/integration-templates.yaml @@ -10,7 +10,7 @@ # # Parameters: # -# project-parameter: main project integration/test ($PROJECT) +# opendaylight-infra-parameters: main project integration/test ($PROJECT) # jre: (openjdk7 or openjdk8) Java runtime environment to use when launching ODL # integration-branch: distribution branch ($BRANCH) # integration-controller-bundleurl: distribution URL ($BUNDLEURL) @@ -38,8 +38,11 @@ artifactNumToKeep: '{build-num-to-keep}' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: 'integration/test' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - integration-branch: branch: 'stable/beryllium' - integration-distribution-stream: @@ -120,8 +123,11 @@ artifactNumToKeep: '{build-num-to-keep}' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: 'integration/test' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - integration-branch: branch: '{branch}' - integration-distribution-stream: @@ -226,8 +232,11 @@ artifactNumToKeep: '{build-num-to-keep}' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: 'integration/test' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - integration-branch: branch: '{branch}' - integration-distribution-stream: @@ -331,8 +340,11 @@ artifactNumToKeep: '{build-num-to-keep}' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: 'integration/test' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - integration-branch: branch: 'stable/beryllium' - integration-distribution-stream: @@ -414,8 +426,11 @@ artifactNumToKeep: '{build-num-to-keep}' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: 'integration/test' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - integration-branch: branch: '{branch}' - integration-distribution-stream: @@ -521,8 +536,11 @@ artifactNumToKeep: '{build-num-to-keep}' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: 'integration/test' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - integration-branch: branch: '{branch}' - integration-distribution-stream: @@ -627,8 +645,11 @@ artifactNumToKeep: '{build-num-to-keep}' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: 'integration/test' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - integration-branch: branch: '{branch}' - integration-distribution-stream: @@ -729,8 +750,11 @@ artifactNumToKeep: '{build-num-to-keep}' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: 'integration/test' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - integration-branch: branch: '{branch}' - integration-distribution-stream: @@ -841,12 +865,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: '$GERRIT_REFSPEC' - - project-parameter: - project: '{project}' + artifacts: '{archive-artifacts}' - integration-branch: branch: '{branch}' - integration-distribution-git-url diff --git a/jjb/integration/integration-test-jobs.yaml b/jjb/integration/integration-test-jobs.yaml index c2e84a0c9..9e96a3d49 100644 --- a/jjb/integration/integration-test-jobs.yaml +++ b/jjb/integration/integration-test-jobs.yaml @@ -183,8 +183,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: 'integration/test' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - integration-branch: branch: 'stable/beryllium' - integration-distribution-stream: @@ -313,12 +316,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - gerrit-parameters: + - opendaylight-infra-parameters: project: '$GERRIT_PROJECT' branch: '{branch}' refspec: '$GERRIT_REFSPEC' - - project-parameter: - project: '$GERRIT_PROJECT' + artifacts: '{archive-artifacts}' - integration-branch: branch: '{branch}' - integration-distribution-git-url @@ -439,7 +441,7 @@ root-pom: 'patch_tester/pom.xml' # TODO: Make Maven options configurable. Currently tests are not skipped, everything else is. goals: 'clean install -f patch_tester/pom.xml -V -B -Djenkins -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' + maven-opts: '-Xmx7168m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' settings: 'yangtools-settings' settings-type: cfp global-settings: 'odl-global-settings' diff --git a/jjb/iotdm/iotdm.yaml b/jjb/iotdm/iotdm.yaml index 78e973012..433a88bf4 100644 --- a/jjb/iotdm/iotdm.yaml +++ b/jjb/iotdm/iotdm.yaml @@ -6,15 +6,15 @@ - project: name: iotdm jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'iotdm-verify-{stream}' - 'iotdm-merge-{stream}' - - 'iotdm-periodic-{stream}' - - 'iotdm-distribution-{stream}' - - 'iotdm-distribution-check-{stream}' - - 'iotdm-integration-{stream}' - 'iotdm-sonar' - - 'iotdm-clm-{stream}' - - 'iotdm-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -45,6 +45,11 @@ disable_distribution_check: True project: 'iotdm' + mvn-settings: 'iotdm-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},aaa-merge-{stream}' + email-upstream: '[iotdm] [controller] [yangtools] [odlparent] [aaa]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -81,12 +86,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -151,12 +155,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -240,309 +243,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'iotdm-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: 'iotdm-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: 'iotdm-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[iotdm]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'iotdm-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: 'iotdm-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: 'iotdm-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'iotdm-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'iotdm-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[iotdm]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'iotdm-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},aaa-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'iotdm-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: 'iotdm-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[iotdm] [controller] [yangtools] [odlparent] [aaa]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'iotdm-sonar' disabled: false @@ -558,8 +258,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -604,167 +307,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'iotdm-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'iotdm-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'iotdm-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: iotdm - - publishers: - - email-notification: - email-prefix: '[iotdm]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'iotdm-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'iotdm' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [iotdm]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/l2switch/l2switch.yaml b/jjb/l2switch/l2switch.yaml index 3aa03f52e..603ecdf9f 100644 --- a/jjb/l2switch/l2switch.yaml +++ b/jjb/l2switch/l2switch.yaml @@ -6,15 +6,15 @@ - project: name: l2switch jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'l2switch-verify-{stream}' - 'l2switch-merge-{stream}' - - 'l2switch-periodic-{stream}' - - 'l2switch-distribution-{stream}' - - 'l2switch-distribution-check-{stream}' - - 'l2switch-integration-{stream}' - 'l2switch-sonar' - - 'l2switch-clm-{stream}' - - 'l2switch-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'l2switch' + mvn-settings: 'l2switch-settings' + mvn-goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream},openflowplugin-merge-{stream}' + email-upstream: '[l2switch] [odlparent] [yangtools] [controller] [openflowjava] [openflowplugin]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'l2switch-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: 'l2switch-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' - settings: 'l2switch-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[l2switch]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'l2switch-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: 'l2switch-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: 'l2switch-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'l2switch-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'l2switch-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[l2switch]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'l2switch-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream},openflowplugin-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'l2switch-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' - settings: 'l2switch-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[l2switch] [odlparent] [yangtools] [controller] [openflowjava] [openflowplugin]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'l2switch-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'l2switch-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'l2switch-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'l2switch-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: l2switch - - publishers: - - email-notification: - email-prefix: '[l2switch]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'l2switch-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'l2switch' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [l2switch]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/lacp/lacp.yaml b/jjb/lacp/lacp.yaml index e3be31929..e8387f947 100644 --- a/jjb/lacp/lacp.yaml +++ b/jjb/lacp/lacp.yaml @@ -6,15 +6,15 @@ - project: name: lacp jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'lacp-verify-{stream}' - 'lacp-merge-{stream}' - - 'lacp-periodic-{stream}' - - 'lacp-distribution-{stream}' - - 'lacp-distribution-check-{stream}' - - 'lacp-integration-{stream}' - 'lacp-sonar' - - 'lacp-clm-{stream}' - - 'lacp-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'lacp' + mvn-settings: 'lacp-settings' + mvn-goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream},openflowplugin-merge-{stream},odlparent-merge-{stream}' + email-upstream: '[lacp] [yangtools] [controller] [openflowjava] [openflowplugin] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'lacp-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: 'lacp-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'lacp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[lacp]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'lacp-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: 'lacp-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: 'lacp-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'lacp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'lacp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[lacp]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'lacp-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream},openflowplugin-merge-{stream},odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'lacp-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'lacp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[lacp] [yangtools] [controller] [openflowjava] [openflowplugin] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'lacp-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'lacp-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'lacp-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'lacp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: lacp - - publishers: - - email-notification: - email-prefix: '[lacp]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'lacp-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'lacp' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [lacp]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/lispflowmapping/lispflowmapping.cfg b/jjb/lispflowmapping/lispflowmapping.cfg index e40423795..8dd662ef2 100644 --- a/jjb/lispflowmapping/lispflowmapping.cfg +++ b/jjb/lispflowmapping/lispflowmapping.cfg @@ -1,4 +1,5 @@ MVN_GOALS: clean install findbugs:findbugs javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r +MVN_OPTS: -Xmx2048m -XX:MaxPermSize=512m -Dmaven.compile.fork=true STREAMS: - boron: branch: master diff --git a/jjb/lispflowmapping/lispflowmapping.yaml b/jjb/lispflowmapping/lispflowmapping.yaml index eff1c98fc..3cbf00bf5 100644 --- a/jjb/lispflowmapping/lispflowmapping.yaml +++ b/jjb/lispflowmapping/lispflowmapping.yaml @@ -6,15 +6,15 @@ - project: name: lispflowmapping jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'lispflowmapping-verify-{stream}' - 'lispflowmapping-merge-{stream}' - - 'lispflowmapping-periodic-{stream}' - - 'lispflowmapping-distribution-{stream}' - - 'lispflowmapping-distribution-check-{stream}' - - 'lispflowmapping-integration-{stream}' - 'lispflowmapping-sonar' - - 'lispflowmapping-clm-{stream}' - - 'lispflowmapping-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -45,6 +45,11 @@ disable_distribution_check: True project: 'lispflowmapping' + mvn-settings: 'lispflowmapping-settings' + mvn-goals: 'clean install findbugs:findbugs javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + mvn-opts: '-Xmx2048m -XX:MaxPermSize=512m -Dmaven.compile.fork=true' + dependencies: 'controller-merge-{stream},odlparent-merge-{stream},yangtools-merge-{stream},neutron-merge-{stream}' + email-upstream: '[lispflowmapping] [controller] [odlparent] [yangtools] [neutron]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -81,12 +86,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -112,7 +116,7 @@ pom: 'pom.xml' goals: 'clean install findbugs:findbugs javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}' java-opts: - - '-Xmx1024m -XX:MaxPermSize=256m' + - '-Xmx2048m -XX:MaxPermSize=512m -Dmaven.compile.fork=true' settings: 'lispflowmapping-settings' settings-type: cfp global-settings: 'odl-global-settings' @@ -151,12 +155,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -183,7 +186,7 @@ maven-name: '{mvn33}' root-pom: 'pom.xml' goals: 'clean install findbugs:findbugs javadoc:aggregate -DrepoBuild -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' + maven-opts: '-Xmx2048m -XX:MaxPermSize=512m -Dmaven.compile.fork=true' settings: 'lispflowmapping-settings' settings-type: cfp global-settings: 'odl-global-settings' @@ -240,309 +243,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'lispflowmapping-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: 'lispflowmapping-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install findbugs:findbugs javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'lispflowmapping-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[lispflowmapping]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'lispflowmapping-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: 'lispflowmapping-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: 'lispflowmapping-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'lispflowmapping-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'lispflowmapping-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[lispflowmapping]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'lispflowmapping-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},odlparent-merge-{stream},yangtools-merge-{stream},neutron-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'lispflowmapping-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install findbugs:findbugs javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'lispflowmapping-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[lispflowmapping] [controller] [odlparent] [yangtools] [neutron]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'lispflowmapping-sonar' disabled: false @@ -558,8 +258,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -585,7 +288,7 @@ maven-name: '{mvn33}' root-pom: 'pom.xml' goals: 'clean install findbugs:findbugs javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' + maven-opts: '-Xmx2048m -XX:MaxPermSize=512m -Dmaven.compile.fork=true' settings: 'lispflowmapping-settings' settings-type: cfp global-settings: 'odl-global-settings' @@ -604,167 +307,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'lispflowmapping-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'lispflowmapping-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'lispflowmapping-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: lispflowmapping - - publishers: - - email-notification: - email-prefix: '[lispflowmapping]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'lispflowmapping-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'lispflowmapping' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [lispflowmapping]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/mdsal/mdsal.yaml b/jjb/mdsal/mdsal.yaml index 3a8ff0f0f..6e32b4a80 100644 --- a/jjb/mdsal/mdsal.yaml +++ b/jjb/mdsal/mdsal.yaml @@ -6,15 +6,15 @@ - project: name: mdsal jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'mdsal-verify-{stream}' - 'mdsal-merge-{stream}' - - 'mdsal-periodic-{stream}' - - 'mdsal-distribution-{stream}' - - 'mdsal-distribution-check-{stream}' - - 'mdsal-integration-{stream}' - 'mdsal-sonar' - - 'mdsal-clm-{stream}' - - 'mdsal-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'mdsal' + mvn-settings: 'mdsal-settings' + mvn-goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmaven.compile.fork=true clean install -Dintegrationtests' + mvn-opts: '-Xmx2048m -XX:MaxPermSize=1024m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[mdsal] [odlparent] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'mdsal-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: 'mdsal-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmaven.compile.fork=true clean install -Dintegrationtests -V -B -Djenkins' - maven-opts: '-Xmx2048m -XX:MaxPermSize=1024m' - settings: 'mdsal-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[mdsal]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'mdsal-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: 'mdsal-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: 'mdsal-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'mdsal-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'mdsal-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[mdsal]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'mdsal-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'mdsal-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmaven.compile.fork=true clean install -Dintegrationtests -V -B -Djenkins' - maven-opts: '-Xmx2048m -XX:MaxPermSize=1024m' - settings: 'mdsal-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[mdsal] [odlparent] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'mdsal-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'mdsal-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'mdsal-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'mdsal-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: mdsal - - publishers: - - email-notification: - email-prefix: '[mdsal]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'mdsal-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'mdsal' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [mdsal]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/messaging4transport/messaging4transport.yaml b/jjb/messaging4transport/messaging4transport.yaml index 21ee6bfda..6d08bc142 100644 --- a/jjb/messaging4transport/messaging4transport.yaml +++ b/jjb/messaging4transport/messaging4transport.yaml @@ -6,15 +6,15 @@ - project: name: messaging4transport jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'messaging4transport-verify-{stream}' - 'messaging4transport-merge-{stream}' - - 'messaging4transport-periodic-{stream}' - - 'messaging4transport-distribution-{stream}' - - 'messaging4transport-distribution-check-{stream}' - - 'messaging4transport-integration-{stream}' - 'messaging4transport-sonar' - - 'messaging4transport-clm-{stream}' - - 'messaging4transport-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'messaging4transport' + mvn-settings: 'messaging4transport-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'yangtools-merge-{stream},aaa-merge-{stream},controller-merge-{stream},odlparent-merge-{stream}' + email-upstream: '[messaging4transport] [yangtools] [aaa] [controller] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'messaging4transport-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: 'messaging4transport-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: 'messaging4transport-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[messaging4transport]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'messaging4transport-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: 'messaging4transport-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: 'messaging4transport-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'messaging4transport-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'messaging4transport-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[messaging4transport]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'messaging4transport-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'yangtools-merge-{stream},aaa-merge-{stream},controller-merge-{stream},odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'messaging4transport-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: 'messaging4transport-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[messaging4transport] [yangtools] [aaa] [controller] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'messaging4transport-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'messaging4transport-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'messaging4transport-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'messaging4transport-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: messaging4transport - - publishers: - - email-notification: - email-prefix: '[messaging4transport]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'messaging4transport-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'messaging4transport' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [messaging4transport]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/natapp/natapp.yaml b/jjb/natapp/natapp.yaml index f65989d0a..fe6348c89 100644 --- a/jjb/natapp/natapp.yaml +++ b/jjb/natapp/natapp.yaml @@ -6,15 +6,15 @@ - project: name: natapp jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'natapp-verify-{stream}' - 'natapp-merge-{stream}' - - 'natapp-periodic-{stream}' - - 'natapp-distribution-{stream}' - - 'natapp-distribution-check-{stream}' - - 'natapp-integration-{stream}' - 'natapp-sonar' - - 'natapp-clm-{stream}' - - 'natapp-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -29,6 +29,11 @@ disable_distribution_check: False project: 'natapp' + mvn-settings: 'natapp-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream}' + email-upstream: '[natapp] [controller] [yangtools] [odlparent] [openflowplugin]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -65,12 +70,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -135,12 +139,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -224,309 +227,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'natapp-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: 'natapp-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: 'natapp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[natapp]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'natapp-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: 'natapp-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: 'natapp-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'natapp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'natapp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[natapp]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'natapp-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'natapp-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: 'natapp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[natapp] [controller] [yangtools] [odlparent] [openflowplugin]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'natapp-sonar' disabled: false @@ -542,8 +242,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -588,167 +291,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'natapp-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'natapp-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'natapp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: natapp - - publishers: - - email-notification: - email-prefix: '[natapp]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'natapp-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'natapp' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [natapp]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/nemo/nemo.yaml b/jjb/nemo/nemo.yaml index 0671a2010..2564dc53f 100644 --- a/jjb/nemo/nemo.yaml +++ b/jjb/nemo/nemo.yaml @@ -6,15 +6,15 @@ - project: name: nemo jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'nemo-verify-{stream}' - 'nemo-merge-{stream}' - - 'nemo-periodic-{stream}' - - 'nemo-distribution-{stream}' - - 'nemo-distribution-check-{stream}' - - 'nemo-integration-{stream}' - 'nemo-sonar' - - 'nemo-clm-{stream}' - - 'nemo-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'nemo' + mvn-settings: 'nemo-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}' + email-upstream: '[nemo] [controller] [yangtools] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'nemo-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: 'nemo-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: 'nemo-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[nemo]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'nemo-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: 'nemo-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: 'nemo-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'nemo-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'nemo-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[nemo]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'nemo-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'nemo-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: 'nemo-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[nemo] [controller] [yangtools] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'nemo-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'nemo-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'nemo-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'nemo-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: nemo - - publishers: - - email-notification: - email-prefix: '[nemo]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'nemo-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'nemo' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [nemo]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/netconf/netconf.yaml b/jjb/netconf/netconf.yaml index 9be43189b..c7d406a1a 100644 --- a/jjb/netconf/netconf.yaml +++ b/jjb/netconf/netconf.yaml @@ -6,15 +6,15 @@ - project: name: netconf jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'netconf-verify-{stream}' - 'netconf-merge-{stream}' - - 'netconf-periodic-{stream}' - - 'netconf-distribution-{stream}' - - 'netconf-distribution-check-{stream}' - - 'netconf-integration-{stream}' - 'netconf-sonar' - - 'netconf-clm-{stream}' - - 'netconf-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'netconf' + mvn-settings: 'netconf-settings' + mvn-goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests' + mvn-opts: '-Xmx2048m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' + dependencies: 'aaa-merge-{stream},controller-merge-{stream},odlparent-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[netconf] [aaa] [controller] [odlparent] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'netconf-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: 'netconf-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests -V -B -Djenkins' - maven-opts: '-Xmx2048m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'netconf-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[netconf]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'netconf-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: 'netconf-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: 'netconf-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'netconf-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'netconf-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[netconf]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'netconf-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'aaa-merge-{stream},controller-merge-{stream},odlparent-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'netconf-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests -V -B -Djenkins' - maven-opts: '-Xmx2048m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'netconf-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[netconf] [aaa] [controller] [odlparent] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'netconf-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'netconf-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'netconf-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'netconf-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: netconf - - publishers: - - email-notification: - email-prefix: '[netconf]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'netconf-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'netconf' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [netconf]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/netide/netide.yaml b/jjb/netide/netide.yaml index 881eaf46a..f919c0988 100644 --- a/jjb/netide/netide.yaml +++ b/jjb/netide/netide.yaml @@ -6,15 +6,15 @@ - project: name: netide jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'netide-verify-{stream}' - 'netide-merge-{stream}' - - 'netide-periodic-{stream}' - - 'netide-distribution-{stream}' - - 'netide-distribution-check-{stream}' - - 'netide-integration-{stream}' - 'netide-sonar' - - 'netide-clm-{stream}' - - 'netide-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'netide' + mvn-settings: 'netide-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream}' + email-upstream: '[netide] [odlparent] [yangtools] [controller] [openflowjava]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'netide-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: 'netide-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: 'netide-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[netide]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'netide-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: 'netide-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: 'netide-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'netide-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'netide-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[netide]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'netide-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'netide-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: 'netide-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[netide] [odlparent] [yangtools] [controller] [openflowjava]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'netide-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'netide-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'netide-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'netide-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: netide - - publishers: - - email-notification: - email-prefix: '[netide]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'netide-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'netide' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [netide]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/netvirt/netvirt-csit.yaml b/jjb/netvirt/netvirt-csit.yaml index 6d770c879..d9c75e347 100644 --- a/jjb/netvirt/netvirt-csit.yaml +++ b/jjb/netvirt/netvirt-csit.yaml @@ -29,7 +29,6 @@ scope: 'all' # Mininet configuration - mininet-image: 'rk-f21-mininet' mininet-vms: 2 # Features to install diff --git a/jjb/netvirt/netvirt-full-integration.yaml b/jjb/netvirt/netvirt-full-integration.yaml index 31d74776c..496e6484c 100644 --- a/jjb/netvirt/netvirt-full-integration.yaml +++ b/jjb/netvirt/netvirt-full-integration.yaml @@ -56,12 +56,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: diff --git a/jjb/netvirt/netvirt-openstack.yaml b/jjb/netvirt/netvirt-openstack.yaml index 9485d7a90..78b236483 100644 --- a/jjb/netvirt/netvirt-openstack.yaml +++ b/jjb/netvirt/netvirt-openstack.yaml @@ -17,8 +17,11 @@ daysToKeep: '198' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' wrappers: - opendaylight-infra-wrappers: diff --git a/jjb/netvirt/netvirt-sonar.yaml b/jjb/netvirt/netvirt-sonar.yaml index ff5c021c3..897207f31 100644 --- a/jjb/netvirt/netvirt-sonar.yaml +++ b/jjb/netvirt/netvirt-sonar.yaml @@ -20,8 +20,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: diff --git a/jjb/netvirt/netvirt.cfg b/jjb/netvirt/netvirt.cfg index 8fdf3adc1..66e5c74fb 100644 --- a/jjb/netvirt/netvirt.cfg +++ b/jjb/netvirt/netvirt.cfg @@ -8,4 +8,4 @@ STREAMS: jdks: openjdk7,openjdk8 autorelease: true DEPENDENCIES: controller,neutron,odlparent,openflowjava,openflowplugin,ovsdb,sfc,yangtools -JOB_TEMPLATES: verify,merge,periodic,distribution,distribution-check,integration +JOB_TEMPLATES: verify,merge diff --git a/jjb/netvirt/netvirt.yaml b/jjb/netvirt/netvirt.yaml index 3da193d40..110d3cc76 100644 --- a/jjb/netvirt/netvirt.yaml +++ b/jjb/netvirt/netvirt.yaml @@ -6,14 +6,14 @@ - project: name: netvirt jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'netvirt-verify-{stream}' - 'netvirt-merge-{stream}' - - 'netvirt-periodic-{stream}' - - 'netvirt-distribution-{stream}' - - 'netvirt-distribution-check-{stream}' - - 'netvirt-integration-{stream}' - - 'netvirt-clm-{stream}' - - 'netvirt-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -36,6 +36,11 @@ disable_distribution_check: False project: 'netvirt' + mvn-settings: 'netvirt-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},neutron-merge-{stream},odlparent-merge-{stream},openflowjava-merge-{stream},openflowplugin-merge-{stream},ovsdb-merge-{stream},sfc-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[netvirt] [controller] [neutron] [odlparent] [openflowjava] [openflowplugin] [ovsdb] [sfc] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -72,12 +77,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -142,12 +146,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -231,470 +234,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'netvirt-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: 'netvirt-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: 'netvirt-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[netvirt]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'netvirt-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: 'netvirt-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: 'netvirt-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'netvirt-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'netvirt-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[netvirt]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'netvirt-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},neutron-merge-{stream},odlparent-merge-{stream},openflowjava-merge-{stream},openflowplugin-merge-{stream},ovsdb-merge-{stream},sfc-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'netvirt-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: 'netvirt-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[netvirt] [controller] [neutron] [odlparent] [openflowjava] [openflowplugin] [ovsdb] [sfc] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'netvirt-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'netvirt-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'netvirt-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: netvirt - - publishers: - - email-notification: - email-prefix: '[netvirt]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'netvirt-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'netvirt' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [netvirt]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/neutron/neutron-daily-openstack-beryllium.yaml b/jjb/neutron/neutron-daily-openstack-beryllium.yaml index 027b4f6ac..127c90025 100644 --- a/jjb/neutron/neutron-daily-openstack-beryllium.yaml +++ b/jjb/neutron/neutron-daily-openstack-beryllium.yaml @@ -18,8 +18,11 @@ daysToKeep: '198' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' wrappers: - opendaylight-infra-wrappers: diff --git a/jjb/neutron/neutron.yaml b/jjb/neutron/neutron.yaml index 269f9b625..d0a4e780f 100644 --- a/jjb/neutron/neutron.yaml +++ b/jjb/neutron/neutron.yaml @@ -6,15 +6,15 @@ - project: name: neutron jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'neutron-verify-{stream}' - 'neutron-merge-{stream}' - - 'neutron-periodic-{stream}' - - 'neutron-distribution-{stream}' - - 'neutron-distribution-check-{stream}' - - 'neutron-integration-{stream}' - 'neutron-sonar' - - 'neutron-clm-{stream}' - - 'neutron-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'neutron' + mvn-settings: 'neutron-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},aaa-merge-{stream}' + email-upstream: '[neutron] [odlparent] [aaa]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'neutron-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: 'neutron-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: 'neutron-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[neutron]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'neutron-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: 'neutron-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: 'neutron-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'neutron-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'neutron-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[neutron]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'neutron-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},aaa-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'neutron-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: 'neutron-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[neutron] [odlparent] [aaa]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'neutron-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'neutron-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'neutron-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'neutron-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: neutron - - publishers: - - email-notification: - email-prefix: '[neutron]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'neutron-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'neutron' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [neutron]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/next/next.yaml b/jjb/next/next.yaml index 59e337d29..703cb4b6b 100644 --- a/jjb/next/next.yaml +++ b/jjb/next/next.yaml @@ -6,15 +6,15 @@ - project: name: next jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'next-verify-{stream}' - 'next-merge-{stream}' - - 'next-periodic-{stream}' - - 'next-distribution-{stream}' - - 'next-distribution-check-{stream}' - - 'next-integration-{stream}' - 'next-sonar' - - 'next-clm-{stream}' - - 'next-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'next' + mvn-settings: 'next-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[next] [odlparent] [controller] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'next-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: 'next-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: 'next-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[next]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'next-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: 'next-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: 'next-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'next-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'next-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[next]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'next-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'next-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: 'next-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[next] [odlparent] [controller] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'next-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'next-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'next-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'next-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: next - - publishers: - - email-notification: - email-prefix: '[next]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'next-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'next' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [next]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/nic/nic.yaml b/jjb/nic/nic.yaml index 35f535209..ae89f7d97 100644 --- a/jjb/nic/nic.yaml +++ b/jjb/nic/nic.yaml @@ -6,15 +6,15 @@ - project: name: nic jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'nic-verify-{stream}' - 'nic-merge-{stream}' - - 'nic-periodic-{stream}' - - 'nic-distribution-{stream}' - - 'nic-distribution-check-{stream}' - - 'nic-integration-{stream}' - 'nic-sonar' - - 'nic-clm-{stream}' - - 'nic-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'nic' + mvn-settings: 'nic-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},odlparent-merge-{stream},vtn-merge-{stream},yangtools-merge-{stream},groupbasedpolicy-merge-{stream}' + email-upstream: '[nic] [controller] [odlparent] [vtn] [yangtools] [groupbasedpolicy]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'nic-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: 'nic-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: 'nic-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[nic]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'nic-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: 'nic-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: 'nic-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'nic-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'nic-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[nic]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'nic-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},odlparent-merge-{stream},vtn-merge-{stream},yangtools-merge-{stream},groupbasedpolicy-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'nic-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: 'nic-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[nic] [controller] [odlparent] [vtn] [yangtools] [groupbasedpolicy]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'nic-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'nic-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'nic-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'nic-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: nic - - publishers: - - email-notification: - email-prefix: '[nic]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'nic-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'nic' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [nic]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/ocpplugin/ocpplugin.yaml b/jjb/ocpplugin/ocpplugin.yaml index 5f5b8e4ba..99af8007b 100644 --- a/jjb/ocpplugin/ocpplugin.yaml +++ b/jjb/ocpplugin/ocpplugin.yaml @@ -6,15 +6,15 @@ - project: name: ocpplugin jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'ocpplugin-verify-{stream}' - 'ocpplugin-merge-{stream}' - - 'ocpplugin-periodic-{stream}' - - 'ocpplugin-distribution-{stream}' - - 'ocpplugin-distribution-check-{stream}' - - 'ocpplugin-integration-{stream}' - 'ocpplugin-sonar' - - 'ocpplugin-clm-{stream}' - - 'ocpplugin-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -29,6 +29,11 @@ disable_distribution_check: False project: 'ocpplugin' + mvn-settings: 'ocpplugin-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}' + email-upstream: '[ocpplugin] [odlparent] [yangtools] [controller]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -65,12 +70,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -135,12 +139,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -224,309 +227,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'ocpplugin-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: 'ocpplugin-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: 'ocpplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[ocpplugin]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'ocpplugin-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: 'ocpplugin-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: 'ocpplugin-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'ocpplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'ocpplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[ocpplugin]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'ocpplugin-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'ocpplugin-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: 'ocpplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[ocpplugin] [odlparent] [yangtools] [controller]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'ocpplugin-sonar' disabled: false @@ -542,8 +242,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -588,167 +291,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'ocpplugin-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'ocpplugin-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'ocpplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: ocpplugin - - publishers: - - email-notification: - email-prefix: '[ocpplugin]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'ocpplugin-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'ocpplugin' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [ocpplugin]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/odlparent/odlparent.yaml b/jjb/odlparent/odlparent.yaml index 119229017..5d8eb31d1 100644 --- a/jjb/odlparent/odlparent.yaml +++ b/jjb/odlparent/odlparent.yaml @@ -6,15 +6,15 @@ - project: name: odlparent jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'odlparent-verify-{stream}' - 'odlparent-merge-{stream}' - - 'odlparent-periodic-{stream}' - - 'odlparent-distribution-{stream}' - - 'odlparent-distribution-check-{stream}' - - 'odlparent-integration-{stream}' - 'odlparent-sonar' - - 'odlparent-clm-{stream}' - - 'odlparent-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'odlparent' + mvn-settings: 'odlparent-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: '' + email-upstream: '[odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'odlparent-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: 'odlparent-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: 'odlparent-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'odlparent-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: 'odlparent-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: 'odlparent-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'odlparent-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'odlparent-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[odlparent]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'odlparent-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: '' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'odlparent-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: 'odlparent-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'odlparent-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'odlparent-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'odlparent-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'odlparent-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: odlparent - - publishers: - - email-notification: - email-prefix: '[odlparent]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'odlparent-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'odlparent' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [odlparent]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/of-config/of-config-csit-basic.yaml b/jjb/of-config/of-config-csit-basic.yaml new file mode 100644 index 000000000..02b0545cc --- /dev/null +++ b/jjb/of-config/of-config-csit-basic.yaml @@ -0,0 +1,35 @@ +- project: + name: of-config-csit-basic + jobs: + - '{project}-csit-verify-1node-{functionality}' + - '{project}-csit-1node-{functionality}-{install}-{stream}' + + # The project name + project: 'of-config' + + # The functionality under test + functionality: 'basic' + + # Project branches + stream: + - boron: + branch: 'master' + jre: 'openjdk8' + - beryllium: + branch: 'stable/beryllium' + jre: 'openjdk7' + + install: + - only: + scope: 'only' + - all: + scope: 'all' + + # Features to install + install-features: 'odl-restconf,odl-of-config-all,odl-of-config-rest' + + # Robot custom options + robot-options: '' + + # Trigger jobs (upstream dependencies) + trigger-jobs: 'yangtools-distribution-{stream},controller-distribution-{stream},netconf-distribution-{stream},of-config-distribution-{stream}' diff --git a/jjb/of-config/of-config.yaml b/jjb/of-config/of-config.yaml index ac13d26c1..c66a02856 100644 --- a/jjb/of-config/of-config.yaml +++ b/jjb/of-config/of-config.yaml @@ -6,15 +6,15 @@ - project: name: of-config jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'of-config-verify-{stream}' - 'of-config-merge-{stream}' - - 'of-config-periodic-{stream}' - - 'of-config-distribution-{stream}' - - 'of-config-distribution-check-{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) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'of-config' + mvn-settings: 'of-config-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},netconf-merge-{stream}' + email-upstream: '[of-config] [controller] [yangtools] [odlparent] [netconf]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'of-config-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: 'of-config-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: 'of-config-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[of-config]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'of-config-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: 'of-config-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: 'of-config-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'of-config-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'of-config-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[of-config]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'of-config-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},netconf-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'of-config-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: 'of-config-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[of-config] [controller] [yangtools] [odlparent] [netconf]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'of-config-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'of-config-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'of-config-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: of-config - - publishers: - - email-notification: - email-prefix: '[of-config]' - - archive-build: - maven-version: '{mvn33}' - -- 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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'of-config' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [of-config]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/ofextensions/circuitsw/circuitsw.yaml b/jjb/ofextensions/circuitsw/circuitsw.yaml index ed18776cd..2c1a2226b 100644 --- a/jjb/ofextensions/circuitsw/circuitsw.yaml +++ b/jjb/ofextensions/circuitsw/circuitsw.yaml @@ -6,15 +6,15 @@ - project: name: circuitsw jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'circuitsw-verify-{stream}' - 'circuitsw-merge-{stream}' - - 'circuitsw-periodic-{stream}' - - 'circuitsw-distribution-{stream}' - - 'circuitsw-distribution-check-{stream}' - - 'circuitsw-integration-{stream}' - 'circuitsw-sonar' - - 'circuitsw-clm-{stream}' - - 'circuitsw-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'ofextensions/circuitsw' + mvn-settings: 'ofextensions-circuitsw-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowplugin-merge-{stream}' + email-upstream: '[circuitsw] [odlparent] [yangtools] [controller] [openflowplugin]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'circuitsw-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: 'ofextensions-circuitsw-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: 'ofextensions-circuitsw-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[circuitsw]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'circuitsw-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: 'ofextensions-circuitsw-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: 'circuitsw-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'ofextensions-circuitsw-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'ofextensions-circuitsw-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[circuitsw]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'circuitsw-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowplugin-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'ofextensions-circuitsw-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: 'ofextensions-circuitsw-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[circuitsw] [odlparent] [yangtools] [controller] [openflowplugin]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'circuitsw-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'circuitsw-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'ofextensions-circuitsw-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'ofextensions-circuitsw-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: circuitsw - - publishers: - - email-notification: - email-prefix: '[circuitsw]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'circuitsw-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'ofextensions/circuitsw' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [circuitsw]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/openflowjava/openflowjava.yaml b/jjb/openflowjava/openflowjava.yaml index 4effcce8b..09407248f 100644 --- a/jjb/openflowjava/openflowjava.yaml +++ b/jjb/openflowjava/openflowjava.yaml @@ -6,15 +6,15 @@ - project: name: openflowjava jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'openflowjava-verify-{stream}' - 'openflowjava-merge-{stream}' - - 'openflowjava-periodic-{stream}' - - 'openflowjava-distribution-{stream}' - - 'openflowjava-distribution-check-{stream}' - - 'openflowjava-integration-{stream}' - 'openflowjava-sonar' - - 'openflowjava-clm-{stream}' - - 'openflowjava-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -45,6 +45,11 @@ disable_distribution_check: True project: 'openflowjava' + mvn-settings: 'openflowjava-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}' + email-upstream: '[openflowjava] [odlparent] [yangtools] [controller]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -81,12 +86,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -151,12 +155,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -240,309 +243,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'openflowjava-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: 'openflowjava-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: 'openflowjava-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[openflowjava]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'openflowjava-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: 'openflowjava-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: 'openflowjava-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'openflowjava-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'openflowjava-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[openflowjava]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'openflowjava-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'openflowjava-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: 'openflowjava-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[openflowjava] [odlparent] [yangtools] [controller]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'openflowjava-sonar' disabled: false @@ -558,8 +258,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -604,167 +307,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'openflowjava-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'openflowjava-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'openflowjava-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: openflowjava - - publishers: - - email-notification: - email-prefix: '[openflowjava]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'openflowjava-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'openflowjava' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [openflowjava]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/openflowplugin/openflowplugin.yaml b/jjb/openflowplugin/openflowplugin.yaml index 52a2f5e26..50bcb34ac 100644 --- a/jjb/openflowplugin/openflowplugin.yaml +++ b/jjb/openflowplugin/openflowplugin.yaml @@ -6,15 +6,15 @@ - project: name: openflowplugin jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'openflowplugin-verify-{stream}' - 'openflowplugin-merge-{stream}' - - 'openflowplugin-periodic-{stream}' - - 'openflowplugin-distribution-{stream}' - - 'openflowplugin-distribution-check-{stream}' - - 'openflowplugin-integration-{stream}' - 'openflowplugin-sonar' - - 'openflowplugin-clm-{stream}' - - 'openflowplugin-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -45,6 +45,11 @@ disable_distribution_check: True project: 'openflowplugin' + mvn-settings: 'openflowplugin-settings' + mvn-goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream}' + email-upstream: '[openflowplugin] [odlparent] [yangtools] [controller] [openflowjava]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -81,12 +86,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -151,12 +155,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -240,309 +243,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'openflowplugin-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: 'openflowplugin-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'openflowplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[openflowplugin]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'openflowplugin-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: 'openflowplugin-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: 'openflowplugin-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'openflowplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'openflowplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[openflowplugin]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'openflowplugin-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'openflowplugin-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'openflowplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[openflowplugin] [odlparent] [yangtools] [controller] [openflowjava]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'openflowplugin-sonar' disabled: false @@ -558,8 +258,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -604,167 +307,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'openflowplugin-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'openflowplugin-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'openflowplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: openflowplugin - - publishers: - - email-notification: - email-prefix: '[openflowplugin]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'openflowplugin-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'openflowplugin' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [openflowplugin]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/opflex/opflex-custom.yaml b/jjb/opflex/opflex-custom.yaml index 3613f3a5d..bc356d130 100644 --- a/jjb/opflex/opflex-custom.yaml +++ b/jjb/opflex/opflex-custom.yaml @@ -66,12 +66,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -109,12 +108,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: diff --git a/jjb/ovsdb/ovsdb-full-integration.yaml b/jjb/ovsdb/ovsdb-full-integration.yaml index 16a1f8383..a7390d5e8 100644 --- a/jjb/ovsdb/ovsdb-full-integration.yaml +++ b/jjb/ovsdb/ovsdb-full-integration.yaml @@ -61,12 +61,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: diff --git a/jjb/ovsdb/ovsdb-sonar.yaml b/jjb/ovsdb/ovsdb-sonar.yaml index e3c7efc45..fbc113c99 100644 --- a/jjb/ovsdb/ovsdb-sonar.yaml +++ b/jjb/ovsdb/ovsdb-sonar.yaml @@ -20,8 +20,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: diff --git a/jjb/ovsdb/ovsdb.cfg b/jjb/ovsdb/ovsdb.cfg index 79ea600b5..b1ad0aa2f 100644 --- a/jjb/ovsdb/ovsdb.cfg +++ b/jjb/ovsdb/ovsdb.cfg @@ -12,4 +12,4 @@ STREAMS: jdks: openjdk7 distribution-check: false DEPENDENCIES: odlparent,controller,yangtools -JOB_TEMPLATES: verify,merge,periodic,distribution,distribution-check,integration +JOB_TEMPLATES: verify,merge diff --git a/jjb/ovsdb/ovsdb.yaml b/jjb/ovsdb/ovsdb.yaml index 0244ec563..8dd487684 100644 --- a/jjb/ovsdb/ovsdb.yaml +++ b/jjb/ovsdb/ovsdb.yaml @@ -6,14 +6,14 @@ - project: name: ovsdb jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'ovsdb-verify-{stream}' - 'ovsdb-merge-{stream}' - - 'ovsdb-periodic-{stream}' - - 'ovsdb-distribution-{stream}' - - 'ovsdb-distribution-check-{stream}' - - 'ovsdb-integration-{stream}' - - 'ovsdb-clm-{stream}' - - 'ovsdb-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -43,6 +43,11 @@ disable_distribution_check: True project: 'ovsdb' + mvn-settings: 'ovsdb-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[ovsdb] [odlparent] [controller] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -79,12 +84,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -149,12 +153,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -238,470 +241,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'ovsdb-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: 'ovsdb-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: 'ovsdb-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[ovsdb]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'ovsdb-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: 'ovsdb-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: 'ovsdb-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'ovsdb-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'ovsdb-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[ovsdb]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'ovsdb-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'ovsdb-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: 'ovsdb-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[ovsdb] [odlparent] [controller] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'ovsdb-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'ovsdb-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'ovsdb-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: ovsdb - - publishers: - - email-notification: - email-prefix: '[ovsdb]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'ovsdb-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'ovsdb' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [ovsdb]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/packetcable/packetcable.yaml b/jjb/packetcable/packetcable.yaml index ad40d9112..aa09b432e 100644 --- a/jjb/packetcable/packetcable.yaml +++ b/jjb/packetcable/packetcable.yaml @@ -6,15 +6,15 @@ - project: name: packetcable jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'packetcable-verify-{stream}' - 'packetcable-merge-{stream}' - - 'packetcable-periodic-{stream}' - - 'packetcable-distribution-{stream}' - - 'packetcable-distribution-check-{stream}' - - 'packetcable-integration-{stream}' - 'packetcable-sonar' - - 'packetcable-clm-{stream}' - - 'packetcable-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'packetcable' + mvn-settings: 'packetcable-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[packetcable] [odlparent] [controller] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'packetcable-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: 'packetcable-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: 'packetcable-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[packetcable]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'packetcable-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: 'packetcable-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: 'packetcable-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'packetcable-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'packetcable-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[packetcable]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'packetcable-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'packetcable-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: 'packetcable-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[packetcable] [odlparent] [controller] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'packetcable-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'packetcable-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'packetcable-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'packetcable-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: packetcable - - publishers: - - email-notification: - email-prefix: '[packetcable]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'packetcable-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'packetcable' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [packetcable]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/persistence/persistence.yaml b/jjb/persistence/persistence.yaml index e40d83d44..52f0a1848 100644 --- a/jjb/persistence/persistence.yaml +++ b/jjb/persistence/persistence.yaml @@ -6,15 +6,15 @@ - project: name: persistence jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'persistence-verify-{stream}' - 'persistence-merge-{stream}' - - 'persistence-periodic-{stream}' - - 'persistence-distribution-{stream}' - - 'persistence-distribution-check-{stream}' - - 'persistence-integration-{stream}' - 'persistence-sonar' - - 'persistence-clm-{stream}' - - 'persistence-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -46,6 +46,11 @@ disable_distribution_check: True project: 'persistence' + mvn-settings: 'persistence-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[persistence] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -82,12 +87,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -152,12 +156,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -241,309 +244,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'persistence-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: 'persistence-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: 'persistence-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[persistence]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'persistence-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: 'persistence-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: 'persistence-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'persistence-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'persistence-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[persistence]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'persistence-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'persistence-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: 'persistence-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[persistence] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'persistence-sonar' disabled: false @@ -559,8 +259,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -605,167 +308,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'persistence-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'persistence-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'persistence-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: persistence - - publishers: - - email-notification: - email-prefix: '[persistence]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'persistence-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'persistence' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [persistence]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/releng-defaults.yaml b/jjb/releng-defaults.yaml index 15c995b60..2b5e649c8 100644 --- a/jjb/releng-defaults.yaml +++ b/jjb/releng-defaults.yaml @@ -10,6 +10,10 @@ # Timeout in minutes build-timeout: 360 + # openstack-infra-parameters defaults + archive-artifacts: '' + branch: master + # Maven versions mvn30: 'Maven 3.0.5' mvn31: 'Maven 3.1.1' diff --git a/jjb/releng-jobs.yaml b/jjb/releng-jobs.yaml index e796aa2b2..6b406196d 100644 --- a/jjb/releng-jobs.yaml +++ b/jjb/releng-jobs.yaml @@ -7,10 +7,6 @@ - 'builder-weekly' - 'builder-check-poms' - # Maven Sites - - 'builder-site-publish' - - 'builder-site-verify' - project: 'releng/builder' - job-template: @@ -23,12 +19,11 @@ daysToKeep: 7 parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: 'master' refspec: 'refs/heads/master' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -90,12 +85,11 @@ artifactNumToKeep: -1 parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: 'master' refspec: 'refs/heads/master' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -160,12 +154,11 @@ artifactNumToKeep: -1 parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: 'master' refspec: 'refs/heads/master' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -225,8 +218,11 @@ artifactNumToKeep: -1 parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: 'master' + refspec: 'refs/heads/master' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -261,158 +257,24 @@ artifactDaysToKeep: -1 artifactNumToKeep: -1 - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 1' - - builders: - - shell: - !include-raw-escape: - - include-raw-check-poms.sh - - publishers: - - email-notification: - email-prefix: '[releng]' - - archive-build: - maven-version: '{mvn33}' - - -### -### Maven Sites -### - -- job-template: - name: 'builder-site-publish' - node: dynamic_merge - concurrent: false - jdk: 'openjdk8' - - # This job's purpose is to publish maven site - - project-type: maven - - logrotate: - daysToKeep: 7 - numToKeep: 3 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: 'master' refspec: 'refs/heads/master' - - scm: - - gerrit-trigger-scm: - refspec: '' - choosing-strategy: 'default' + artifacts: '{archive-artifacts}' wrappers: - opendaylight-infra-wrappers: build-timeout: '{build-timeout}' triggers: - - gerrit: - server-name: 'OpenDaylight' - trigger-on: - - change-merged-event - - comment-added-contains-event: - comment-contains-value: 'republish' - projects: - - project-compare-type: 'ANT' - project-pattern: 'releng/builder' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/master' - file-paths: - - compare-type: ANT - pattern: src/** - - compare-type: ANT - pattern: pom.xml - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'site:site site:deploy -Dstream=master' - maven-opts: '-Xmx1024m' - settings: 'releng-builder-settings' - global-settings: 'odl-global-settings' - - publishers: - - email-notification: - email-prefix: '[releng]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'builder-site-verify' - node: dynamic_verify - concurrent: true - jdk: 'openjdk8' - - # This job's purpose is to verify maven site configuration - - project-type: maven - - logrotate: - daysToKeep: 7 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - - parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: - project: '{project}' - branch: 'master' - refspec: 'refs/heads/master' - - scm: - - gerrit-trigger-scm: - refspec: '$GERRIT_REFSPEC' - choosing-strategy: 'gerrit' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' + - timed: 'H H * * 1' - 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' - projects: - - project-compare-type: 'ANT' - project-pattern: 'releng/builder' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/master' - file-paths: - - compare-type: ANT - pattern: src/** - - compare-type: ANT - pattern: pom.xml - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'site:site -Dstream=master' - maven-opts: '-Xmx1024m' - settings: 'autorelease-settings' - global-settings: 'odl-global-settings' + builders: + - shell: + !include-raw-escape: + - include-raw-check-poms.sh publishers: - email-notification: diff --git a/jjb/releng-macros.yaml b/jjb/releng-macros.yaml index e98d8e3cd..df235566d 100644 --- a/jjb/releng-macros.yaml +++ b/jjb/releng-macros.yaml @@ -1,16 +1,16 @@ # OLD Releng macros - parameter: - name: project-parameter + name: opendaylight-infra-parameters parameters: - string: name: PROJECT default: '{project}' - description: "JJB configured PROJECT parameter to identify an ODL Gerrit project" - -- parameter: - name: gerrit-parameters - parameters: + description: 'Parameter to identify an ODL Gerrit project' + - string: + name: ARCHIVE_ARTIFACTS + default: '{artifacts}' + description: 'Artifacts to archive into logs.opendaylight.org' - string: name: GERRIT_PROJECT default: '{project}' @@ -262,6 +262,11 @@ # To archive things the job will need to create a "archives" directory in # the workspace and this macro will handle copying the contents of the # archives directory. + # + # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files + # to archive. You can pass globstar patterns for example "**/*.xml **/*.log" + # as the archive pattern. This is a space separated list of files to archive. + # # Also ensure that the workspace is cleaned up at the end of the build. publishers: - postbuildscript: diff --git a/jjb/releng-templates-java.yaml b/jjb/releng-templates-java.yaml new file mode 100644 index 000000000..de023cbd7 --- /dev/null +++ b/jjb/releng-templates-java.yaml @@ -0,0 +1,473 @@ +- job-template: + # Template used for running CLM scans + # Arguements: + # {name} - Project Shortname + # {project} - Fully qualified project name + # {mvn-settings} - Project maven settings file + # {stream} + # {jdk} + name: '{name}-clm-{stream}' + + project-type: maven + node: dynamic_verify + jdk: '{jdk}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + + 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: 'H H * * 6' + + prebuilders: + - provide-maven-settings: + global-settings-file: 'odl-global-settings' + settings-file: '{mvn-settings}' + + maven: + maven-name: '{mvn33}' + root-pom: 'pom.xml' + goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp + + postbuilders: + - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' + - check-clm: + application-name: '{name}' + + publishers: + - email-notification: + email-prefix: '[{name}]' + - archive-build: + maven-version: '{mvn33}' + +- job-template: + name: '{name}-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: + - 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: + - reverse: + jobs: '{project}-merge-{stream}' + result: 'success' + + prebuilders: + - provide-maven-settings: + global-settings-file: 'odl-global-settings' + settings-file: '{mvn-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}' + +- job-template: + # 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 + + name: '{name}-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: + - opendaylight-infra-parameters: + project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' + - integration-distribution-git-url + + scm: + - integration-gerrit-scm: + basedir: '$GERRIT_PROJECT' + refspec: '$GERRIT_REFSPEC' + branch: '{branch}' + - integration-distribution-scm: + branch: '{branch}' + + wrappers: + - opendaylight-infra-wrappers: + 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: '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: '{name}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + skip-vote: + successful: false + failed: false + unstable: false + notbuilt: false + + prebuilders: + - maven-target: + maven-version: '{mvn33}' + pom: '$GERRIT_PROJECT/pom.xml' + goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' + java-opts: + - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp + + maven: + maven-name: '{mvn33}' + root-pom: 'distribution/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: '{mvn-settings}' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp + ignore-upstream-changes: true + post-step-run-condition: 'SUCCESS' + + postbuilders: + - integration-distribution-check + + publishers: + - email-notification: + email-prefix: '[{name}]' + - postbuildscript: + builders: + - shell: | + #!/bin/bash + mkdir -p $WORKSPACE/archives + cp karaf*.log $WORKSPACE/archives + script-only-if-succeeded: False + script-only-if-failed: False + mark-unstable-if-failed: True + - archive-build: + maven-version: '{mvn33}' + +- job-template: + name: '{name}-integration-{stream}' + + # Job template for ODL integration verify jobs + # + # 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: 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: + - 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: + - reverse: + jobs: '{dependencies}' + result: 'success' + + prebuilders: + - jacoco-nojava-workaround + - provide-maven-settings: + global-settings-file: 'odl-global-settings' + settings-file: '{mvn-settings}' + + maven: + maven-name: '{mvn33}' + goals: '{mvn-goals} -V -B -Djenkins' + maven-opts: '{mvn-opts}' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp + + reporters: + - findbugs + + publishers: + - email-notification: + email-prefix: '{email-upstream}' + - jacoco-report + - archive-build: + maven-version: '{mvn33}' + +- job-template: + name: '{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: maven + node: dynamic_verify + 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' + + prebuilders: + - jacoco-nojava-workaround + - provide-maven-settings: + global-settings-file: 'odl-global-settings' + settings-file: '{mvn-settings}' + + maven: + maven-name: '{mvn33}' + goals: '{mvn-goals} -V -B -Djenkins' + maven-opts: '{mvn-opts}' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp + + reporters: + - findbugs + + publishers: + - email-notification: + email-prefix: '[{name}]' + - jacoco-report + - archive-build: + maven-version: '{mvn33}' + +- job-template: + name: '{name}-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: + - opendaylight-infra-parameters: + project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' + - autorelease-release-tag: + release-tag: 'validate' + - autorelease-release-branch: + release-branch: '{branch}' + - string: + name: CLONE_URL + default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' + description: "Autorelease clone URL" + + scm: + - git: + url: '$CLONE_URL' + credentials-id: 'opendaylight-jenkins-ssh' + refspec: '' + branches: + - 'origin/{branch}' + skip-tag: true + submodule: + recursive: true + timeout: 60 + + wrappers: + - opendaylight-infra-wrappers: + 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_PATH' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + file-paths: + - compare-type: ANT + pattern: '**/*.xml' + + prebuilders: + - jacoco-nojava-workaround + - autorelease-checkout-gerrit-patch + - autorelease-generate-release-patches + - maven-target: + maven-version: '{mvn33}' + pom: validate-pom.xml + goals: 'clean install -V -B -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' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp + + maven: + maven-name: '{mvn33}' + root-pom: 'pom.xml' + goals: 'clean validate -V -B -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' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp + automatic-archiving: false + post-step-run-condition: UNSTABLE + + postbuilders: + - autorelease-sys-stats + + publishers: + - email-notification: + email-prefix: '[autorelease] [{name}]' + - archive-build: + maven-version: '{mvn33}' diff --git a/jjb/releng-templates.yaml b/jjb/releng-templates.yaml index c008bf02d..edaef8b75 100644 --- a/jjb/releng-templates.yaml +++ b/jjb/releng-templates.yaml @@ -12,8 +12,11 @@ daysToKeep: '30' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - build-tag - stage-id-parameter: stage-id: '{stage-id}' @@ -68,8 +71,11 @@ jdk: '{jdk}' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' - p2zip-parameter wrappers: @@ -130,12 +136,11 @@ artifactNumToKeep: '-1' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git: @@ -198,12 +203,11 @@ concurrent: false parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' wrappers: - opendaylight-infra-wrappers: @@ -250,12 +254,11 @@ artifactNumToKeep: '-1' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git: diff --git a/jjb/reservation/reservation.yaml b/jjb/reservation/reservation.yaml index e62bccebb..20579ba49 100644 --- a/jjb/reservation/reservation.yaml +++ b/jjb/reservation/reservation.yaml @@ -6,15 +6,15 @@ - project: name: reservation jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'reservation-verify-{stream}' - 'reservation-merge-{stream}' - - 'reservation-periodic-{stream}' - - 'reservation-distribution-{stream}' - - 'reservation-distribution-check-{stream}' - - 'reservation-integration-{stream}' - 'reservation-sonar' - - 'reservation-clm-{stream}' - - 'reservation-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'reservation' + mvn-settings: 'reservation-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream},groupbasedpolicy-merge-{stream}' + email-upstream: '[reservation] [odlparent] [controller] [yangtools] [groupbasedpolicy]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'reservation-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: 'reservation-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: 'reservation-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[reservation]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'reservation-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: 'reservation-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: 'reservation-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'reservation-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'reservation-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[reservation]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'reservation-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream},groupbasedpolicy-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'reservation-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: 'reservation-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[reservation] [odlparent] [controller] [yangtools] [groupbasedpolicy]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'reservation-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'reservation-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'reservation-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'reservation-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: reservation - - publishers: - - email-notification: - email-prefix: '[reservation]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'reservation-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'reservation' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [reservation]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/sdninterfaceapp/sdninterfaceapp.yaml b/jjb/sdninterfaceapp/sdninterfaceapp.yaml index 5dcf65145..b0eefeaeb 100644 --- a/jjb/sdninterfaceapp/sdninterfaceapp.yaml +++ b/jjb/sdninterfaceapp/sdninterfaceapp.yaml @@ -6,15 +6,15 @@ - project: name: sdninterfaceapp jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'sdninterfaceapp-verify-{stream}' - 'sdninterfaceapp-merge-{stream}' - - 'sdninterfaceapp-periodic-{stream}' - - 'sdninterfaceapp-distribution-{stream}' - - 'sdninterfaceapp-distribution-check-{stream}' - - 'sdninterfaceapp-integration-{stream}' - 'sdninterfaceapp-sonar' - - 'sdninterfaceapp-clm-{stream}' - - 'sdninterfaceapp-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -45,6 +45,11 @@ disable_distribution_check: True project: 'sdninterfaceapp' + mvn-settings: 'sdninterfaceapp-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},bgpcep-merge-{stream}' + email-upstream: '[sdninterfaceapp] [odlparent] [bgpcep]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -81,12 +86,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -151,12 +155,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -240,309 +243,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'sdninterfaceapp-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: 'sdninterfaceapp-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: 'sdninterfaceapp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[sdninterfaceapp]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'sdninterfaceapp-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: 'sdninterfaceapp-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: 'sdninterfaceapp-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'sdninterfaceapp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'sdninterfaceapp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[sdninterfaceapp]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'sdninterfaceapp-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},bgpcep-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'sdninterfaceapp-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: 'sdninterfaceapp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[sdninterfaceapp] [odlparent] [bgpcep]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'sdninterfaceapp-sonar' disabled: false @@ -558,8 +258,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -604,167 +307,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'sdninterfaceapp-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'sdninterfaceapp-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'sdninterfaceapp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: sdninterfaceapp - - publishers: - - email-notification: - email-prefix: '[sdninterfaceapp]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'sdninterfaceapp-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'sdninterfaceapp' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [sdninterfaceapp]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/sfc/sfc-python.yaml b/jjb/sfc/sfc-python.yaml index de738aaa0..97342786a 100644 --- a/jjb/sfc/sfc-python.yaml +++ b/jjb/sfc/sfc-python.yaml @@ -35,12 +35,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: diff --git a/jjb/sfc/sfc.yaml b/jjb/sfc/sfc.yaml index 3010a2f74..08ec32702 100644 --- a/jjb/sfc/sfc.yaml +++ b/jjb/sfc/sfc.yaml @@ -6,15 +6,15 @@ - project: name: sfc jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'sfc-verify-{stream}' - 'sfc-merge-{stream}' - - 'sfc-periodic-{stream}' - - 'sfc-distribution-{stream}' - - 'sfc-distribution-check-{stream}' - - 'sfc-integration-{stream}' - 'sfc-sonar' - - 'sfc-clm-{stream}' - - 'sfc-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'sfc' + mvn-settings: 'sfc-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowplugin-merge-{stream},ovsdb-merge-{stream},lispflowmapping-merge-{stream}' + email-upstream: '[sfc] [odlparent] [yangtools] [controller] [openflowplugin] [ovsdb] [lispflowmapping]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'sfc-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: 'sfc-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: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' - settings: 'sfc-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[sfc]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'sfc-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: 'sfc-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: 'sfc-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'sfc-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'sfc-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[sfc]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'sfc-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowplugin-merge-{stream},ovsdb-merge-{stream},lispflowmapping-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'sfc-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: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' - settings: 'sfc-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[sfc] [odlparent] [yangtools] [controller] [openflowplugin] [ovsdb] [lispflowmapping]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'sfc-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'sfc-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'sfc-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'sfc-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: sfc - - publishers: - - email-notification: - email-prefix: '[sfc]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'sfc-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'sfc' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [sfc]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/snbi/snbi.yaml b/jjb/snbi/snbi.yaml index f3c875ef1..ac63cb235 100644 --- a/jjb/snbi/snbi.yaml +++ b/jjb/snbi/snbi.yaml @@ -6,15 +6,15 @@ - project: name: snbi jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'snbi-verify-{stream}' - 'snbi-merge-{stream}' - - 'snbi-periodic-{stream}' - - 'snbi-distribution-{stream}' - - 'snbi-distribution-check-{stream}' - - 'snbi-integration-{stream}' - 'snbi-sonar' - - 'snbi-clm-{stream}' - - 'snbi-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'snbi' + mvn-settings: 'snbi-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[snbi] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'snbi-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: 'snbi-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: 'snbi-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[snbi]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'snbi-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: 'snbi-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: 'snbi-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'snbi-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'snbi-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[snbi]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'snbi-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'snbi-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: 'snbi-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[snbi] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'snbi-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'snbi-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'snbi-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'snbi-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: snbi - - publishers: - - email-notification: - email-prefix: '[snbi]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'snbi-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'snbi' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [snbi]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/snmp/snmp.yaml b/jjb/snmp/snmp.yaml index 004edfc75..1210bfc76 100644 --- a/jjb/snmp/snmp.yaml +++ b/jjb/snmp/snmp.yaml @@ -6,15 +6,15 @@ - project: name: snmp jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'snmp-verify-{stream}' - 'snmp-merge-{stream}' - - 'snmp-periodic-{stream}' - - 'snmp-distribution-{stream}' - - 'snmp-distribution-check-{stream}' - - 'snmp-integration-{stream}' - 'snmp-sonar' - - 'snmp-clm-{stream}' - - 'snmp-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -45,6 +45,11 @@ disable_distribution_check: True project: 'snmp' + mvn-settings: 'snmp-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[snmp] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -81,12 +86,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -151,12 +155,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -240,309 +243,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'snmp-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: 'snmp-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: 'snmp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[snmp]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'snmp-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: 'snmp-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: 'snmp-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'snmp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'snmp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[snmp]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'snmp-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'snmp-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: 'snmp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[snmp] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'snmp-sonar' disabled: false @@ -558,8 +258,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -604,167 +307,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'snmp-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'snmp-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'snmp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: snmp - - publishers: - - email-notification: - email-prefix: '[snmp]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'snmp-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'snmp' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [snmp]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/snmp4sdn/snmp4sdn.yaml b/jjb/snmp4sdn/snmp4sdn.yaml index 4531e7ad2..2e2bc5e77 100644 --- a/jjb/snmp4sdn/snmp4sdn.yaml +++ b/jjb/snmp4sdn/snmp4sdn.yaml @@ -6,15 +6,15 @@ - project: name: snmp4sdn jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'snmp4sdn-verify-{stream}' - 'snmp4sdn-merge-{stream}' - - 'snmp4sdn-periodic-{stream}' - - 'snmp4sdn-distribution-{stream}' - - 'snmp4sdn-distribution-check-{stream}' - - 'snmp4sdn-integration-{stream}' - 'snmp4sdn-sonar' - - 'snmp4sdn-clm-{stream}' - - 'snmp4sdn-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'snmp4sdn' + mvn-settings: 'snmp4sdn-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[snmp4sdn] [odlparent] [controller] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'snmp4sdn-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: 'snmp4sdn-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: 'snmp4sdn-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[snmp4sdn]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'snmp4sdn-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: 'snmp4sdn-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: 'snmp4sdn-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'snmp4sdn-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'snmp4sdn-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[snmp4sdn]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'snmp4sdn-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'snmp4sdn-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: 'snmp4sdn-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[snmp4sdn] [odlparent] [controller] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'snmp4sdn-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'snmp4sdn-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'snmp4sdn-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'snmp4sdn-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: snmp4sdn - - publishers: - - email-notification: - email-prefix: '[snmp4sdn]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'snmp4sdn-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'snmp4sdn' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [snmp4sdn]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/sxp/sxp.yaml b/jjb/sxp/sxp.yaml index 3a014250e..00ce7bd55 100644 --- a/jjb/sxp/sxp.yaml +++ b/jjb/sxp/sxp.yaml @@ -6,15 +6,15 @@ - project: name: sxp jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'sxp-verify-{stream}' - 'sxp-merge-{stream}' - - 'sxp-periodic-{stream}' - - 'sxp-distribution-{stream}' - - 'sxp-distribution-check-{stream}' - - 'sxp-integration-{stream}' - 'sxp-sonar' - - 'sxp-clm-{stream}' - - 'sxp-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'sxp' + mvn-settings: 'sxp-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[sxp] [odlparent] [controller] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'sxp-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: 'sxp-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: 'sxp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[sxp]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'sxp-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: 'sxp-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: 'sxp-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'sxp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'sxp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[sxp]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'sxp-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'sxp-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: 'sxp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[sxp] [odlparent] [controller] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'sxp-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'sxp-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'sxp-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'sxp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: sxp - - publishers: - - email-notification: - email-prefix: '[sxp]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'sxp-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'sxp' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [sxp]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/tcpmd5/tcpmd5.yaml b/jjb/tcpmd5/tcpmd5.yaml index ccc77a54a..a2486edc8 100644 --- a/jjb/tcpmd5/tcpmd5.yaml +++ b/jjb/tcpmd5/tcpmd5.yaml @@ -6,15 +6,15 @@ - project: name: tcpmd5 jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'tcpmd5-verify-{stream}' - 'tcpmd5-merge-{stream}' - - 'tcpmd5-periodic-{stream}' - - 'tcpmd5-distribution-{stream}' - - 'tcpmd5-distribution-check-{stream}' - - 'tcpmd5-integration-{stream}' - 'tcpmd5-sonar' - - 'tcpmd5-clm-{stream}' - - 'tcpmd5-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -45,6 +45,11 @@ disable_distribution_check: True project: 'tcpmd5' + mvn-settings: 'tcpmd5-settings' + mvn-goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}' + email-upstream: '[tcpmd5] [odlparent] [yangtools] [controller]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -81,12 +86,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -151,12 +155,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -240,309 +243,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'tcpmd5-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: 'tcpmd5-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'tcpmd5-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[tcpmd5]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'tcpmd5-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: 'tcpmd5-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: 'tcpmd5-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'tcpmd5-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'tcpmd5-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[tcpmd5]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'tcpmd5-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'tcpmd5-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'tcpmd5-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[tcpmd5] [odlparent] [yangtools] [controller]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'tcpmd5-sonar' disabled: false @@ -558,8 +258,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -604,167 +307,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'tcpmd5-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'tcpmd5-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'tcpmd5-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: tcpmd5 - - publishers: - - email-notification: - email-prefix: '[tcpmd5]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'tcpmd5-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'tcpmd5' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [tcpmd5]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/toolkit/toolkit.yaml b/jjb/toolkit/toolkit.yaml index 6cd6d27a2..63796aba2 100644 --- a/jjb/toolkit/toolkit.yaml +++ b/jjb/toolkit/toolkit.yaml @@ -6,15 +6,15 @@ - project: name: toolkit jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'toolkit-verify-{stream}' - 'toolkit-merge-{stream}' - - 'toolkit-periodic-{stream}' - - 'toolkit-distribution-{stream}' - - 'toolkit-distribution-check-{stream}' - - 'toolkit-integration-{stream}' - 'toolkit-sonar' - - 'toolkit-clm-{stream}' - - 'toolkit-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -36,6 +36,11 @@ disable_distribution_check: False project: 'toolkit' + mvn-settings: 'toolkit-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},controller-merge-{stream}' + email-upstream: '[toolkit] [odlparent] [controller]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -72,12 +77,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -142,12 +146,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -231,309 +234,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'toolkit-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: 'toolkit-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: 'toolkit-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[toolkit]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'toolkit-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: 'toolkit-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: 'toolkit-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'toolkit-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'toolkit-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[toolkit]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'toolkit-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},controller-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'toolkit-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: 'toolkit-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[toolkit] [odlparent] [controller]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'toolkit-sonar' disabled: false @@ -549,8 +249,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -595,167 +298,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'toolkit-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'toolkit-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'toolkit-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: toolkit - - publishers: - - email-notification: - email-prefix: '[toolkit]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'toolkit-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'toolkit' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [toolkit]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/topoprocessing/topoprocessing.yaml b/jjb/topoprocessing/topoprocessing.yaml index bdc49d1bf..934a211f7 100644 --- a/jjb/topoprocessing/topoprocessing.yaml +++ b/jjb/topoprocessing/topoprocessing.yaml @@ -6,15 +6,15 @@ - project: name: topoprocessing jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'topoprocessing-verify-{stream}' - 'topoprocessing-merge-{stream}' - - 'topoprocessing-periodic-{stream}' - - 'topoprocessing-distribution-{stream}' - - 'topoprocessing-distribution-check-{stream}' - - 'topoprocessing-integration-{stream}' - 'topoprocessing-sonar' - - 'topoprocessing-clm-{stream}' - - 'topoprocessing-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -45,6 +45,11 @@ disable_distribution_check: True project: 'topoprocessing' + mvn-settings: 'topoprocessing-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[topoprocessing] [odlparent] [controller] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -81,12 +86,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -151,12 +155,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -240,309 +243,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'topoprocessing-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: 'topoprocessing-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: 'topoprocessing-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[topoprocessing]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'topoprocessing-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: 'topoprocessing-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: 'topoprocessing-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'topoprocessing-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'topoprocessing-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[topoprocessing]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'topoprocessing-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'topoprocessing-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: 'topoprocessing-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[topoprocessing] [odlparent] [controller] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'topoprocessing-sonar' disabled: false @@ -558,8 +258,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -604,167 +307,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'topoprocessing-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'topoprocessing-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'topoprocessing-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: topoprocessing - - publishers: - - email-notification: - email-prefix: '[topoprocessing]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'topoprocessing-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'topoprocessing' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [topoprocessing]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/tsdr/tsdr.yaml b/jjb/tsdr/tsdr.yaml index ddbae85a3..da22f42cb 100644 --- a/jjb/tsdr/tsdr.yaml +++ b/jjb/tsdr/tsdr.yaml @@ -6,15 +6,15 @@ - project: name: tsdr jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'tsdr-verify-{stream}' - 'tsdr-merge-{stream}' - - 'tsdr-periodic-{stream}' - - 'tsdr-distribution-{stream}' - - 'tsdr-distribution-check-{stream}' - - 'tsdr-integration-{stream}' - 'tsdr-sonar' - - 'tsdr-clm-{stream}' - - 'tsdr-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'tsdr' + mvn-settings: 'tsdr-settings' + mvn-goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[tsdr] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'tsdr-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: 'tsdr-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'tsdr-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[tsdr]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'tsdr-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: 'tsdr-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: 'tsdr-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'tsdr-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'tsdr-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[tsdr]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'tsdr-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'tsdr-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'tsdr-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[tsdr] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'tsdr-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'tsdr-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'tsdr-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'tsdr-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: tsdr - - publishers: - - email-notification: - email-prefix: '[tsdr]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'tsdr-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'tsdr' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [tsdr]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/ttp/ttp.yaml b/jjb/ttp/ttp.yaml index a416f720f..0e08b2ebf 100644 --- a/jjb/ttp/ttp.yaml +++ b/jjb/ttp/ttp.yaml @@ -6,15 +6,15 @@ - project: name: ttp jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'ttp-verify-{stream}' - 'ttp-merge-{stream}' - - 'ttp-periodic-{stream}' - - 'ttp-distribution-{stream}' - - 'ttp-distribution-check-{stream}' - - 'ttp-integration-{stream}' - 'ttp-sonar' - - 'ttp-clm-{stream}' - - 'ttp-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'ttp' + mvn-settings: 'ttp-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[ttp] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'ttp-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: 'ttp-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: 'ttp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[ttp]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'ttp-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: 'ttp-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: 'ttp-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'ttp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'ttp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[ttp]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'ttp-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'ttp-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: 'ttp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[ttp] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'ttp-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'ttp-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'ttp-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'ttp-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: ttp - - publishers: - - email-notification: - email-prefix: '[ttp]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'ttp-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'ttp' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [ttp]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/unimgr/unimgr.yaml b/jjb/unimgr/unimgr.yaml index 7af076f7a..46bce47d6 100644 --- a/jjb/unimgr/unimgr.yaml +++ b/jjb/unimgr/unimgr.yaml @@ -6,15 +6,15 @@ - project: name: unimgr jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'unimgr-verify-{stream}' - 'unimgr-merge-{stream}' - - 'unimgr-periodic-{stream}' - - 'unimgr-distribution-{stream}' - - 'unimgr-distribution-check-{stream}' - - 'unimgr-integration-{stream}' - 'unimgr-sonar' - - 'unimgr-clm-{stream}' - - 'unimgr-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'unimgr' + mvn-settings: 'unimgr-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},ovsdb-merge-{stream}' + email-upstream: '[unimgr] [odlparent] [yangtools] [controller] [ovsdb]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'unimgr-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: 'unimgr-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: 'unimgr-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[unimgr]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'unimgr-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: 'unimgr-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: 'unimgr-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'unimgr-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'unimgr-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[unimgr]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'unimgr-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},ovsdb-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'unimgr-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: 'unimgr-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[unimgr] [odlparent] [yangtools] [controller] [ovsdb]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'unimgr-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'unimgr-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'unimgr-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'unimgr-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: unimgr - - publishers: - - email-notification: - email-prefix: '[unimgr]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'unimgr-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'unimgr' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [unimgr]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/usc/usc.yaml b/jjb/usc/usc.yaml index f6c3fa43d..d9c930b4a 100644 --- a/jjb/usc/usc.yaml +++ b/jjb/usc/usc.yaml @@ -6,15 +6,15 @@ - project: name: usc jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'usc-verify-{stream}' - 'usc-merge-{stream}' - - 'usc-periodic-{stream}' - - 'usc-distribution-{stream}' - - 'usc-distribution-check-{stream}' - - 'usc-integration-{stream}' - 'usc-sonar' - - 'usc-clm-{stream}' - - 'usc-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -45,6 +45,11 @@ disable_distribution_check: True project: 'usc' + mvn-settings: 'usc-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}' + email-upstream: '[usc] [controller] [yangtools] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -81,12 +86,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -151,12 +155,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -240,309 +243,6 @@ - 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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'usc-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'usc-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[usc]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'usc-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}' - result: 'success' - - 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] [controller] [yangtools] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'usc-sonar' disabled: false @@ -558,8 +258,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -604,167 +307,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'usc-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - 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 com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'usc-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: usc - - publishers: - - email-notification: - email-prefix: '[usc]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'usc-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'usc' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [usc]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/usecplugin/usecplugin.yaml b/jjb/usecplugin/usecplugin.yaml index 561dacd63..dde9d7448 100644 --- a/jjb/usecplugin/usecplugin.yaml +++ b/jjb/usecplugin/usecplugin.yaml @@ -6,15 +6,15 @@ - project: name: usecplugin jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'usecplugin-verify-{stream}' - 'usecplugin-merge-{stream}' - - 'usecplugin-periodic-{stream}' - - 'usecplugin-distribution-{stream}' - - 'usecplugin-distribution-check-{stream}' - - 'usecplugin-integration-{stream}' - 'usecplugin-sonar' - - 'usecplugin-clm-{stream}' - - 'usecplugin-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'usecplugin' + mvn-settings: 'usecplugin-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'openflowplugin-merge-{stream},odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[usecplugin] [openflowplugin] [odlparent] [controller] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'usecplugin-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: 'usecplugin-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: 'usecplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[usecplugin]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'usecplugin-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: 'usecplugin-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: 'usecplugin-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'usecplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'usecplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[usecplugin]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'usecplugin-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'openflowplugin-merge-{stream},odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'usecplugin-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: 'usecplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[usecplugin] [openflowplugin] [odlparent] [controller] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'usecplugin-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'usecplugin-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'usecplugin-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'usecplugin-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: usecplugin - - publishers: - - email-notification: - email-prefix: '[usecplugin]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'usecplugin-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'usecplugin' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [usecplugin]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/vpnservice/vpnservice-csit-vpnservice.yaml b/jjb/vpnservice/vpnservice-csit-vpnservice.yaml index 11afa6102..89df3ab39 100644 --- a/jjb/vpnservice/vpnservice-csit-vpnservice.yaml +++ b/jjb/vpnservice/vpnservice-csit-vpnservice.yaml @@ -29,7 +29,6 @@ scope: 'all' # Mininet configuration - mininet-image: 'rk-f21-mininet' mininet-vms: 2 # Features to install diff --git a/jjb/vpnservice/vpnservice.yaml b/jjb/vpnservice/vpnservice.yaml index b81aa8553..05b3af15b 100644 --- a/jjb/vpnservice/vpnservice.yaml +++ b/jjb/vpnservice/vpnservice.yaml @@ -6,15 +6,15 @@ - project: name: vpnservice jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'vpnservice-verify-{stream}' - 'vpnservice-merge-{stream}' - - 'vpnservice-periodic-{stream}' - - 'vpnservice-distribution-{stream}' - - 'vpnservice-distribution-check-{stream}' - - 'vpnservice-integration-{stream}' - 'vpnservice-sonar' - - 'vpnservice-clm-{stream}' - - 'vpnservice-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'vpnservice' + mvn-settings: 'vpnservice-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream},neutron-merge-{stream}' + email-upstream: '[vpnservice] [controller] [yangtools] [odlparent] [openflowplugin] [neutron]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'vpnservice-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: 'vpnservice-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: 'vpnservice-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[vpnservice]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'vpnservice-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: 'vpnservice-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: 'vpnservice-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'vpnservice-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'vpnservice-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[vpnservice]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'vpnservice-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream},neutron-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'vpnservice-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: 'vpnservice-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[vpnservice] [controller] [yangtools] [odlparent] [openflowplugin] [neutron]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'vpnservice-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'vpnservice-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'vpnservice-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'vpnservice-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: vpnservice - - publishers: - - email-notification: - email-prefix: '[vpnservice]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'vpnservice-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'vpnservice' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [vpnservice]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/vtn/vtn.yaml b/jjb/vtn/vtn.yaml index 70b05aefa..a277e358a 100644 --- a/jjb/vtn/vtn.yaml +++ b/jjb/vtn/vtn.yaml @@ -6,15 +6,15 @@ - project: name: vtn jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'vtn-verify-{stream}' - 'vtn-merge-{stream}' - - 'vtn-periodic-{stream}' - - 'vtn-distribution-{stream}' - - 'vtn-distribution-check-{stream}' - - 'vtn-integration-{stream}' - 'vtn-sonar' - - 'vtn-clm-{stream}' - - 'vtn-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'vtn' + mvn-settings: 'vtn-settings' + mvn-goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},mdsal-merge-{stream},neutron-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream},ovsdb-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[vtn] [controller] [mdsal] [neutron] [odlparent] [openflowplugin] [ovsdb] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -80,12 +85,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -150,12 +154,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -239,309 +242,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'vtn-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: 'vtn-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'vtn-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[vtn]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'vtn-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: 'vtn-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: 'vtn-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'vtn-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'vtn-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[vtn]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'vtn-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},mdsal-merge-{stream},neutron-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream},ovsdb-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'vtn-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: 'vtn-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[vtn] [controller] [mdsal] [neutron] [odlparent] [openflowplugin] [ovsdb] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'vtn-sonar' disabled: false @@ -557,8 +257,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -603,167 +306,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'vtn-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'vtn-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'vtn-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: vtn - - publishers: - - email-notification: - email-prefix: '[vtn]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'vtn-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'vtn' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [vtn]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/yang-push/yang-push.yaml b/jjb/yang-push/yang-push.yaml index a1115bf8c..4d15e9705 100644 --- a/jjb/yang-push/yang-push.yaml +++ b/jjb/yang-push/yang-push.yaml @@ -6,15 +6,15 @@ - project: name: yang-push jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'yang-push-verify-{stream}' - 'yang-push-merge-{stream}' - - 'yang-push-periodic-{stream}' - - 'yang-push-distribution-{stream}' - - 'yang-push-distribution-check-{stream}' - - 'yang-push-integration-{stream}' - 'yang-push-sonar' - - 'yang-push-clm-{stream}' - - 'yang-push-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -37,6 +37,11 @@ disable_distribution_check: False project: 'yang-push' + mvn-settings: 'yang-push-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}' + email-upstream: '[yang-push] [controller] [yangtools] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -73,12 +78,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -143,12 +147,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -232,309 +235,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'yang-push-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: 'yang-push-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: 'yang-push-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[yang-push]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'yang-push-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: 'yang-push-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: 'yang-push-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'yang-push-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'yang-push-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[yang-push]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'yang-push-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'yang-push-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: 'yang-push-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[yang-push] [controller] [yangtools] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'yang-push-sonar' disabled: false @@ -550,8 +250,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -596,167 +299,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'yang-push-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'yang-push-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'yang-push-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: yang-push - - publishers: - - email-notification: - email-prefix: '[yang-push]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'yang-push-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'yang-push' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [yang-push]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/yangide/yangide.yaml b/jjb/yangide/yangide.yaml index f7f73c767..99494394e 100644 --- a/jjb/yangide/yangide.yaml +++ b/jjb/yangide/yangide.yaml @@ -6,15 +6,15 @@ - project: name: yangide jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'yangide-verify-{stream}' - 'yangide-merge-{stream}' - - 'yangide-periodic-{stream}' - - 'yangide-distribution-{stream}' - - 'yangide-distribution-check-{stream}' - - 'yangide-integration-{stream}' - 'yangide-sonar' - - 'yangide-clm-{stream}' - - 'yangide-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -29,6 +29,11 @@ disable_distribution_check: True project: 'yangide' + mvn-settings: 'yangide-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream},yangtools-merge-{stream}' + email-upstream: '[yangide] [odlparent] [yangtools]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -65,12 +70,11 @@ daysToKeep: '14' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -135,12 +139,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -224,309 +227,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'yangide-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: 'yangide-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: 'yangide-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[yangide]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'yangide-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: 'yangide-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: 'yangide-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'yangide-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'yangide-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[yangide]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'yangide-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream},yangtools-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'yangide-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: 'yangide-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[yangide] [odlparent] [yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'yangide-sonar' disabled: false @@ -542,8 +242,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -588,167 +291,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'yangide-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'yangide-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'yangide-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: yangide - - publishers: - - email-notification: - email-prefix: '[yangide]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'yangide-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'yangide' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [yangide]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/jjb/yangtools/yangtools-verify.yaml b/jjb/yangtools/yangtools-verify.yaml index a8d941e0f..4df26fadc 100644 --- a/jjb/yangtools/yangtools-verify.yaml +++ b/jjb/yangtools/yangtools-verify.yaml @@ -76,12 +76,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: diff --git a/jjb/yangtools/yangtools.cfg b/jjb/yangtools/yangtools.cfg index 6f5844763..a0ba397bf 100644 --- a/jjb/yangtools/yangtools.cfg +++ b/jjb/yangtools/yangtools.cfg @@ -12,4 +12,4 @@ STREAMS: jdks: openjdk7,openjdk8 distribution-check: false DEPENDENCIES: odlparent -JOB_TEMPLATES: merge,periodic,distribution,distribution-check,integration,sonar +JOB_TEMPLATES: merge,sonar diff --git a/jjb/yangtools/yangtools.yaml b/jjb/yangtools/yangtools.yaml index f13e63421..00f571d3f 100644 --- a/jjb/yangtools/yangtools.yaml +++ b/jjb/yangtools/yangtools.yaml @@ -6,14 +6,14 @@ - project: name: yangtools jobs: + - '{name}-clm-{stream}' + - '{name}-distribution-{stream}' + - '{name}-distribution-check-{stream}' + - '{name}-integration-{stream}' + - '{name}-periodic-{stream}' + - '{name}-validate-autorelease-{stream}' - 'yangtools-merge-{stream}' - - 'yangtools-periodic-{stream}' - - 'yangtools-distribution-{stream}' - - 'yangtools-distribution-check-{stream}' - - 'yangtools-integration-{stream}' - 'yangtools-sonar' - - 'yangtools-clm-{stream}' - - 'yangtools-validate-autorelease-{stream}' # stream: release stream (eg. stable-lithium or beryllium) @@ -44,6 +44,11 @@ disable_distribution_check: True project: 'yangtools' + mvn-settings: 'yangtools-settings' + mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ' + mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m' + dependencies: 'odlparent-merge-{stream}' + email-upstream: '[yangtools] [odlparent]' # For the Job templates below replace instances of: # PROJECT_SHORTNAME with your project name (eg. circuitsw) @@ -74,12 +79,11 @@ artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - - project-parameter: - project: '{project}' - - gerrit-parameters: + - opendaylight-infra-parameters: project: '{project}' branch: '{branch}' refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -163,309 +167,6 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'yangtools-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: 'yangtools-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: 'yangtools-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[yangtools]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'yangtools-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: 'yangtools-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: 'yangtools-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 - - scm: - - integration-gerrit-scm: - basedir: '$GERRIT_PROJECT' - refspec: '$GERRIT_REFSPEC' - branch: '{branch}' - - integration-distribution-scm: - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - 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: '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: '{name}' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - skip-vote: - successful: false - failed: false - unstable: false - notbuilt: false - - prebuilders: - - maven-target: - maven-version: '{mvn33}' - pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' - java-opts: - - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'yangtools-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'distribution/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: 'yangtools-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: - - integration-distribution-check - - publishers: - - email-notification: - email-prefix: '[yangtools]' - - postbuildscript: - builders: - - shell: | - #!/bin/bash - mkdir -p $WORKSPACE/archives - cp karaf*.log $WORKSPACE/archives - script-only-if-succeeded: False - script-only-if-failed: False - mark-unstable-if-failed: True - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'yangtools-integration-{stream}' - disabled: false - - # Job template for ODL integration verify jobs - # - # 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: 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: '{project}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - reverse: - jobs: 'odlparent-merge-{stream}' - result: 'success' - - prebuilders: - - jacoco-nojava-workaround - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'yangtools-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: 'yangtools-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - reporters: - - findbugs - - publishers: - - email-notification: - email-prefix: '[yangtools] [odlparent]' - - jacoco-report - - archive-build: - maven-version: '{mvn33}' - - job-template: name: 'yangtools-sonar' disabled: false @@ -481,8 +182,11 @@ artifactNumToKeep: '1' parameters: - - project-parameter: + - opendaylight-infra-parameters: project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' scm: - git-scm: @@ -527,167 +231,3 @@ - archive-build: maven-version: '{mvn33}' -- job-template: - name: 'yangtools-clm-{stream}' - disabled: false - - project-type: maven - node: dynamic_verify - 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}' - - scm: - - git-scm: - refspec: '' - branch: '{branch}' - - wrappers: - - opendaylight-infra-wrappers: - build-timeout: '{build-timeout}' - - triggers: - - timed: 'H H * * 6' - - prebuilders: - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'yangtools-settings' - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' - maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: 'yangtools-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - postbuilders: - - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: - application-name: yangtools - - publishers: - - email-notification: - email-prefix: '[yangtools]' - - archive-build: - maven-version: '{mvn33}' - -- job-template: - name: 'yangtools-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-parameters: - project: '{project}' - branch: '{branch}' - refspec: 'refs/heads/{branch}' - - autorelease-release-tag: - release-tag: 'validate' - - autorelease-release-branch: - release-branch: '{branch}' - - string: - name: CLONE_URL - default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' - description: "Autorelease clone URL" - - scm: - - git: - url: '$CLONE_URL' - credentials-id: 'opendaylight-jenkins-ssh' - refspec: '' - branches: - - 'origin/{branch}' - skip-tag: true - submodule: - recursive: true - timeout: 60 - - wrappers: - - opendaylight-infra-wrappers: - 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: 'yangtools' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - file-paths: - - compare-type: ANT - pattern: '**/*.xml' - - prebuilders: - - jacoco-nojava-workaround - - autorelease-checkout-gerrit-patch - - autorelease-generate-release-patches - - maven-target: - maven-version: '{mvn33}' - pom: validate-pom.xml - goals: 'clean install -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - - maven: - maven-name: '{mvn33}' - root-pom: 'pom.xml' - goals: 'clean validate -V -B -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' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - automatic-archiving: false - post-step-run-condition: UNSTABLE - - postbuilders: - - autorelease-sys-stats - - publishers: - - email-notification: - email-prefix: '[autorelease] [yangtools]' - - archive-build: - maven-version: '{mvn33}' - diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 09f6d5e3c..000000000 --- a/pom.xml +++ /dev/null @@ -1,206 +0,0 @@ - - - - 4.0.0 - - org.opendaylight.releng.builder - builder-root - 1.0.0-SNAPSHOT - pom - releng/builder - - The Release Engineering - Builder project is targeted at hosting the - scripts and information needed for building up VM images and creating - jobs in Jenkins as well as build pipelines. - - 2014 - http://www.opendaylight.org/releng/builder - - - - Eclipse Public License - http://www.eclipse.org/legal/epl-v10.html - repo - - - - - OpenDaylight - http://www.opendaylight.org/ - - - - - tykeal - Andrew Grimberg - agrimberg@linuxfoundation.org - The Linux Foundation - https://www.linuxfoundation.org/ - - sysadmin - - America/Los_Angeles - - - - zxiiro - Thanh Ha - thanh.ha@linuxfoundation.org - The Linux Foundation - https://www.linuxfoundation.org/ - - releng - - America/New_York - - https://www.opendaylight.org/sites/www.opendaylight.org/files/styles/thumbnail/public/members/logos/thahn-ha.png - - - - - LuisGomez - Luis Gomez - ecelgp@gmail.com - Brocade - https://www.brocade.com/ - - integration - - America/Los_Angeles - - - - - - Vratko Polák - vrpolak@cisco.com - Cisco Systems - http://www.cisco.com/ - - integration - - America/Los_Angeles - - - - - Bugzilla - https://bugs.opendaylight.org/ - - - - Jenkins - https://jenkins.opendaylight.org/releng - - - - - Dev Mailing List - dev-subscribe@lists.opendaylight.org - dev-unsubscribe@lists.opendaylight.org - dev@lists.opendaylight.org - https://lists.opendaylight.org/pipermail/dev/ - - - - - scm:git:https://git.opendaylight.org/gerrit/releng/builder - scm:git:ssh://git.opendaylight.org:29418/releng/builder - https://git.opendaylight.org/gerrit/gitweb?p=releng%2Fbuilder.git;a=summary - - - - - 2.8.2 - 2.5.2 - 3.4 - 2.8 - - - 2.9 - - - - - - org.apache.maven.plugins - maven-install-plugin - ${maven-install-plugin.version} - - true - - - - org.apache.maven.plugins - maven-deploy-plugin - ${maven-deploy-plugin.version} - - true - - - - org.apache.maven.plugins - maven-site-plugin - ${maven-site-plugin.version} - - true - - - - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - ${maven-project-info-reports-plugin.version} - - - - - - - - - stream - - - - - - org.apache.maven.plugins - maven-site-plugin - ${maven-site-plugin.version} - - - org.apache.maven.wagon - wagon-webdav-jackrabbit - ${wagon.version} - - - - false - - - - - - - - - - opendaylight-site - OpenDaylight Site - dav:http://nexus.opendaylight.org/content/sites/site/${project.groupId}/${stream}/ - - - diff --git a/scripts/jjb-init-project.py b/scripts/jjb-init-project.py index 233ff88e5..8b891f18d 100644 --- a/scripts/jjb-init-project.py +++ b/scripts/jjb-init-project.py @@ -58,10 +58,8 @@ if cfg.get("JOB_TEMPLATES"): templates = cfg.get("JOB_TEMPLATES") else: templates = ( - "verify,merge,periodic,distribution,distribution-check,integration," + "verify,merge," "sonar") -templates += ",clm" # ensure we always create a clm job for all projects -templates += ",validate-autorelease" # Autorelease validate template ################## # Handle Streams # diff --git a/src/site/markdown/jenkins.md b/src/site/markdown/jenkins.md deleted file mode 100644 index 143cb250f..000000000 --- a/src/site/markdown/jenkins.md +++ /dev/null @@ -1,863 +0,0 @@ -The [Release Engineering project][0] consolidates the Jenkins jobs from -project-specific VMs to a single Jenkins server. Each OpenDaylight project -has a tab for their jobs on the [RelEng Jenkins server][3]. The system utilizes -[Jenkins Job Builder][11] \(JJB\) for the creation and management of the -Jenkins jobs. - -Sections: - -* [Jenkins Master](#jenkins_master) -* [Build Slaves](#build_slaves) -* [Creating Jenkins Jobs](#creating_jenkins_jobs) - * [Getting Jenkins Job Builder](#jjb) - * [Installing Jenkins Job Builder](#jjb_install) - * [Virtual Environments](#jjb_install_venv) - * [Installing JJB using pip](#jjb_install_pip) - * [Installing JJB Manually](#jjb_install_manual) - * [Jenkins Job Builder Docker Image](#jjb_install_docker) - * [Jenkins Job Templates](#jjb_templates) - * [Jenkins Job Basic Configuration](#jjb_basic_configuration) - * [Jenkins Job Maven Properties](#jjb_maven_properties) -* [Jenkins Sandbox](#jenkins_sandbox) - * [Configuration](#sandbox_config) - * [Manual Method](#jjb_use_manual) - * [Test Jobs](#jjb_manual_test) - * [Push Jobs](#jjb_manual_push) - * [Run Jobs](#jjb_manual_run) - * [Docker Method](#jjb_use_docker) - -# Jenkins Master - -The [Jenkins master server][3] is the home for all project's Jenkins jobs. All -maintenance and configuration of these jobs must be done via JJB through the -[RelEng repo][4]. Project contributors can no longer edit the Jenkins jobs -directly on the server. - -# Build Slaves - -The Jenkins jobs are run on build slaves (executors) which are created on an -as-needed basis. If no idle build slaves are available a new VM is brought -up. This process can take up to 2 minutes. Once the build slave has finished a -job, it will remain online for 45 minutes before shutting down. Subsequent -jobs will use an idle build slave if available. - -Our Jenkins master supports many types of dynamic build slaves. If you are -creating custom jobs then you will need to have an idea of what type of slaves -are available. The following are the current slave types and descriptions. -Slave Template Names are needed for jobs that take advantage of multiple -slaves as they must be specifically called out by template name instead of -label. - -## Adding New Components to the Slaves - -If your project needs something added to one of the slaves used during build -and test you can help us get things added faster by doing one of the following: - -* Submit a patch to RelEng/Builder for the [Jenkins spinup script][5] that - configures your new piece of software. -* Submit a patch to RelEng/Builder for the [Vagrant template's bootstrap.sh][6] - that configures your new piece of software. - -Going the first route will be faster in the short term as we can inspect the -changes and make test modifications in the sandbox to verify that it works. - -The second route, however, is better for the community as a whole as it will -allow others that utilize our Vagrant setups to replicate our systems more -closely. It is, however, more time consuming as an image snapshot needs to be -created based on the updated Vagrant definition before it can be attached to -the sandbox for validation testing. - -In either case, the changes must be validated in the sandbox with tests to -make sure that we don't break current jobs and that the new software features -are operating as intended. Once this is done the changes will be merged and -the updates applied to the RelEng Jenkins production silo. - -Please note that the combination of a Vagrant slave snapshot and a Jenkins -spinup script is what defines a given slave. For instance, a slave may be -defined by the [`releng/builder/vagrant/basic-java-node/`][8] Vagrant definition -and the [`releng/builder/jenkins-script/controller.sh`][9] Jenkins spinup script -(as the dynamic\_controller slave is). The pair provides the full definition of -the realized slave. Jenkins starts a slave using the last-spun Vagrant snapshot -for the specified definition. Once the base Vagrant instance is online Jenkins -checks out the RelEng/Builder repo on it and executes two scripts. The first is -[`basic_settings.sh`][10], which is a baseline for all of the slaves. The second is -the specialized spinup script, which handles any system updates, new software -installs or extra environment tweaks that don't make sense in a snapshot. After -all of these scripts have executed Jenkins will finally attach the slave as an -actual slave and start handling jobs on it. - -### Pool: Rackspace - Docker - - - - - - - - - - - -
Jenkins Label
dynamic_docker
Slave Template name
rk-f20-docker
Vagrant Definition
releng/builder/vagrant/ovsdb-docker
Spinup Script
releng/builder/jenkins-scripts/docker.sh
- A Fedora 20 system that is configured with OpenJDK 1.7 (aka Java7) and - Docker. This system was originally custom built for the test needs of - the OVSDB project but other projects have expressed interest in using - it. -
- -### Pool: Rackspace DFW - - - - - - - - - - - -
Jenkins Label
dynamic_verify
Slave Template name
rk-c-el65-build
Vagrant Definition
releng/builder/vagrant/basic-builder
Spinup Script
releng/builder/jenkins-scripts/builder.sh
- A CentOS 6 build slave. This system has OpenJDK 1.7 (Java7) and OpenJDK - 1.8 (Java8) installed on it along with all the other components and - libraries needed for building any current OpenDaylight project. This is - the label that is used for all basic -verify and -daily- builds for - projects. -
- - - - - - - - - - - -
Jenkins Label
dynamic_merge
Slave Template name
rk-c-el65-build
Vagrant Definition
releng/builder/vagrant/basic-builder
Spinup Script
releng/builder/jenkins-scripts/builder.sh
- See dynamic_verify (same image on the back side). This is the label that - is used for all basic -merge and -integration- builds for projects. -
- -### Pool: Rackspace DFW - Devstack - - - - - - - - - - - -
Jenkins Label
dynamic_devstack
Slave Template name
rk-c7-devstack
Vagrant Definition
releng/builder/vagrant/ovsdb-devstack
Spinup Script
releng/builder/jenkins-scripts/devstack.sh
- A CentOS 7 system purpose built for doing OpenStack testing using - DevStack. This slave is primarily targeted at the needs of the OVSDB - project. It has OpenJDK 1.7 (aka Java7) and other basic DevStack related - bits installed. -
- -### Pool: Rackspace DFW - Integration - - - - - - - - - - - -
Jenkins Label
dynamic_robot
Slave Template name
rk-c-el6-robot
Vagrant Definition
releng/builder/vagrant/integration-robotframework
Spinup Script
releng/builder/jenkins-scripts/robot.sh
- A CentOS 6 slave that is configured with OpenJDK 1.7 (Java7) and all the - current packages used by the integration project for doing robot driven - jobs. If you are executing robot framework jobs then your job should be - using this as the slave that you are tied to. This image does not - contain the needed libraries for building components of OpenDaylight, - only for executing robot tests. -
- -### Pool: Rackspace DFW - Integration Dynamic Lab - - - - - - - - - - - -
Jenkins Label
dynamic_controller
Slave Template name
rk-c-el6-java
Vagrant Definition
releng/builder/vagrant/basic-java-node
Spinup Script
releng/builder/jenkins-scripts/controller.sh
- A CentOS 6 slave that has the basic OpenJDK 1.7 (Java7) installed and is - capable of running the controller, not building. -
- - - - - - - - - - - -
Jenkins Label
dynamic_java
Slave Template name
rk-c-el6-java
Vagrant Definition
releng/builder/vagrant/basic-java-node
Spinup Script
releng/builder/jenkins-scripts/controller.sh
- See dynamic_controller as it is currently the same image. -
- - - - - - - - - - - -
Jenkins Label
dynamic_mininet
Slave Template name
rk-c-el6-mininet
Vagrant Definition
releng/builder/vagrant/basic-mininet-node
Spinup Script
releng/builder/jenkins-scripts/mininet.sh
- A CentOS 6 image that has mininet, openvswitch v2.0.x, netopeer and - PostgreSQL 9.3 installed. This system is targeted at playing the role of - a mininet system for integration tests. Netopeer is installed as it is - needed for various tests by Integration. PostgreSQL 9.3 is installed as - the system is also capable of being used as a VTN project controller and - VTN requires PostgreSQL 9.3. -
- - - - - - - - - - - -
Jenkins Label
dynamic_mininet_fedora
Slave Template name
rk-f21-mininet
Vagrant Definition
releng/builder/vagrant/basic-mininet-fedora-node
Spinup Script
releng/builder/jenkins-scripts/mininet-fedora.sh
- Basic Fedora 21 system with ovs v2.3.x and mininet 2.2.1 -
- - - - - - - - - - - -
Jenkins Label
ubuntu_mininet
Slave Template name
ubuntu-trusty-mininet
Vagrant Definition
releng/builder/vagrant/ubuntu-mininet
Spinup Script
releng/builder/jenkins-scripts/mininet-ubuntu.sh
- Basic Ubuntu system with ovs 2.0.2 and mininet 2.1.0 -
- - - - - - - - - - - -
Jenkins Label
ubuntu_mininet_ovs_23
Slave Template name
ubuntu-trusty-mininet-ovs-23
Vagrant Definition
releng/builder/vagrant/ubuntu-mininet-ovs-23
Spinup Script
releng/builder/jenkins-scripts/mininet-ubuntu.sh
- Basic Ubuntu system with ovs 2.3 and mininet 2.2.1 -
- -### Pool: Rackspace DFW - Matrix - - - - - - - - - - - -
Jenkins Label
matrix_master
Slave Template name
rk-c-el6-matrix
Vagrant Definition
releng/builder/vagrant/basic-java-node
Spinup Script
releng/builder/jenkins-scripts/matrix.sh
- This is a very minimal system that is designed to spin up with 2 build - instances on it. The purpose is to have a location that is not the - Jenkins master itself for jobs that are executing matrix operations - since they need a director location. This image should not be used for - anything but tying matrix jobs before the matrx defined label ties. -
- -# Creating Jenkins Jobs - -Jenkins Job Builder takes simple descriptions of Jenkins jobs in YAML format -and uses them to configure Jenkins. - -* [Jenkins Job Builder][11] \(JJB\) documentation -* [RelEng/Builder Gerrit][12] -* [RelEng/Builder Git repository][13] - -## Getting Jenkins Job Builder - -OpenDaylight uses Jenkins Job Builder to translate our in-repo YAML job -configuration into job descriptions suitable for consumption by Jenkins. -When testing new Jenkins Jobs in the [sandbox](#jenkins_sandbox), you'll -need to use the `jenkins-jobs` executable to translate a set of jobs into -their XML descriptions and upload them to the sandbox Jenkins server. - -We document [installing](#jjb_install) `jenkins-jobs` below. We also provide -a [pre-built Docker image](#jjb_docker) with `jenkins-jobs` already installed. - -### Installing Jenkins Job Builder - -For users who aren't already experienced with Docker or otherwise don't want -to use our [pre-built JJB Docker image](#jjb_docker), installing JJB into a -virtual environment is an equally good option. - -We recommend using [pip](#jjb_install_pip) to assist with JJB installs, but we -also document [installing from a git repository manually](#jjb_install_manual). -For both, we [recommend][17] using [virtual environments](#jjb_install_venv) -to isolate JJB and its dependencies. - -The [`builder/jjb/requirements.txt`][33] file contains the currently -recommended JJB version. Because JJB is fairly unstable, it may be necessary -to debug things by installing different versions. This is documented for both -[pip-assisted](#jjb_install_pip) and [manual](#jjb_install_manual) installs. - -#### Virtual Environments - -For both [pip-assisted](#jjb_install_pip) and [manual](#jjb_install_manual) JJB -installs, we [recommend using virtual environments][17] to manage JJB and its -Python dependencies. The [Virtualenvwrapper][30] tool can help you do so. - -There are good docs for [installing Virtualenvwrapper][31]. On Linux systems -with pip (typical), they amount to: - - sudo pip install virtualenvwrapper - -A virtual environment is simply a directory that you install Python programs -into and then append to the front of your path, causing those copies to be -found before any system-wide versions. - -Create a new virtual environment for JJB. - - # Virtaulenvwrapper uses this dir for virtual environments - $ echo $WORKON_HOME - /home/daniel/.virtualenvs - # Make a new virtual environment - $ mkvirtualenv jjb - # A new venv dir was created - (jjb)$ ls -rc $WORKON_HOME | tail -n 1 - jjb - # The new venv was added to the front of this shell's path - (jjb)$ echo $PATH - /home/daniel/.virtualenvs/jjb/bin: - # Software installed to venv, like pip, is found before system-wide copies - (jjb)$ command -v pip - /home/daniel/.virtualenvs/jjb/bin/pip - -With your virtual environment active, you should install JJB. Your install will -be isolated to that virtual environment's directory and only visible when the -virtual environment is active. - -You can easily leave and return to your venv. Make sure you activate it before -each use of JJB. - - (jjb)$ deactivate - $ command -v jenkins-jobs - # No jenkins-jobs executable found - $ workon jjb - (jjb)$ command -v jenkins-jobs - $WORKON_HOME/jjb/bin/jenkins-jobs - -#### Installing JJB using pip - -The recommended way to install JJB is via pip. - -First, clone the latest version of the [`releng/builder`][4] repo. - - $ git clone https://git.opendaylight.org/gerrit/p/releng/builder.git - -Before actually installing JJB and its dependencies, make sure you've [created -and activated](#jjb_install_venv) a virtual environment for JJB. - - $ mkvirtualenv jjb - -The recommended version of JJB to install is the version specified in the -[`builder/jjb/requirements.txt`][33] file. - - # From the root of the releng/builder repo - (jjb)$ pip install -r jjb/requirements.txt - -To validate that JJB was successfully installed you can run this command: - - (jjb)$ jenkins-jobs --version - -To change the version of JJB specified by [`builder/jjb/requirements.txt`][33] -to install from the latest commit to the master branch of JJB's git repository: - - $ cat jjb/requirements.txt - -e git+https://git.openstack.org/openstack-infra/jenkins-job-builder#egg=jenkins-job-builder - -To install from a tag, like 1.4.0: - - $ cat jjb/requirements.txt - -e git+https://git.openstack.org/openstack-infra/jenkins-job-builder@1.4.0#egg=jenkins-job-builder - -#### Installing JJB Manually - -This section documents installing JJB from its manually cloned repository. - -Note that [installing via pip](#jjb_install_pip) is typically simpler. - -Checkout the version of JJB's source you'd like to build. - -For example, using master: - - $ git clone https://git.openstack.org/openstack-infra/jenkins-job-builder - -Using a tag, like 1.4.0: - - $ git clone https://git.openstack.org/openstack-infra/jenkins-job-builder - $ cd jenkins-job-builder - $ git checkout tags/1.4.0 - -Before actually installing JJB and its dependencies, make sure you've [created -and activated](#jjb_install_venv) a virtual environment for JJB. - - $ mkvirtualenv jjb - -You can then use [JJB's `requirements.txt`][20] file to install its -dependencies. Note that we're not using `sudo` to install as root, since we want -to make use of the venv we've configured for our current user. - - # In the cloned JJB repo, with the desired version of the code checked out - (jjb)$ pip install -r requirements.txt - -Then install JJB from the repo with: - - (jjb)$ pip install . - -To validate that JJB was successfully installed you can run this command: - - (jjb)$ jenkins-jobs --version - -### JJB Docker Image - -[Docker][14] is an open platform used to create virtualized Linux containers -for shipping self-contained applications. Docker leverages LinuX Containers -\(LXC\) running on the same operating system as the host machine, whereas a -traditional VM runs an operating system over the host. - - docker pull zxiiro/jjb-docker - docker run --rm -v ${PWD}:/jjb jjb-docker - -[This Dockerfile][15] created the [zxiiro/jjb-docker image][29]. By default it -will run: - - jenkins-jobs test . - -You'll need to use the `-v/--volume=[]` parameter to mount a directory -containing your YAML files, as well as a configured `jenkins.ini` file if you -wish to upload your jobs to the [sandbox](#jenkins_sandbox). - -## Jenkins Job Templates - -The OpenDaylight [RelEng/Builder][21] project provides [JJB job templates][2] -that can be used to define basic jobs. - -### Verify Job Template - -Trigger: **recheck** - -The Verify job template creates a Gerrit Trigger job that will trigger when a -new patch is submitted to Gerrit. - -Verify jobs can be retriggered in Gerrit by leaving a comment that says -**recheck**. - -### Merge Job Template - -Trigger: **remerge** - -The Merge job template is similar to the Verify Job Template except it will -trigger once a Gerrit patch is merged into the repo. It also automatically -runs the Maven goals **source:jar** and **javadoc:jar**. - -This job will upload artifacts to [OpenDaylight's Nexus][22] on completion. - -Merge jobs can be retriggered in Gerrit by leaving a comment that says -**remerge**. - -### Daily Job Template - -The Daily (or Nightly) Job Template creates a job which will run on a build on -a Daily basis as a sanity check to ensure the build is still working day to -day. - -### Sonar Job Template - -Trigger: **run-sonar** - -This job runs Sonar analysis and reports the results to [OpenDaylight's Sonar -dashboard][23]. - -**Note:** Running the "run-sonar" trigger will cause Jenkins to remove its -existing vote if it's already -1'd or +1'd a comment. You will need to re-run -your verify job (recheck) after running this to get Jenkins to re-vote. - -The Sonar Job Template creates a job which will run against the master branch, -or if BRANCHES are specified in the CFG file it will create a job for the -**First** branch listed. - -### Integration Job Template - -The Integration Job Template creates a job which runs when a project that your -project depends on is successfully built. This job type is basically the same -as a verify job except that it triggers from other Jenkins jobs instead of via -Gerrit review updates. The dependencies that triger integration jobs are listed -in your project.cfg file under the **DEPENDENCIES** variable. - -If no dependencies are listed then this job type is disabled by default. - -### Distribution Test Job - -Trigger: **test-distribution** - -This job builds a distrbution against your patch, passes distribution sanity test -and reports back the results to Gerrit. Leave a comment with trigger keyword above -to activate it for a particular patch. - -This job is maintained by the [Integration/Test][1] project. - -**Note:** Running the "test-distribution" trigger will cause Jenkins to remove -it's existing vote if it's already -1 or +1'd a comment. You will need to -re-run your verify job (recheck) after running this to get Jenkins to put back -the correct vote. - -### Patch Test Job - -Trigger: **test-integration** - -This job runs a full integration test suite against your patch and reports -back the results to Gerrit. Leave a comment with trigger keyword above to activate it -for a particular patch. - -This job is maintained by the [Integration/Test][1] project. - -**Note:** Running the "test-integration" trigger will cause Jenkins to remove -it's existing vote if it's already -1 or +1'd a comment. You will need to -re-run your verify job (recheck) after running this to get Jenkins to put back -the correct vote. - -Some considerations when using this job: - -* The patch test verification takes some time (~2 hours) + consumes a lot of - resources so it is not meant to be used for every patch. -* The system tests for master patches will fail most of the times because both - code and test are unstable during the release cycle (should be good by the - end of the cycle). -* Because of the above, patch test results typically have to be interpreted by - system test experts. The [Integration/Test][1] project can help with that. - - -### Autorelease Validate Job - -Trigger: **revalidate** - -This job runs the PROJECT-validate-autorelease-BRANCH job which is used as a -quick sanity test to ensure that a patch does not depend on features that do -not exist in the current release. - -The **revalidate** trigger is useful in cases where a project's verify job -passed however validate failed due to infra problems or intermittent issues. -It will retrigger just the validate-autorelease job. - -## Basic Job Configuration - -To create jobs based on existing [templates](#jjb_templates), use the -[`jjb-init-project.py`][24] helper script. When run from the root of -[RelEng/Builder's repo][13], it will produce a file in -`jjb//.yaml` containing your project's base template. - - $ python scripts/jjb-init-project.py --help - usage: jjb-init-project.py [-h] [-c CONF] [-d DEPENDENCIES] [-t TEMPLATES] - [-s STREAMS] [-p POM] [-g MVN_GOALS] [-o MVN_OPTS] - [-a ARCHIVE_ARTIFACTS] - project - - positional arguments: - project project - - optional arguments: - -h, --help show this help message and exit - -c CONF, --conf CONF Config file - -d DEPENDENCIES, --dependencies DEPENDENCIES - Project dependencies A comma-seperated (no spaces) - list of projects your project depends on. This is used - to create an integration job that will trigger when a - dependent project-merge job is built successfully. - Example: aaa,controller,yangtools - -t TEMPLATES, --templates TEMPLATES - Job templates to use - -s STREAMS, --streams STREAMS - Release streams to fill with default options - -p POM, --pom POM Path to pom.xml to use in Maven build (Default: - pom.xml - -g MVN_GOALS, --mvn-goals MVN_GOALS - Maven Goals - -o MVN_OPTS, --mvn-opts MVN_OPTS - Maven Options - -a ARCHIVE_ARTIFACTS, --archive-artifacts ARCHIVE_ARTIFACTS - Comma-seperated list of patterns of artifacts to - archive on build completion. See: - http://ant.apache.org/manual/Types/fileset.html - -If all your project requires is the basic verify, merge, and daily jobs then -using the job template should be all you need to configure for your jobs. - -### Auto-Update Job Templates - -The first line of the job YAML file produced by the [init script][24] will -contain the words `# REMOVE THIS LINE IF...`. Leaving this line will allow the -RelEng/Builder [auto-update script][25] to maintain this file for your project, -should the base templates ever change. It is a good idea to leave this line if -you do not plan to create any complex jobs outside of the provided template. - -However, if your project needs more control over your jobs or if you have any -additional configuration outside of the standard configuration provided by the -template, then this line should be removed. - -#### Tuning Templates - -Allowing the auto-updated to manage your templates doesn't prevent you from -doing some configuration changes. Parameters can be passed to templates via -a `.cfg` in your `builder/jjb/` directory. An example is -provided below, others can be found in the repos of other projects. Tune as -necessary. Unnecessary paramaters can be removed or commented out with a "#" -sign. - - JOB_TEMPLATES: verify,merge,sonar - STREAMS: - - beryllium: - branch: master - jdks: openjdk7,openjdk8 - autorelease: true - - stable-lithium: - branch: stable/lithium - jdks: openjdk7 - POM: dfapp/pom.xml - MVN_GOALS: clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo - MVN_OPTS: -Xmx1024m -XX:MaxPermSize=256m - DEPENDENCIES: aaa,controller,yangtools - ARCHIVE_ARTIFACTS: *.logs, *.patches - -Note: [STREAMS][26] is a list of branches you want JJB to generate jobs for. -The first branch will be the branch that reports Sonar analysis. Each branch -must define a "jdks:" section listing the JDKs the verify jobs should run tests -against for the branch. The first JDK listed will be used as the default JDK -for non-verify type jobs. - -Note: Projects that are participating in the simultanious release should set -"autorelease: true" under the streams they are participating in autorelease -for. This enables a new job type validate-autorelease which is used to help -identify if Gerrit patches might break autorelease or not. - -#### Advanced - -It is also possible to take advantage of both the auto-updater and creating -your own jobs. To do this, create a YAML file in your project's sub-directory -with any name other than \.yaml. The auto-update script will only -search for files with the name \.yaml. The normal \.yaml -file can then be left in tact with the "# REMOVE THIS LINE IF..." comment so -it will be automatically updated. - -## Maven Properties - -We provide a properties which your job can take advantage of if you want to do -something different depending on the job type that is run. If you create a -profile that activates on a property listed blow. The JJB templated jobs will -be able to activate the profile during the build to run any custom code you -wish to run in your project. - - -Dmerge : This flag is passed in our Merge job and is equivalent to the - Maven property - true. - -Dsonar : This flag is passed in our Sonar job and is equivalent to the - Maven property - true. - -# Jenkins Sandbox - -The [sandbox instance][27]'s purpose is to allow projects to test their JJB -setups before merging their code over to the RelEng master silo. It is -configured similarly to the master instance, although it cannot publish -artifacts or vote in Gerrit. - -If your project requires access to the sandbox please open an OpenDaylight -Helpdesk ticket () and provide your ODL ID. - -## Notes Regarding the Sandbox - -* Jobs are automatically deleted every Saturday at 08:00 UTC -* Committers can login and configure Jenkins jobs in the sandbox directly - (unlike with the master silo) -* Sandbox configuration mirrors the master silo when possible -* Sandbox jobs can NOT upload artifacts to Nexus -* Sandbox jobs can NOT vote on Gerrit - -## Configuration - -Make sure you have Jenkins Job Builder [properly installed](#jjb_install). - -If you do not already have access, open an OpenDaylight Helpdesk ticket -() to request access to ODL's sandbox instance. -[Integration/Test][1] committers have access by default. - -JJB reads user-specific configuration from a [`jenkins.ini` file][7]. An -example is provided at [`builder/jenkins.ini.example`][28]. - - # If you don't have RelEng/Builder's repo, clone it - $ git clone https://git.opendaylight.org/gerrit/p/releng/builder.git - # Make a copy of the example JJB config file (in the builder/ directory) - $ cp jenkins.ini.example jenkins.ini - # Edit jenkins.ini with your username, API token and ODL's sandbox URL - $ cat jenkins.ini - - [jenkins] - user= - password= - url=https://jenkins.opendaylight.org/sandbox - - -To get your API token, [login to the Jenkins **sandbox** instance][32] (_not -the main master Jenkins instance, different tokens_), go to your user page (by -clicking on your username, for example), click "Configure" and then "Show API -Token". - -## Manual Method - -If you [installed JJB locally into a virtual environment](#jjb_install), -you should now activate that virtual environment to access the `jenkins-jobs` -executable. - - $ workon jjb - (jjb)$ - -You'll want to work from the root of the RelEng/Builder repo, and you should -have your `jenkins.ini` file [properly configured](#sandbox_config). - -### Testing Jobs - -It's good practice to use the `test` command to validate your JJB files before -pushing them. - - jenkins-jobs --conf jenkins.ini test jjb/ - -If the job you'd like to test is a template with variables in its name, it -must be manually expanded before use. For example, the commonly used template -`{project}-csit-verify-1node-{functionality}` might expand to -`ovsdb-csit-verify-1node-netvirt`. - - jenkins-jobs --conf jenkins.ini test jjb/ ovsdb-csit-verify-1node-netvirt - -Successful tests output the XML description of the Jenkins job described by -the specified JJB job name. - -### Pushing Jobs - -Once you've [configured your `jenkins.ini`](#sandbox_config) and [verified your -JJB jobs](#jjb_manual_test) produce valid XML descriptions of Jenkins jobs you -can push them to the Jenkins sandbox. - -> _**Important Note:** When pushing with `jenkins-jobs`, a log message with -> the number of jobs you're pushing will be issued, typically to stdout. -> **If the number is greater than 1** (or the number of jobs you passed to -> the command to push) then you are pushing too many jobs and should **`ctrl+c` -> to cancel the upload**. Else you will flood the system with jobs._ - -> INFO:jenkins_jobs.builder:Number of jobs generated: 1 - -> _**Failing to provide the final `` param will push all jobs!**_ - - # Don't push all jobs by omitting the final param! (ctrl+c to abort) - jenkins-jobs --conf jenkins.ini update jjb/ - -### Running Jobs - -Once you have your Jenkins job configuration [pushed to the -Sandbox](#jjb_manual_push) you can trigger it to run. - -Find your newly-pushed job on the [Sandbox's web UI][27]. Click on its name to -see the job's details. - -Make sure you're [logged in][32] to the Sandbox. - -Click "Build with Parameters" and then "Build". - -Wait for your job to be scheduled and run. Click on the job number to see -details, including console output. - -Make changes to your JJB configuration, re-test, re-push and re-run until -your job is ready. - -## Docker Method - -If [using Docker](#jjb_install_docker): - - # To test - docker run --rm -v ${PWD}:/jjb zxiiro/jjb-docker - -> _**Important Note:** When pushing with `jenkins-jobs`, a log message with -> the number of jobs you're pushing will be issued, typically to stdout. -> **If the number is greater than 1** (or the number of jobs you passed to -> the command to push) then you are pushing too many jobs and should **`ctrl+c` -> to cancel the upload**. Else you will flood the system with jobs._ - -> INFO:jenkins_jobs.builder:Number of jobs generated: 1 - -> _**Failing to provide the final `` param will push all jobs!**_ - - # To upload jobs to the sandbox - # Please ensure that you include a configured jenkins.ini in your volume mount - # Making sure not to push more jobs than expected, ctrl+c to abort - docker run --rm -v ${PWD}:/jjb zxiiro/jjb-docker jenkins-jobs --conf jenkins.ini update . openflowplugin-csit-periodic-1node-cds-longevity-only-master - -[0]: https://wiki.opendaylight.org/view/RelEng:Main "ODL RelEng parent project wiki" -[1]: https://wiki.opendaylight.org/view/Integration/Test "ODL Integration/Test wiki" -[2]: https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=tree;f=jenkins-scripts;h=371193b89f418de2ca0ffcb78be4a2d8046701ae;hb=refs/heads/master "JJB Templates Directory" -[3]: https://jenkins.opendaylight.org/releng "RelEng Jenkins" -[4]: https://git.opendaylight.org/gerrit/gitweb?p=releng%2Fbuilder.git;a=summary "RelEng/Builder gitweb" -[5]: https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=tree;f=jenkins-scripts;h=69252dd61ece511bd2018039b40e7836a8d49d21;hb=HEAD "Directory of Jenkins slave spinup scripts" -[6]: https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=tree;f=vagrant;h=409a2915d48bbdeea9edc811e1661ae17ca28280;hb=HEAD "Directory of Jenkins slave Vagrant definitions" -[7]: http://docs.openstack.org/infra/jenkins-job-builder/execution.html#configuration-file "JJB config file docs" -[8]: https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=tree;f=vagrant/basic-java-node;h=7197b26b747deba38c08f30a569c233fd9636d72;hb=HEAD "Example Jenkins slave Vagrant defition" -[9]: https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=blob;f=jenkins-scripts/controller.sh;h=893a04118a9bd9c55ae2a4a6af833fa089e0e0b4;hb=HEAD "Jenkins spinup script specialized for a slave" -[10]: https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=blob;f=jenkins-scripts/basic_settings.sh;h=9f6d2a89948d0a25a8a4a24102630ada494e8623;hb=HEAD "Jenkins spinup script common to all slaves" -[11]: http://ci.openstack.org/jenkins-job-builder/ "JJB docs" -[12]: https://git.opendaylight.org/gerrit/#/admin/projects/releng/builder "ODL RelEng/Builder Gerrit" -[13]: https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=summary "ODL RelEng/Builder repo" -[14]: https://www.docker.com/whatisdocker/ "Docker docs" -[15]: https://github.com/zxiiro/jjb-docker/blob/master/Dockerfile "Custom ODL JJB Dockerfile" -[16]: https://github.com/openstack-infra/jenkins-job-builder "JJB repo" -[17]: https://lists.opendaylight.org/pipermail/integration-dev/2015-April/003016.html "Recommendation to use venvs" -[18]: https://virtualenv.readthedocs.org/en/latest/ "Virtualenv docs" -[19]: http://virtualenv.readthedocs.org/en/latest/installation.html "Virtualenv install docs" -[20]: https://github.com/openstack-infra/jenkins-job-builder/blob/master/requirements.txt "JJB Python dependencies" -[21]: https://wiki.opendaylight.org/view/RelEng/Builder "ODL RelEng/Builder wiki" -[22]: https://nexus.opendaylight.org "OpenDaylight's Nexus portal" -[23]: https://sonar.opendaylight.org "OpenDaylight's Sonar portal" -[24]: https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=blob;f=scripts/jjb-init-project.py;h=2133475a4ff9e1f4b18cc288654a4dc050bf808f;hb=refs/heads/master "JJB project config init helper script" -[25]: https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=blob;f=scripts/jjb-autoupdate-project.py;h=56769bdb7ad5149404f4f50923f4d10af98d8248;hb=refs/heads/master "JJB project config auto-update helper script" -[26]: https://lists.opendaylight.org/pipermail/release/2015-July/003139.html "STREAMS vs BRANCHES design background" -[27]: https://jenkins.opendaylight.org/sandbox/ "OpenDaylight JJB Sandbox" -[28]: https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=blob;f=jenkins.ini.example;h=c8486f89af99741f4706c23cd6717df9b417ae10;hb=refs/heads/master "JJB sandbox user config example" -[29]: https://hub.docker.com/r/zxiiro/jjb-docker/ "Custom JJB Docker image" -[30]: https://virtualenvwrapper.readthedocs.org/en/latest/ "Virtualenvwrapper docs" -[31]: https://virtualenvwrapper.readthedocs.org/en/latest/install.html "Virtualenvwrapper install docs" -[32]: https://jenkins.opendaylight.org/sandbox/login "ODL Jenkins sandbox login" -[33]: https://git.opendaylight.org/gerrit/gitweb?p=releng/builder.git;a=blob;f=jjb/requirements.txt;h=0a4df2c2a575eb10d3abddb0fb2f4d048645e378;hb=refs/heads/master "ODL JJB requirements.txt file" diff --git a/src/site/markdown/releasing.md b/src/site/markdown/releasing.md deleted file mode 100644 index cce165018..000000000 --- a/src/site/markdown/releasing.md +++ /dev/null @@ -1,35 +0,0 @@ -# Releasing Workflow - -This page documents the workflow for releasing for projects that are not built -and released via the Autorelease project. - -## Workflow - -OpenDaylight uses Nexus as it's artifact repository for releasing artifacts to -the world. The workflow involves using Nexus to produce a staging repository -which can be tested and reviewed before being approved to copy to the final -destination opendaylight.release repo. The workflow in general is as follows: - -1. Project create release tag and push to Gerrit -2. Project will contact helpdesk@opendaylight.org with project name and build - tag to produce a release candidate / staging repo -3. Helpdesk will run a build and notify project of staging repo location -4. Project tests staging repo and notifies Helpdesk with go ahead to release -5. Helpdesk clicks Release repo button in Nexus -6. (optional) Helpdesk runs Jenkins job to push update-site.zip to p2repos - sites repo - -Step 6 is only necessary for Eclipse projects that need to additionally deploy -an update site to a webserver. - -## Release Job - -There is a JJB template release job which should be used for a project if the -project needs to produce a staging repo for release. The supported Job types -are listed below, use the one relevant to your project. - -**Maven|Java** {name}-release-java -- this job type will produce a staging repo -in Nexus for Maven projects. - -**P2 Publisher** {name}-publish-p2repo -- this job type is useful for projects -that produce a p2 repo that needs to be published to a special URL. diff --git a/src/site/site.xml b/src/site/site.xml deleted file mode 100644 index d790e3ac9..000000000 --- a/src/site/site.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - OpenDaylight - https://www.opendaylight.org/sites/all/themes/odl2/logo.png - https://www.opendaylight.org/ - 457 - - - - - - - - - - - - - - org.apache.maven.skins - maven-fluido-skin - 1.4 - -