X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-templates.yaml;h=dff4e52c52fe187ef9aef0a7340355657b7f6f79;hb=692d7d6c8ac346fa5c230a08ec1ee9ad847f6b0d;hp=60cd03fc33d795055ccaebe6102e6c2ce699de5a;hpb=ab6e44671f1f32a2489bd4071cd551453728b98d;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml index 60cd03fc3..dff4e52c5 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 @@ -27,13 +37,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: @@ -46,10 +56,11 @@ test-plan: '{project}-{functionality}.txt' 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,21 +68,29 @@ 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-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: @@ -92,11 +111,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: @@ -109,12 +128,15 @@ test-options: '{robot-options}' - integration-test-plan: test-plan: '{project}-{functionality}.txt' - - integration-patch-refspec + - integration-patch-refspec: + branch: 'stable/helium' scm: - - integration-patch-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - branch: '{branch}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' wrappers: - build-timeout @@ -122,6 +144,7 @@ controller-vms: 1 mininet-image: '{mininet-image}' mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' - ssh-agent-credentials: users: - '{ssh-credentials}' @@ -132,10 +155,17 @@ result: 'success' builders: + - 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: @@ -173,100 +203,10 @@ display-table: true format: csv -- job-template: - name: '{project}-csit-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 - - 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: - - 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: '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 - +# New templates - job-template: - name: '{project}-csit-periodic-1node-cds-{functionality}-{install}-{stream}' + name: '{project}-csit-verify-1node-{functionality}' project-type: freestyle node: dynamic_robot @@ -275,29 +215,30 @@ 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: - controller-scope: '{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-patch-refspec scm: - - integration-patch-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - branch: '{branch}' + basedir: 'test' + refspec: '$GERRIT_REFSPEC' + branch: 'master' wrappers: - build-timeout @@ -305,208 +246,29 @@ 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}' + - integration-trigger-patch-submitted: + name: 'integration/test' + branch: 'master' + pattern: 'csit/suites/{project}/**' builders: - - integration-get-slave-addresses + - 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: '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-artifact-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 - - 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 - publishers: - - integration-robot: - unstable-if: 95.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-3node-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-3node-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 - -# New templates - -- job-template: - name: '{project}-csit-verify-1node-{functionality}-{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-artifact-num-to-keep}' - - parameters: - - project-parameter: - project: 'integration' - - integration-branch: - branch: '{branch}' - - 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' - - scm: - - gerrit-trigger-scm: - credentials-id: '{ssh-credentials}' - refspec: '$GERRIT_REFSPEC' - choosing-strategy: 'gerrit' - - 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: - - integration-test-gerrit-trigger-patch-submitted: - name: 'integration' - branch: '{branch}' - project: '{project}' - - builders: - - integration-get-slave-addresses - - inject: - properties-file: 'slave_addresses.txt' - integration-deploy-controller-run-test + - integration-cleanup-tmp publishers: - integration-robot: @@ -527,11 +289,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: @@ -544,12 +306,15 @@ test-options: '{robot-options}' - integration-test-plan: test-plan: '{project}-{functionality}.txt' - - integration-patch-refspec + - integration-patch-refspec: + branch: 'master' scm: - - integration-patch-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - branch: '{branch}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' wrappers: - build-timeout @@ -557,6 +322,7 @@ controller-vms: 1 mininet-image: '{mininet-image}' mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' - ssh-agent-credentials: users: - '{ssh-credentials}' @@ -567,10 +333,17 @@ result: 'success' builders: + - 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: @@ -616,11 +389,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: @@ -633,19 +406,22 @@ test-options: '{robot-options}' - integration-test-plan: test-plan: '{project}-{functionality}.txt' - - integration-patch-refspec + - integration-patch-refspec: + branch: 'master' 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}' @@ -654,10 +430,17 @@ - timed: '{schedule}' builders: + - 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: @@ -694,7 +477,7 @@ format: csv - job-template: - name: '{project}-csit-verify-3node-{functionality}-{stream}' + name: '{project}-csit-verify-3node-{functionality}' project-type: freestyle node: dynamic_robot @@ -703,13 +486,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: @@ -722,10 +505,11 @@ test-plan: '{project}-{functionality}.txt' scm: - - gerrit-trigger-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' + basedir: 'test' refspec: '$GERRIT_REFSPEC' - choosing-strategy: 'gerrit' + branch: 'master' wrappers: - build-timeout @@ -733,17 +517,21 @@ 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-install-robotframework + - inject: + properties-file: 'env.properties' - integration-get-slave-addresses - inject: properties-file: 'slave_addresses.txt' @@ -753,6 +541,8 @@ - integration-deploy-controller - integration-configure-clustering - integration-start-cluster-run-test + - integration-cleanup-tmp + publishers: - integration-robot: unstable-if: 0.0 @@ -772,11 +562,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: @@ -789,12 +579,15 @@ test-options: '{robot-options}' - integration-test-plan: test-plan: '{project}-{functionality}.txt' - - integration-patch-refspec + - integration-patch-refspec: + branch: 'master' scm: - - integration-patch-scm: + - integration-gerrit-scm: credentials-id: '{ssh-credentials}' - branch: '{branch}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' wrappers: - build-timeout @@ -802,6 +595,7 @@ controller-vms: 3 mininet-image: '{mininet-image}' mininet-vms: '{mininet-vms}' + mininet-cloud-name: '{mininet-cloud-name}' - ssh-agent-credentials: users: - '{ssh-credentials}' @@ -812,6 +606,9 @@ result: 'success' builders: + - integration-install-robotframework + - inject: + properties-file: 'env.properties' - integration-get-slave-addresses - inject: properties-file: 'slave_addresses.txt' @@ -821,6 +618,7 @@ - integration-deploy-controller - integration-configure-clustering - integration-start-cluster-run-test + - integration-cleanup-tmp publishers: - integration-robot: @@ -866,11 +664,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: @@ -883,19 +681,22 @@ test-options: '{robot-options}' - integration-test-plan: test-plan: '{project}-{functionality}.txt' - - integration-patch-refspec + - integration-patch-refspec: + branch: 'master' 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}' @@ -904,6 +705,9 @@ - timed: '{schedule}' builders: + - integration-install-robotframework + - inject: + properties-file: 'env.properties' - integration-get-slave-addresses - inject: properties-file: 'slave_addresses.txt' @@ -913,6 +717,7 @@ - integration-deploy-controller - integration-configure-clustering - integration-start-cluster-run-test + - integration-cleanup-tmp publishers: - integration-robot: @@ -947,4 +752,3 @@ inclusion-flag: 'off' display-table: true format: csv -