X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-templates.yaml;h=dae67aca90f5316c8fd5a9e718d95bfab5333ec5;hb=c7321202e8b0d5f17234a0e4ebbdeaba253dec7c;hp=cda45b3da52ff334175458b0c8ab5b2cf1dbede9;hpb=c1c5b313ad2d03ee572a60a533711a01d1eccef8;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml index cda45b3da..dae67aca9 100644 --- a/jjb/integration/integration-templates.yaml +++ b/jjb/integration/integration-templates.yaml @@ -1,58 +1,218 @@ +# Job templates in this file (please update with every new template): +# +# Old templates: +# {project}-csit-verify-1node-{functionality}-{stream} +# {project}-csit-1node-imds-{functionality}-{install}-{stream} +# +# New (for Be release): +# {project}-csit-verify-1node-{functionality} +# {project}-csit-1node-{functionality}-{install}-{stream} +# {project}-csit-1node-periodic-{functionality}-{install}-{stream} +# {project}-csit-verify-3node-{functionality} +# {project}-csit-3node-{functionality}-{install}-{stream} +# {project}-csit-3node-periodic-{functionality}-{install}-{stream} +# +# Parameters: +# +# project-parameter: main project integration/test ($PROJECT) +# integration-branch: distribution branch ($BRANCH) +# integration-controller-bundleurl: distribution URL ($BUNDLEURL) +# integration-controller-scope: only or all features ($CONTROLLERSCOPE) +# integration-controller-features: features under test ($CONTROLLER FEATURES) +# integration-test-options: robot options ($TESTOPTIONS) +# integration-test-plan: robot test plan ($TESTPLAN) +# integration-patch-refspec: test branch ($PATCHREFSPEC) + + + +# Old templates + - job-template: - name: '{project}-distribution-{stream}' + name: '{project}-csit-verify-1node-{functionality}-{stream}' - project-type: maven - node: dynamic_merge - jdk: '{jdk}' + project-type: freestyle + node: dynamic_robot logrotate: daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' + artifactNumToKeep: '{build-num-to-keep}' parameters: - project-parameter: - project: 'integration' + project: 'integration/test' + - integration-branch: + branch: 'master' + - integration-bundleurl: + bundleurl: 'last' + - integration-controller-scope: + controller-scope: 'only' + - integration-controller-features: + controller-features: '{install-features}' + - integration-test-options: + test-options: '{robot-options}' + - integration-test-plan: + test-plan: '{project}-{functionality}.txt' + - integration-jdk-version: + jdkversion: 'openjdk7' scm: - - git-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - refspec: '' + basedir: 'test' + refspec: '$GERRIT_REFSPEC' + branch: 'master' + + wrappers: + - build-timeout + - integration-jclouds-controller-mininet: + controller-vms: 1 + mininet-image: '{mininet-image}' + mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' + - ssh-agent-credentials: + users: + - '{ssh-credentials}' + + triggers: + - integration-trigger-patch-submitted: + name: 'integration/test' branch: '{branch}' + pattern: 'csit/suites/{project}/**' + + builders: + - integration-cleanup-workspace + - integration-install-robotframework + - inject: + properties-file: 'env.properties' + - integration-get-slave-addresses + - inject: + properties-file: 'slave_addresses.txt' + - integration-get-bundle-vars + - inject: + properties-file: 'bundle_vars.txt' + - integration-deploy-controller-run-test + - integration-cleanup-tmp + + publishers: + - integration-robot: + unstable-if: 0.0 + pass-if: 100.0 + - archive: + artifacts: 'karaf.log*' + - email-notification: + email-prefix: '[{project}]' + +- job-template: + name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}' + + project-type: freestyle + node: dynamic_robot + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-num-to-keep}' + + parameters: + - project-parameter: + project: 'integration/test' + - integration-branch: + branch: '{branch}' + - integration-bundleurl: + bundleurl: 'last' + - integration-controller-scope: + controller-scope: '{scope}' + - integration-controller-features: + controller-features: '{install-features}' + - integration-test-options: + test-options: '{robot-options}' + - integration-test-plan: + test-plan: '{project}-{functionality}.txt' + - integration-patch-refspec: + branch: 'stable/helium' + - integration-jdk-version: + jdkversion: 'openjdk7' + + scm: + - integration-gerrit-scm: + credentials-id: '{ssh-credentials}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' wrappers: - build-timeout + - integration-jclouds-controller-mininet: + controller-vms: 1 + mininet-image: '{mininet-image}' + mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' - ssh-agent-credentials: users: - '{ssh-credentials}' triggers: - reverse: - jobs: '{project}-merge-{stream}' + jobs: '{trigger-jobs}' result: 'success' - prebuilders: - - wipe-org-opendaylight-repo - - maven: - maven-name: '{mvn32}' - root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install source:jar javadoc:jar' - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' - settings: '{integration-settings}' - global-settings: '{odl-global-settings}' + builders: + - integration-cleanup-workspace + - integration-install-robotframework + - inject: + properties-file: 'env.properties' + - integration-get-slave-addresses + - inject: + properties-file: 'slave_addresses.txt' + - integration-get-bundle-vars + - inject: + properties-file: 'bundle_vars.txt' + - integration-deploy-controller-run-test + - integration-cleanup-tmp publishers: + - integration-robot: + unstable-if: 0.0 + pass-if: 100.0 + - archive: + artifacts: 'karaf.log*' - email-notification: email-prefix: '[{project}]' - - maven-deploy: - id: '' - unique-version: true - deploy-unstable: false + - plot: + - title: '{01-plot-title}' + yaxis: '{01-plot-yaxis}' + group: '{01-plot-group}' + num-builds: '5400' + style: line + use-description: false + csv-file-name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv' + keep-records: true + series: + - file: '{01-plot-data-file}' + inclusion-flag: 'off' + display-table: true + format: csv + - title: '{02-plot-title}' + yaxis: '{02-plot-yaxis}' + group: '{02-plot-group}' + num-builds: '5400' + style: line + use-description: false + csv-file-name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv' + keep-records: true + series: + - file: '{02-plot-data-file}' + inclusion-flag: 'off' + display-table: true + format: csv + +# New templates - job-template: - name: '{project}-csit-verify-{functionality}-{stream}' + name: '{project}-csit-verify-1node-{functionality}' project-type: freestyle node: dynamic_robot @@ -61,13 +221,13 @@ daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' + artifactNumToKeep: '{build-num-to-keep}' parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: - branch: '{branch}' + branch: 'master' - integration-bundleurl: bundleurl: 'last' - integration-controller-scope: @@ -78,45 +238,58 @@ test-options: '{robot-options}' - integration-test-plan: test-plan: '{project}-{functionality}.txt' + - integration-jdk-version: + jdkversion: 'openjdk7' scm: - - gerrit-trigger-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' + basedir: 'test' refspec: '$GERRIT_REFSPEC' - choosing-strategy: 'gerrit' + branch: 'master' wrappers: - build-timeout - integration-jclouds-controller-mininet: controller-vms: 1 - mininet-vms: 1 + mininet-image: '{mininet-image}' + mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' - ssh-agent-credentials: users: - '{ssh-credentials}' triggers: - - integration-test-gerrit-trigger-patch-submitted: - name: 'integration' - branch: '{branch}' - project: '{project}' + - integration-trigger-patch-submitted: + name: 'integration/test' + branch: 'master' + pattern: 'csit/suites/{project}/**' builders: + - integration-cleanup-workspace + - integration-install-robotframework + - inject: + properties-file: 'env.properties' - integration-get-slave-addresses - inject: properties-file: 'slave_addresses.txt' + - integration-get-bundle-vars + - inject: + properties-file: 'bundle_vars.txt' - integration-deploy-controller-run-test + - integration-cleanup-tmp publishers: - integration-robot: - unstable-if: 95.0 - pass-if: 95.0 + unstable-if: 0.0 + pass-if: 100.0 - archive: - artifacts: 'karaf.log' + artifacts: 'karaf.log*' - email-notification: email-prefix: '[{project}]' - job-template: - name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}' + name: '{project}-csit-1node-{functionality}-{install}-{stream}' project-type: freestyle node: dynamic_robot @@ -125,11 +298,11 @@ daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' + artifactNumToKeep: '{build-num-to-keep}' parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: branch: '{branch}' - integration-bundleurl: @@ -142,18 +315,25 @@ test-options: '{robot-options}' - integration-test-plan: test-plan: '{project}-{functionality}.txt' + - integration-patch-refspec: + branch: 'master' + - integration-jdk-version: + jdkversion: 'openjdk7' scm: - - git-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - refspec: '' - branch: '{branch}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' wrappers: - build-timeout - integration-jclouds-controller-mininet: controller-vms: 1 - mininet-vms: 1 + mininet-image: '{mininet-image}' + mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' - ssh-agent-credentials: users: - '{ssh-credentials}' @@ -164,27 +344,35 @@ result: 'success' builders: + - integration-cleanup-workspace + - integration-install-robotframework + - inject: + properties-file: 'env.properties' - integration-get-slave-addresses - inject: properties-file: 'slave_addresses.txt' + - integration-get-bundle-vars + - inject: + properties-file: 'bundle_vars.txt' - integration-deploy-controller-run-test + - integration-cleanup-tmp publishers: - integration-robot: - unstable-if: 95.0 + unstable-if: 0.0 pass-if: 100.0 - archive: - artifacts: 'karaf.log' + artifacts: 'karaf.log*' - email-notification: email-prefix: '[{project}]' - plot: - title: '{01-plot-title}' yaxis: '{01-plot-yaxis}' group: '{01-plot-group}' - num-builds: '' + num-builds: '5400' style: line use-description: false - csv-file-name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv' + csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv' series: - file: '{01-plot-data-file}' inclusion-flag: 'off' @@ -193,10 +381,10 @@ - title: '{02-plot-title}' yaxis: '{02-plot-yaxis}' group: '{02-plot-group}' - num-builds: '' + num-builds: '5400' style: line use-description: false - csv-file-name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv' + csv-file-name: '{project}-csit-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv' series: - file: '{02-plot-data-file}' inclusion-flag: 'off' @@ -204,7 +392,7 @@ format: csv - job-template: - name: '{project}-csit-1node-cds-{functionality}-{install}-{stream}' + name: '{project}-csit-1node-periodic-{functionality}-{install}-{stream}' project-type: freestyle node: dynamic_robot @@ -213,11 +401,11 @@ daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' + artifactNumToKeep: '{build-num-to-keep}' parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: branch: '{branch}' - integration-bundleurl: @@ -230,18 +418,204 @@ test-options: '{robot-options}' - integration-test-plan: test-plan: '{project}-{functionality}.txt' + - integration-patch-refspec: + branch: 'master' + - integration-jdk-version: + jdkversion: 'openjdk7' + + scm: + - integration-gerrit-scm: + credentials-id: '{ssh-credentials}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' + + wrappers: + - integration-jclouds-controller-mininet: + controller-vms: 1 + mininet-image: '{mininet-image}' + mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' + - ssh-agent-credentials: + users: + - '{ssh-credentials}' + + triggers: + - timed: '{schedule}' + + builders: + - integration-cleanup-workspace + - integration-install-robotframework + - inject: + properties-file: 'env.properties' + - integration-get-slave-addresses + - inject: + properties-file: 'slave_addresses.txt' + - integration-get-bundle-vars + - inject: + properties-file: 'bundle_vars.txt' + - integration-deploy-controller-run-test + - integration-cleanup-tmp + + publishers: + - integration-robot: + unstable-if: 0.0 + pass-if: 100.0 + - archive: + artifacts: '*.log,karaf.log*' + - email-notification: + email-prefix: '[{project}]' + - plot: + - title: '{01-plot-title}' + yaxis: '{01-plot-yaxis}' + group: '{01-plot-group}' + num-builds: '180' + style: line + use-description: false + csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv' + series: + - file: '{01-plot-data-file}' + inclusion-flag: 'off' + display-table: true + format: csv + - title: '{02-plot-title}' + yaxis: '{02-plot-yaxis}' + group: '{02-plot-group}' + num-builds: '180' + style: line + use-description: false + csv-file-name: '{project}-csit-periodic-1node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv' + series: + - file: '{02-plot-data-file}' + inclusion-flag: 'off' + display-table: true + format: csv + +- job-template: + name: '{project}-csit-verify-3node-{functionality}' + + project-type: freestyle + node: dynamic_robot + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-num-to-keep}' + + parameters: + - project-parameter: + project: 'integration/test' + - integration-branch: + branch: 'master' + - integration-bundleurl: + bundleurl: 'last' + - integration-controller-scope: + controller-scope: 'only' + - integration-controller-features: + controller-features: 'odl-mdsal-clustering,{install-features}' + - integration-test-options: + test-options: '{robot-options}' + - integration-test-plan: + test-plan: '{project}-{functionality}.txt' + - integration-jdk-version: + jdkversion: 'openjdk7' scm: - - git-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - refspec: '' + basedir: 'test' + refspec: '$GERRIT_REFSPEC' + branch: 'master' + + wrappers: + - build-timeout + - integration-jclouds-controller-mininet: + controller-vms: 3 + mininet-image: '{mininet-image}' + mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' + - ssh-agent-credentials: + users: + - '{ssh-credentials}' + + triggers: + - integration-trigger-patch-submitted: + name: 'integration/test' + branch: 'master' + pattern: 'csit/suites/{project}/**' + + builders: + - integration-cleanup-workspace + - integration-install-robotframework + - inject: + properties-file: 'env.properties' + - integration-get-slave-addresses + - inject: + properties-file: 'slave_addresses.txt' + - integration-get-bundle-vars + - inject: + properties-file: 'bundle_vars.txt' + - integration-deploy-controller + - integration-configure-clustering + - integration-start-cluster-run-test + - integration-cleanup-tmp + + publishers: + - integration-robot: + unstable-if: 0.0 + pass-if: 100.0 + - archive: + artifacts: '*karaf.log*' + - email-notification: + email-prefix: '[{project}]' + +- job-template: + name: '{project}-csit-3node-{functionality}-{install}-{stream}' + + project-type: freestyle + node: dynamic_robot + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-num-to-keep}' + + parameters: + - project-parameter: + project: 'integration/test' + - integration-branch: branch: '{branch}' + - integration-bundleurl: + bundleurl: 'last' + - integration-controller-scope: + controller-scope: '{scope}' + - integration-controller-features: + controller-features: 'odl-mdsal-clustering,{install-features}' + - integration-test-options: + test-options: '{robot-options}' + - integration-test-plan: + test-plan: '{project}-{functionality}.txt' + - integration-patch-refspec: + branch: 'master' + - integration-jdk-version: + jdkversion: 'openjdk7' + + scm: + - integration-gerrit-scm: + credentials-id: '{ssh-credentials}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' wrappers: - build-timeout - integration-jclouds-controller-mininet: - controller-vms: 1 - mininet-vms: 1 + controller-vms: 3 + mininet-image: '{mininet-image}' + mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' - ssh-agent-credentials: users: - '{ssh-credentials}' @@ -252,27 +626,37 @@ result: 'success' builders: + - integration-cleanup-workspace + - integration-install-robotframework + - inject: + properties-file: 'env.properties' - integration-get-slave-addresses - inject: properties-file: 'slave_addresses.txt' - - integration-deploy-controller-run-test + - integration-get-bundle-vars + - inject: + properties-file: 'bundle_vars.txt' + - integration-deploy-controller + - integration-configure-clustering + - integration-start-cluster-run-test + - integration-cleanup-tmp publishers: - integration-robot: - unstable-if: 95.0 + unstable-if: 0.0 pass-if: 100.0 - archive: - artifacts: 'karaf.log' + artifacts: '*karaf.log*' - email-notification: email-prefix: '[{project}]' - plot: - title: '{01-plot-title}' yaxis: '{01-plot-yaxis}' group: '{01-plot-group}' - num-builds: '' + num-builds: '5400' style: line use-description: false - csv-file-name: '{project}-csit-1node-cds-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv' + csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv' series: - file: '{01-plot-data-file}' inclusion-flag: 'off' @@ -281,10 +665,10 @@ - title: '{02-plot-title}' yaxis: '{02-plot-yaxis}' group: '{02-plot-group}' - num-builds: '' + num-builds: '5400' style: line use-description: false - csv-file-name: '{project}-csit-1node-cds-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv' + csv-file-name: '{project}-csit-3node-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv' series: - file: '{02-plot-data-file}' inclusion-flag: 'off' @@ -292,7 +676,7 @@ format: csv - job-template: - name: '{project}-csit-periodic-1node-cds-{functionality}-{install}-{stream}' + name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}' project-type: freestyle node: dynamic_robot @@ -301,11 +685,11 @@ daysToKeep: '{build-days-to-keep}' numToKeep: '{build-num-to-keep}' artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' + artifactNumToKeep: '{build-num-to-keep}' parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: branch: '{branch}' - integration-bundleurl: @@ -313,23 +697,29 @@ - integration-controller-scope: controller-scope: '{scope}' - integration-controller-features: - controller-features: '{install-features}' + controller-features: 'odl-mdsal-clustering,{install-features}' - integration-test-options: test-options: '{robot-options}' - integration-test-plan: test-plan: '{project}-{functionality}.txt' + - integration-patch-refspec: + branch: 'master' + - integration-jdk-version: + jdkversion: 'openjdk7' scm: - - git-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - refspec: '' - branch: '{branch}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' wrappers: - - build-timeout - integration-jclouds-controller-mininet: - controller-vms: 1 - mininet-vms: 1 + controller-vms: 3 + mininet-image: '{mininet-image}' + mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' - ssh-agent-credentials: users: - '{ssh-credentials}' @@ -338,27 +728,37 @@ - timed: '{schedule}' builders: + - integration-cleanup-workspace + - integration-install-robotframework + - inject: + properties-file: 'env.properties' - integration-get-slave-addresses - inject: properties-file: 'slave_addresses.txt' - - integration-deploy-controller-run-test + - integration-get-bundle-vars + - inject: + properties-file: 'bundle_vars.txt' + - integration-deploy-controller + - integration-configure-clustering + - integration-start-cluster-run-test + - integration-cleanup-tmp publishers: - integration-robot: - unstable-if: 95.0 + unstable-if: 0.0 pass-if: 100.0 - archive: - artifacts: 'karaf.log' + artifacts: '*karaf.log*' - email-notification: email-prefix: '[{project}]' - plot: - title: '{01-plot-title}' yaxis: '{01-plot-yaxis}' group: '{01-plot-group}' - num-builds: '' + num-builds: '5400' style: line use-description: false - csv-file-name: '{project}-csit-periodic-1node-cds-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv' + csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv' series: - file: '{01-plot-data-file}' inclusion-flag: 'off' @@ -367,13 +767,12 @@ - title: '{02-plot-title}' yaxis: '{02-plot-yaxis}' group: '{02-plot-group}' - num-builds: '' + num-builds: '5400' style: line use-description: false - csv-file-name: '{project}-csit-periodic-1node-cds-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv' + csv-file-name: '{project}-csit-3node-periodic-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv' series: - file: '{02-plot-data-file}' inclusion-flag: 'off' display-table: true format: csv -