X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-macros.yaml;h=83daad88bdfbfe1b864d2540a43452f326453463;hb=e5ebb1faf1e71657113c709ef811a25242780862;hp=95fabe57047d2e774246cf40de7923827baff233;hpb=60232acde1fa8c8f00a39ba44beb11243be2667c;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-macros.yaml b/jjb/integration/integration-macros.yaml index 95fabe570..83daad88b 100644 --- a/jjb/integration/integration-macros.yaml +++ b/jjb/integration/integration-macros.yaml @@ -226,6 +226,21 @@ template-name: '{mininet-image}' count: '{mininet-vms}' +# Macro: integration-jclouds-controller-devstack +# Operation: this macro will spin the controller and devstack vms +# Used by: {project}-csit-openstack job templates +- wrapper: + name: integration-jclouds-controller-devstack + wrappers: + - jclouds: + instances: + - '{controller-image}': + cloud-name: 'ODLPUB' + count: '{controller-vms}' + - '{openstack-image}': + cloud-name: 'ODLPUB' + count: '{openstack-vms}' + # Macro: integration-openstack-controller-devstack # Operation: this macro will spin the controller and devstack vms # Used by: {project}-csit-openstack job templates @@ -241,6 +256,21 @@ template-name: '{openstack-image}' count: '{openstack-vms}' +# Macro: integration-jclouds-controller-docker +# Operation: this macro will sping the controller and docker vms +# Used by: {project}-csit-docker job templates +- wrapper: + name: integration-jclouds-controller-docker + wrappers: + - jclouds: + instances: + - '{controller-image}': + cloud-name: 'ODLPUB' + count: '{controller-vms}' + - '{docker-image}': + cloud-name: 'ODLPUB' + count: '{docker-vms}' + ################# # Shell Scripts # ################# @@ -255,7 +285,7 @@ - shell: | #!/bin/bash function copy-ssh-keys-to-slave() { - RETRIES=30 + RETRIES=60 for j in $(seq 1 $RETRIES); do if `ssh-copy-id -i /home/jenkins/.ssh/id_rsa.pub "jenkins@${i}" > /dev/null 2>&1`; then ssh jenkins@${i} 'echo "$(facter ipaddress_eth0) $(/bin/hostname)" | sudo tee -a /etc/hosts' @@ -274,12 +304,22 @@ echo "OpenStack IPS are ${JCLOUDS_IPS}" IFS=',' read -ra ADDR <<< "${JCLOUDS_IPS}" - + pids="" for i in "${ADDR[@]}"; do - copy-ssh-keys-to-slave & + ( copy-ssh-keys-to-slave ) & + # Store PID of process + pids+=" $!" done - wait + # Detect when a process failed to copy ssh keys and fail build + for p in $pids; do + if wait $p; then + echo "Process $p successfully copied ssh keys." + else + echo "Process $p failed to copy ssh keys." + exit 1 + fi + done echo "Copying ssh keys complete." # Macro: integration-get-slave-addresses @@ -471,6 +511,17 @@ pass-threshold: '{pass-if}' only-critical: false +- publisher: + name: integration-robot-tempest + publishers: + - robot: + output-path: '' + other-files: + - tempest_results.html + unstable-threshold: '{unstable-if}' + pass-threshold: '{pass-if}' + only-critical: false + - publisher: name: integration-csit-archive-build publishers: @@ -481,7 +532,7 @@ mkdir $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 *.csv $WORKSPACE/archives || true # Don't fail if file missing + 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