Use workspace/csit directory for artifacts, to mirror the way
csit-vpp jobs archive artifacts.
Don't look for honeycomb.log in /var/log, it is copied from virl
to workspace/csit directiry.
Modify trigger for hc2vpp-csit-verify, so that the trigger is not
a part of the job's name.
Change-Id: Ie1e66e9c7b017045c2be6c976189297c27e6aa96
Signed-off-by: selias <samelias@cisco.com>
publishers:
- archive-artifacts:
publishers:
- archive-artifacts:
- artifacts: 'report.html, log.html, output.xml, /var/log/honeycomb/honeycomb.log'
+ artifacts: 'csit/report.html, csit/log.html, csit/output.xml, csit/honeycomb.log'
latest-only: false
- email-notification:
email-prefix: '[hc2vpp]'
- robot-report:
latest-only: false
- email-notification:
email-prefix: '[hc2vpp]'
- robot-report:
- job-template:
name: 'hc2vpp-csit-verify-{stream}-{os}'
- job-template:
name: 'hc2vpp-csit-verify-{stream}-{os}'
server-name: 'Primary'
trigger-on:
- comment-added-contains-event:
server-name: 'Primary'
trigger-on:
- comment-added-contains-event:
- comment-contains-value: 'csit-verify'
+ comment-contains-value: 'verify-csit$'
projects:
- project-compare-type: 'ANT'
project-pattern: '{project}'
projects:
- project-compare-type: 'ANT'
project-pattern: '{project}'
publishers:
- archive-artifacts:
publishers:
- archive-artifacts:
- artifacts: 'report.html, log.html, output.xml, /var/log/honeycomb/honeycomb.log'
+ artifacts: 'csit/report.html, csit/log.html, csit/output.xml, csit/honeycomb.log'
latest-only: false
- email-notification:
email-prefix: '[hc2vpp]'
- robot-report:
latest-only: false
- email-notification:
email-prefix: '[hc2vpp]'
- robot-report:
#!/bin/bash
set -xeu -o pipefail
#!/bin/bash
set -xeu -o pipefail
+current_dir = `pwd`
+cd ${WORKSPACE}
+
# Clone csit and run package download script
git clone https://gerrit.fd.io/r/csit --branch master
# Clone csit and run package download script
git clone https://gerrit.fd.io/r/csit --branch master
-./resources/tools/download_hc_build_pkgs.sh
+./csit/resources/tools/download_hc_build_pkgs.sh
+
+cd ${current_dir}
if [ "${OS}" == "ubuntu1404" ]; then
./packaging/deb/trusty/debuild.sh
if [ "${OS}" == "ubuntu1404" ]; then
./packaging/deb/trusty/debuild.sh
- cp ./packaging/deb/trusty/*.deb ./
+ cp ./packaging/deb/trusty/*.deb ${WORKSPACE}/csit
elif [ "${OS}" == "ubuntu1604" ]; then
./packaging/deb/xenial/debuild.sh
elif [ "${OS}" == "ubuntu1604" ]; then
./packaging/deb/xenial/debuild.sh
- cp ./packaging/deb/xenial/*.deb ./
+ cp ./packaging/deb/xenial/*.deb ${WORKSPACE}/csit
# execute csit bootstrap script if it exists
if [ ! -e bootstrap-hc2vpp-verify.sh ]
then
# execute csit bootstrap script if it exists
if [ ! -e bootstrap-hc2vpp-verify.sh ]
then