X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-templates.yaml;h=dae67aca90f5316c8fd5a9e718d95bfab5333ec5;hb=c7321202e8b0d5f17234a0e4ebbdeaba253dec7c;hp=82da1179890c97025a3bd0fa54d81a44021c28c1;hpb=6e0c465c6742f4ca62c0086050f0f13d11bba427;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml index 82da11798..dae67aca9 100644 --- a/jjb/integration/integration-templates.yaml +++ b/jjb/integration/integration-templates.yaml @@ -1,24 +1,34 @@ # Job templates in this file (please update with every new template): # -# {project}-csit-verify-{functionality}-{stream} +# Old templates: +# {project}-csit-verify-1node-{functionality}-{stream} # {project}-csit-1node-imds-{functionality}-{install}-{stream} -# {project}-csit-1node-cds-{functionality}-{install}-{stream} -# {project}-csit-periodic-1node-cds-{functionality}-{install}-{stream} -# {project}-csit-3node-cds-{functionality}-{install}-{stream} # # New (for Be release): -# {project}-csit-verify-1node-{functionality}-{stream} +# {project}-csit-verify-1node-{functionality} # {project}-csit-1node-{functionality}-{install}-{stream} # {project}-csit-1node-periodic-{functionality}-{install}-{stream} -# {project}-csit-verify-3node-{functionality}-{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}-csit-verify-{functionality}-{stream}' + name: '{project}-csit-verify-1node-{functionality}-{stream}' project-type: freestyle node: dynamic_robot @@ -31,9 +41,9 @@ parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: - branch: '{branch}' + branch: 'master' - integration-bundleurl: bundleurl: 'last' - integration-controller-scope: @@ -44,12 +54,15 @@ 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 @@ -57,125 +70,42 @@ 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-test-gerrit-trigger-patch-submitted: - name: 'integration' + - integration-trigger-patch-submitted: + name: 'integration/test' branch: '{branch}' - project: '{project}' + pattern: 'csit/suites/{project}/**' builders: - - integration-get-slave-addresses + - integration-cleanup-workspace + - integration-install-robotframework - inject: - properties-file: 'slave_addresses.txt' - - integration-deploy-controller-run-test - - publishers: - - integration-robot: - unstable-if: 0.0 - pass-if: 0.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' - - 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: '{branch}' - - scm: - - integration-patch-scm: - credentials-id: '{ssh-credentials}' - branch: '{branch}' - - wrappers: - - build-timeout - - integration-jclouds-controller-mininet: - controller-vms: 1 - mininet-image: '{mininet-image}' - mininet-vms: '{mininet-vms}' - - ssh-agent-credentials: - users: - - '{ssh-credentials}' - - triggers: - - reverse: - jobs: '{trigger-jobs}' - result: 'success' - - builders: + 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' + artifacts: 'karaf.log*' - email-notification: email-prefix: '[{project}]' - - 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 - job-template: - name: '{project}-csit-1node-cds-{functionality}-{install}-{stream}' + name: '{project}-csit-1node-imds-{functionality}-{install}-{stream}' project-type: freestyle node: dynamic_robot @@ -188,7 +118,7 @@ parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: branch: '{branch}' - integration-bundleurl: @@ -202,12 +132,16 @@ - integration-test-plan: test-plan: '{project}-{functionality}.txt' - integration-patch-refspec: - branch: '{branch}' + branch: 'stable/helium' + - integration-jdk-version: + jdkversion: 'openjdk7' scm: - - integration-patch-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - branch: '{branch}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' wrappers: - build-timeout @@ -215,6 +149,7 @@ controller-vms: 1 mininet-image: '{mininet-image}' mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' - ssh-agent-credentials: users: - '{ssh-credentials}' @@ -225,204 +160,25 @@ result: 'success' builders: - - integration-get-slave-addresses + - integration-cleanup-workspace + - integration-install-robotframework - inject: - properties-file: 'slave_addresses.txt' - - integration-deploy-controller-run-test - - publishers: - - integration-robot: - unstable-if: 0.0 - pass-if: 100.0 - - archive: - artifacts: 'karaf.log' - - email-notification: - email-prefix: '[{project}]' - - 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-cds-{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-cds-{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 - - -- job-template: - name: '{project}-csit-periodic-1node-cds-{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' - - 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: '{branch}' - - scm: - - integration-patch-scm: - credentials-id: '{ssh-credentials}' - branch: '{branch}' - - wrappers: - - integration-jclouds-controller-mininet: - controller-vms: 1 - mininet-image: '{mininet-image}' - mininet-vms: '{mininet-vms}' - - ssh-agent-credentials: - users: - - '{ssh-credentials}' - - triggers: - - timed: '{schedule}' - - builders: - - integration-get-slave-addresses - - inject: - properties-file: 'slave_addresses.txt' - - integration-deploy-controller-run-test - - publishers: - - integration-robot: - unstable-if: 0.0 - pass-if: 100.0 - - archive: - artifacts: '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-cds-{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: '180' - style: line - use-description: false - csv-file-name: '{project}-csit-periodic-1node-cds-{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 - - -- job-template: - name: '{project}-csit-3node-cds-{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' - - 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: '{branch}' - - scm: - - integration-patch-scm: - credentials-id: '{ssh-credentials}' - branch: '{branch}' - - wrappers: - - build-timeout - - integration-jclouds-controller-mininet: - controller-vms: 3 - mininet-image: '{mininet-image}' - mininet-vms: '{mininet-vms}' - - ssh-agent-credentials: - users: - - '{ssh-credentials}' - - triggers: - - reverse: - jobs: '{trigger-jobs}' - result: 'success' - - builders: + 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-deploy-controller-run-test + - integration-cleanup-tmp + publishers: - integration-robot: unstable-if: 0.0 pass-if: 100.0 - archive: - artifacts: '*karaf.log' + artifacts: 'karaf.log*' - email-notification: email-prefix: '[{project}]' - plot: @@ -432,7 +188,7 @@ num-builds: '5400' style: line use-description: false - csv-file-name: '{project}-csit-3node-cds-{functionality}-{install}-{stream}-{01-plot-data-file}-history.csv' + 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}' @@ -445,7 +201,7 @@ num-builds: '5400' style: line use-description: false - csv-file-name: '{project}-csit-3node-cds-{functionality}-{install}-{stream}-{02-plot-data-file}-history.csv' + 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}' @@ -456,7 +212,7 @@ # New templates - job-template: - name: '{project}-csit-verify-1node-{functionality}-{stream}' + name: '{project}-csit-verify-1node-{functionality}' project-type: freestyle node: dynamic_robot @@ -469,9 +225,9 @@ parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: - branch: '{branch}' + branch: 'master' - integration-bundleurl: bundleurl: 'last' - integration-controller-scope: @@ -482,12 +238,15 @@ 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 @@ -495,28 +254,37 @@ 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-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: 0.0 - pass-if: 0.0 + pass-if: 100.0 - archive: - artifacts: 'karaf.log' + artifacts: 'karaf.log*' - email-notification: email-prefix: '[{project}]' @@ -534,7 +302,7 @@ parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: branch: '{branch}' - integration-bundleurl: @@ -548,12 +316,16 @@ - integration-test-plan: test-plan: '{project}-{functionality}.txt' - integration-patch-refspec: - branch: '{branch}' + branch: 'master' + - integration-jdk-version: + jdkversion: 'openjdk7' scm: - - integration-patch-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - branch: '{branch}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' wrappers: - build-timeout @@ -561,6 +333,7 @@ controller-vms: 1 mininet-image: '{mininet-image}' mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' - ssh-agent-credentials: users: - '{ssh-credentials}' @@ -571,17 +344,25 @@ 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: 0.0 pass-if: 100.0 - archive: - artifacts: 'karaf.log' + artifacts: 'karaf.log*' - email-notification: email-prefix: '[{project}]' - plot: @@ -624,7 +405,7 @@ parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: branch: '{branch}' - integration-bundleurl: @@ -638,19 +419,23 @@ - integration-test-plan: test-plan: '{project}-{functionality}.txt' - integration-patch-refspec: - branch: '{branch}' + branch: 'master' + - integration-jdk-version: + jdkversion: 'openjdk7' scm: - - integration-patch-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - branch: '{branch}' + 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}' @@ -659,17 +444,25 @@ - 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: 'karaf.log' + artifacts: '*.log,karaf.log*' - email-notification: email-prefix: '[{project}]' - plot: @@ -699,7 +492,7 @@ format: csv - job-template: - name: '{project}-csit-verify-3node-{functionality}-{stream}' + name: '{project}-csit-verify-3node-{functionality}' project-type: freestyle node: dynamic_robot @@ -712,9 +505,9 @@ parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: - branch: '{branch}' + branch: 'master' - integration-bundleurl: bundleurl: 'last' - integration-controller-scope: @@ -725,12 +518,15 @@ 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 @@ -738,17 +534,22 @@ 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-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' @@ -758,12 +559,14 @@ - integration-deploy-controller - integration-configure-clustering - integration-start-cluster-run-test + - integration-cleanup-tmp + publishers: - integration-robot: unstable-if: 0.0 - pass-if: 0.0 + pass-if: 100.0 - archive: - artifacts: '*karaf.log' + artifacts: '*karaf.log*' - email-notification: email-prefix: '[{project}]' @@ -781,7 +584,7 @@ parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: branch: '{branch}' - integration-bundleurl: @@ -795,12 +598,16 @@ - integration-test-plan: test-plan: '{project}-{functionality}.txt' - integration-patch-refspec: - branch: '{branch}' + branch: 'master' + - integration-jdk-version: + jdkversion: 'openjdk7' scm: - - integration-patch-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - branch: '{branch}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' wrappers: - build-timeout @@ -808,6 +615,7 @@ controller-vms: 3 mininet-image: '{mininet-image}' mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' - ssh-agent-credentials: users: - '{ssh-credentials}' @@ -818,6 +626,10 @@ result: 'success' builders: + - integration-cleanup-workspace + - integration-install-robotframework + - inject: + properties-file: 'env.properties' - integration-get-slave-addresses - inject: properties-file: 'slave_addresses.txt' @@ -827,13 +639,14 @@ - 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' + artifacts: '*karaf.log*' - email-notification: email-prefix: '[{project}]' - plot: @@ -876,7 +689,7 @@ parameters: - project-parameter: - project: 'integration' + project: 'integration/test' - integration-branch: branch: '{branch}' - integration-bundleurl: @@ -890,19 +703,23 @@ - integration-test-plan: test-plan: '{project}-{functionality}.txt' - integration-patch-refspec: - branch: '{branch}' + branch: 'master' + - integration-jdk-version: + jdkversion: 'openjdk7' scm: - - integration-patch-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - branch: '{branch}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + 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}' @@ -911,6 +728,10 @@ - timed: '{schedule}' builders: + - integration-cleanup-workspace + - integration-install-robotframework + - inject: + properties-file: 'env.properties' - integration-get-slave-addresses - inject: properties-file: 'slave_addresses.txt' @@ -920,13 +741,14 @@ - 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' + artifacts: '*karaf.log*' - email-notification: email-prefix: '[{project}]' - plot: @@ -954,4 +776,3 @@ inclusion-flag: 'off' display-table: true format: csv -