- - string:
- name: CONTROLLERFEATURES
- default: '{controller-features}'
- description: 'Features to install in the controller separated by comma'
+ - string:
+ name: CONTROLLERFEATURES
+ default: '{controller-features}'
+ description: 'Features to install in the controller separated by comma'
- - string:
- name: DISTROGITURL
- default: '{git-url}/integration/distribution'
- description: 'Distribution GIT URL (do not modify)'
+ - string:
+ name: DISTROGITURL
+ default: '{git-url}/integration/distribution'
+ description: 'Distribution GIT URL (do not modify)'
# Macro: integration-distribution-scm
# Operation: this macro downloads the integration/distribution repo using distribution as basedir
# Macro: integration-distribution-scm
# Operation: this macro downloads the integration/distribution repo using distribution as basedir
# Macro: integration-trigger-patch-submitted
# This is a single macro to use for all csit jobs who vote on every (relevant) patch set.
# Macro: integration-trigger-patch-submitted
# This is a single macro to use for all csit jobs who vote on every (relevant) patch set.
- - gerrit:
- server-name: '{server}'
- 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'
- override-votes: true
- gerrit-build-unstable-verified-value: +1
- gerrit-build-unstable-codereview-value: 0
- projects:
- - project-compare-type: 'ANT'
- project-pattern: '{project}'
- branches:
- - branch-compare-type: 'ANT'
- branch-pattern: '**/{branch}'
- file-paths:
- - compare-type: 'ANT'
- pattern: '{files}'
+ - gerrit:
+ server-name: '{server}'
+ 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'
+ override-votes: true
+ gerrit-build-unstable-verified-value: +1
+ gerrit-build-unstable-codereview-value: 0
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: 'ANT'
+ pattern: '{files}'
# Macro: integration-openstack-controller-mininet
# Operation: this macro will spin the controller and mininet vms
# Macro: integration-openstack-controller-mininet
# Operation: this macro will spin the controller and mininet vms
- - integration-cleanup-workspace
- - shell: |
- #!/bin/bash
- # Setup openstack envirnoment file for use by
- # the opendaylight-infra-stack macro
- cat > $WORKSPACE/opendaylight-infra-environment.yaml << EOF
- parameters:
- vm_0_count: {vm_0_count}
- vm_0_flavor: {vm_0_flavor}
- vm_0_image: {vm_0_image}
- vm_1_count: {vm_1_count}
- vm_1_flavor: {vm_1_flavor}
- vm_1_image: {vm_1_image}
- EOF
- echo "Contents of opendaylight-infra-environment.yaml ..."
- cat $WORKSPACE/opendaylight-infra-environment.yaml
- - opendaylight-infra-stack:
- stack-template: '{stack-template}'
+ - integration-cleanup-workspace
+ - shell: |
+ #!/bin/bash
+ # Setup openstack envirnoment file for use by
+ # the opendaylight-infra-stack macro
+ cat > $WORKSPACE/opendaylight-infra-environment.yaml << EOF
+ parameters:
+ vm_0_count: {vm_0_count}
+ vm_0_flavor: {vm_0_flavor}
+ vm_0_image: {vm_0_image}
+ vm_1_count: {vm_1_count}
+ vm_1_flavor: {vm_1_flavor}
+ vm_1_image: {vm_1_image}
+ EOF
+ echo "Contents of opendaylight-infra-environment.yaml ..."
+ cat $WORKSPACE/opendaylight-infra-environment.yaml
+ - opendaylight-infra-stack:
+ stack-template: '{stack-template}'
# Macro: integration-infra-stack-3-type
# Operation: Sets environment and then calls opendaylight-infra-stack to spin
# Macro: integration-infra-stack-3-type
# Operation: Sets environment and then calls opendaylight-infra-stack to spin
- - integration-cleanup-workspace
- - shell: |
- #!/bin/bash
- # Setup openstack envirnoment file for use by
- # the opendaylight-infra-stack macro
- cat > $WORKSPACE/opendaylight-infra-environment.yaml << EOF
- parameters:
- vm_0_count: {vm_0_count}
- vm_0_flavor: {vm_0_flavor}
- vm_0_image: {vm_0_image}
- vm_1_count: {vm_1_count}
- vm_1_flavor: {vm_1_flavor}
- vm_1_image: {vm_1_image}
- vm_2_count: {vm_2_count}
- vm_2_flavor: {vm_2_flavor}
- vm_2_image: {vm_2_image}
- EOF
- echo "Contents of opendaylight-infra-environment.yaml ..."
- cat $WORKSPACE/opendaylight-infra-environment.yaml
- - opendaylight-infra-stack:
- stack-template: 'csit-3-instance-type.yaml'
+ - integration-cleanup-workspace
+ - shell: |
+ #!/bin/bash
+ # Setup openstack envirnoment file for use by
+ # the opendaylight-infra-stack macro
+ cat > $WORKSPACE/opendaylight-infra-environment.yaml << EOF
+ parameters:
+ vm_0_count: {vm_0_count}
+ vm_0_flavor: {vm_0_flavor}
+ vm_0_image: {vm_0_image}
+ vm_1_count: {vm_1_count}
+ vm_1_flavor: {vm_1_flavor}
+ vm_1_image: {vm_1_image}
+ vm_2_count: {vm_2_count}
+ vm_2_flavor: {vm_2_flavor}
+ vm_2_image: {vm_2_image}
+ EOF
+ echo "Contents of opendaylight-infra-environment.yaml ..."
+ cat $WORKSPACE/opendaylight-infra-environment.yaml
+ - opendaylight-infra-stack:
+ stack-template: 'csit-3-instance-type.yaml'
# Macro: integration-get-slave-addresses
# Operation: this macro gets the IP addresses of the dynamic vms
# Macro: integration-get-slave-addresses
# Operation: this macro gets the IP addresses of the dynamic vms
# Macro: integration-distribution-check
# Operation: this macro deploys the controller with all fetures
# Macro: integration-distribution-check
# Operation: this macro deploys the controller with all fetures
# Macro: integration-deploy-controller-verify
# Operation: this macro deploys the controller with all fetures
# Macro: integration-deploy-controller-verify
# Operation: this macro deploys the controller with all fetures
# Macro: integration-deploy-controller-offline
# Operation: this macro deploys the controller with no external repo configuration
# Macro: integration-deploy-controller-offline
# Operation: this macro deploys the controller with no external repo configuration
# Macro: integration-deply-controller-run-test
# Operation: this macro deploys single contoller and runs test
# Macro: integration-deply-controller-run-test
# Operation: this macro deploys single contoller and runs test
# Macro: integration-start-cluster-run-test
# Operation: this macro starts the 3-node cluster and runs test
# Macro: integration-start-cluster-run-test
# Operation: this macro starts the 3-node cluster and runs test
# Macro: integration-get-bundle-url
# Operation: this macro gets the job generated distribution URL from distribution pom.xml
# Macro: integration-get-bundle-url
# Operation: this macro gets the job generated distribution URL from distribution pom.xml
# Macro: integration-get-bundle-url-root
# Operation: this macro gets the job generated distribution URL from root pom.xml
# Macro: integration-get-bundle-url-root
# Operation: this macro gets the job generated distribution URL from root pom.xml
# Macro: integration-install-robotframework
# Operation: Installs robotframework using pip to a virtualenv
# Macro: integration-install-robotframework
# Operation: Installs robotframework using pip to a virtualenv
# Macro: integration-multipatch-builder
# Operation: checks out multiple patches and builds custom distribution
# Macro: integration-multipatch-builder
# Operation: checks out multiple patches and builds custom distribution
# Macro: integration-cleanup-workspace
# Operation: Cleans up files possibly left there by the previous build
# Macro: integration-cleanup-workspace
# Operation: Cleans up files possibly left there by the previous build
# Macro: integration-rebase-patch
# Operation: For cloned project, rebase checked-out Gerrit patch onto $DISTROBRANCH.
# Macro: integration-rebase-patch
# Operation: For cloned project, rebase checked-out Gerrit patch onto $DISTROBRANCH.
# Macro: integration-compare-distributions
# Operation: will compare an already created distribtion (probably last
# Macro: integration-compare-distributions
# Operation: will compare an already created distribtion (probably last
- - postbuildscript:
- builders:
- - shell: |
- #!/bin/bash
- mkdir -p $WORKSPACE/archives
- curl --output robot-plugin.zip "$BUILD_URL/robot/report/*zip*/robot-plugin.zip"
- unzip -d $WORKSPACE/archives robot-plugin.zip
- mv *log* *.log *.log.gz *.csv *.png $WORKSPACE/archives || true # Don't fail if file missing
- script-only-if-succeeded: False
- script-only-if-failed: False
- mark-unstable-if-failed: True
+ - postbuildscript:
+ builders:
+ - shell: |
+ #!/bin/bash
+ mkdir -p $WORKSPACE/archives
+ curl --output robot-plugin.zip "$BUILD_URL/robot/report/*zip*/robot-plugin.zip"
+ unzip -d $WORKSPACE/archives robot-plugin.zip
+ mv *log* *.log *.log.gz *.csv *.png $WORKSPACE/archives || true # Don't fail if file missing
+ script-only-if-succeeded: 'False'
+ script-only-if-failed: 'False'
+ mark-unstable-if-failed: 'True'