X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-macros.yaml;h=a101a71b421f536b5277d85bad62327f862d7635;hb=efce69317c6b74c8f3f5c869efed5bc4f533dd7c;hp=aeb793f6ffd50c2c1f627dd4e87db18f0a3b6fcd;hpb=fb003dff24b922e3fa02c1157ab427d03e4461f3;p=ci-management.git diff --git a/jjb/integration/integration-macros.yaml b/jjb/integration/integration-macros.yaml index aeb793f6f..a101a71b4 100644 --- a/jjb/integration/integration-macros.yaml +++ b/jjb/integration/integration-macros.yaml @@ -4,44 +4,57 @@ parameters: - string: name: TESTPLAN - default: '{test-plan}' - description: 'General test plan we will run unless stream-specific one is found' + default: "{test-plan}" + description: "General test plan we will run unless stream-specific one is found" - parameter: name: integration-test-options parameters: - string: name: TESTOPTIONS - default: '{test-options}' - description: 'Robot command options' + default: "{test-options}" + description: "Robot command options" - parameter: name: html-publisher-dir parameters: - string: name: HTMLDIR - default: '{html-dir}' - description: 'Directory location to be used by HTML publisher plugin' + default: "{html-dir}" + description: "Directory location to be used by HTML publisher plugin" - parameter: name: html-publisher-files parameters: - string: name: HTMLFILES - default: '{html-files}' - description: 'File name to be used by HTML publisher plugin to produce the report' + default: "{html-files}" + description: "File name to be used by HTML publisher plugin to produce the report" - builder: name: integration-install-robotframework builders: - - shell: - !include-raw: + - shell: !include-raw: - include-raw-integration-install-robotframework.sh +- builder: + name: integration-install-robotframework-py3 + builders: + - shell: !include-raw-escape: + - include-raw-integration-install-robotframework-py3.sh + - builder: name: integration-run-test builders: - - shell: "${WORKSPACE}/run-csit.sh ${TESTPLAN} ${TESTOPTIONS}" + - shell: | + git clone https://gerrit.onap.org/r/ci-management /tmp/ci-management + cp /tmp/ci-management/jjb/integration/*csit.sh "$WORKSPACE" + "$WORKSPACE/run-csit.sh" "$TESTPLAN" "$TESTOPTIONS" + +- builder: + name: integration-run-project-test + builders: + - shell: "$WORKSPACE/csit/run-project-csit.sh $TESTOPTIONS" - builder: name: integration-autorelease-fix-relativepaths @@ -64,14 +77,50 @@ sudo apt --yes install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev vagrant vagrant plugin install vagrant-libvirt vagrant plugin install vagrant-disksize + vagrant plugin install vagrant-sshfs + vagrant plugin install vagrant-reload mkdir -p ~/.ssh +- builder: + name: integration-docker-compose-logs + builders: + - shell: !include-raw: shell/docker-compose-logs.sh + - publisher: name: integration-robot publishers: - robot: - output-path: 'archives' - other-files: '' - unstable-threshold: '{unstable-if}' - pass-threshold: '{pass-if}' + output-path: "archives" + output-xml: "**/output.xml" + report-html: "**/report.html" + log-html: "**/log.html" + other-files: "" + unstable-threshold: "{unstable-if}" + pass-threshold: "{pass-if}" only-critical: false + +- publisher: + name: integration-project-robot + publishers: + - robot: + output-path: "csit/archives" + output-xml: "**/output.xml" + report-html: "**/report.html" + log-html: "**/log.html" + other-files: "" + unstable-threshold: "{unstable-if}" + pass-threshold: "{pass-if}" + only-critical: false + +- publisher: + name: integration-docker-compose-logs + publishers: + - postbuildscript: + builders: + - role: BOTH + build-on: + - FAILURE + - SUCCESS + - UNSTABLE + build-steps: + - integration-docker-compose-logs