X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-macros.yaml;h=19f321b9e6f9d0fb8960f5595985f0129d040117;hb=5448e8b47ac750b5823e136e83d83b62c8ec28ea;hp=84bb39e69a763990c9480c12ec396cbc656a11d7;hpb=516253475f263281277bac67d2b1c721731351d5;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-macros.yaml b/jjb/integration/integration-macros.yaml index 84bb39e69..19f321b9e 100644 --- a/jjb/integration/integration-macros.yaml +++ b/jjb/integration/integration-macros.yaml @@ -14,6 +14,14 @@ default: '{bundleurl}' description: 'URL to karaf distribution zip' +- parameter: + name: integration-jdk-version + parameters: + - string: + name: JDKVERSION + default: '{jdkversion}' + description: 'Parameter to indicate JAVA Version' + - parameter: name: integration-controller-scope parameters: @@ -114,6 +122,9 @@ comment-contains-value: 'recheck' - comment-added-contains-event: comment-contains-value: 'reverify' + override-votes: true + gerrit-build-unstable-verified-value: +1 + gerrit-build-unstable-codereview-value: 0 projects: - project-compare-type: 'ANT' project-pattern: '{name}' @@ -147,6 +158,26 @@ - compare-type: 'ANT' pattern: '{pattern}' +# Macro: integration-csit-only +# Operation: this macro sets a trigger on reverse job list +# Used by: csit -only- job templates + +- trigger: + name: integration-csit-only + triggers: + - reverse: + jobs: '{jobs}' + result: 'success' + +# Macro: integration-csit-all +# Operation: this macro sets a periodic trigger +# Used by: csit -all- job teamplates + +- trigger: + name: integration-csit-all + triggers: + - timed: 'H H * * *' + # Macro: integration-jclouds-controller-mininet # Operation: this macro will spin the controller and mininet vms # Used by: {project}-csit-* job templates @@ -177,7 +208,8 @@ name: integration-get-slave-addresses builders: - shell: - !include-raw include-raw-integration-get-slave-addresses.sh + !include-raw: + - include-raw-integration-get-slave-addresses.sh # Macro: integration-get-bundle-vars # Operation: this macro gets all bundle related variables @@ -187,7 +219,8 @@ name: integration-get-bundle-vars builders: - shell: - !include-raw include-raw-integration-get-bundle-vars.sh + !include-raw: + - include-raw-integration-get-bundle-vars.sh # Macro: integration-deploy-controller-verify # Operation: this macro deploys the controller with all fetures @@ -197,7 +230,8 @@ name: integration-deploy-controller-verify builders: - shell: - !include-raw include-raw-integration-deploy-controller-verify.sh + !include-raw: + - include-raw-integration-deploy-controller-verify.sh # Macro: integration-deploy-controller-offline # Operation: this macro deploys the controller with no external repo configuration @@ -207,7 +241,8 @@ name: integration-deploy-controller-offline builders: - shell: - !include-raw include-raw-integration-deploy-controller-offline.sh + !include-raw: + - include-raw-integration-deploy-controller-offline.sh # Macro: integration-deply-controller-run-test # Operation: this macro deploys single contoller and runs test @@ -217,7 +252,8 @@ name: integration-deploy-controller-run-test builders: - shell: - !include-raw include-raw-integration-deploy-controller-run-test.sh + !include-raw: + - include-raw-integration-deploy-controller-run-test.sh # Macro: integration-deploy-controller # Operation: this macro prepares 3-node cluster controller @@ -227,7 +263,8 @@ name: integration-deploy-controller builders: - shell: - !include-raw include-raw-integration-deploy-controller.sh + !include-raw: + - include-raw-integration-deploy-controller.sh # Macro: integration-configure-clustering # Operation: this macro configures the clustering @@ -237,7 +274,8 @@ name: integration-configure-clustering builders: - shell: - !include-raw include-raw-integration-configure-clustering.sh + !include-raw: + - include-raw-integration-configure-clustering.sh # Macro: integration-start-cluster-run-test # Operation: this macro starts the 3-node cluster and runs test @@ -247,7 +285,8 @@ name: integration-start-cluster-run-test builders: - shell: - !include-raw include-raw-integration-start-cluster-run-test.sh + !include-raw: + - include-raw-integration-start-cluster-run-test.sh # Macro: integration-get-bundle-url # Operation: this macro gets the job generated distribution URL from distribution pom.xml @@ -257,7 +296,8 @@ name: integration-get-bundle-url builders: - shell: - !include-raw include-raw-integration-get-bundle-url.sh + !include-raw: + - include-raw-integration-get-bundle-url.sh # Macro: integration-get-bundle-url-root # Operation: this macro gets the job generated distribution URL from root pom.xml @@ -267,7 +307,8 @@ name: integration-get-bundle-url-root builders: - shell: - !include-raw include-raw-integration-get-bundle-url-root.sh + !include-raw: + - include-raw-integration-get-bundle-url-root.sh # Macro: integration-install-robotframework # Operation: Installs robotframework using pip to a virtualenv @@ -277,7 +318,8 @@ name: integration-install-robotframework builders: - shell: - !include-raw include-raw-integration-install-robotframework.sh + !include-raw: + - include-raw-integration-install-robotframework.sh # Macro: integration-cleanup-tmp # Operation: Cleans up temporary files created by build @@ -287,7 +329,8 @@ name: integration-cleanup-tmp builders: - shell: - !include-raw include-raw-integration-cleanup-tmp.sh + !include-raw: + - include-raw-integration-cleanup-tmp.sh # Macro: integration-multipatch-builder # Operation: checks out multiple patches and builds custom distribution @@ -297,7 +340,30 @@ name: integration-multipatch-builder builders: - shell: - !include-raw include-raw-integration-multipatch-distribution-test.sh + !include-raw: + - include-raw-integration-multipatch-distribution-test.sh + +# Macro: integration-cleanup-worspace +# Operation: Cleans up files possibly left there by the previous build +# Used by: {project}-csit-* job templates + +- builder: + name: integration-cleanup-workspace + builders: + - shell: + !include-raw: + - include-raw-integration-cleanup-workspace.sh + +# Macro: integration-rebase-patch +# Operation: For cloned project, rebase checked-out Gerrit patch onto $BRANCH. +# Used by: integration-patch-distribution-* job template + +- builder: + name: integration-rebase-gerrit-patch + builders: + - shell: + !include-raw: + - include-raw-integration-rebase-gerrit-patch.sh ############## # Publishers #