From 4437e13657ac30e48422717f7ba8447b59d5b7f0 Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Mon, 2 Apr 2018 19:19:44 +0300 Subject: [PATCH] sauce labs report fix - attempt 2 --- test/Jenkinsfile | 4 ++-- test/end-to-end/pytest.ini | 2 +- test/end-to-end/tests/results/.gitignore | 0 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 test/end-to-end/tests/results/.gitignore diff --git a/test/Jenkinsfile b/test/Jenkinsfile index 16ee5e4..b6e92ea 100644 --- a/test/Jenkinsfile +++ b/test/Jenkinsfile @@ -2,11 +2,11 @@ node ('linux1') {sauce('1be1b688-e0e7-4314-92a0-db11f52d3c00') { checkout([$class: 'GitSCM', branches: [[name: '*/develop']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CleanBeforeCheckout']], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/status-im/open-bounty.git']]]) configFileProvider([configFile(fileId: 'sob_automation_test_config', targetLocation: 'test/end-to-end/tests')]) { try {withCredentials([string(credentialsId: 'SOB_SAUCE_ACCESS_KEY', variable: 'SAUCE_ACCESS_KEY'), string(credentialsId: 'SOB_SAUCE_USERNAME', variable: 'SAUCE_USERNAME')]) - {sh 'cd test && docker build -t end2end . && docker run --rm -e "SAUCE_USERNAME="${SAUCE_USERNAME} -e "SAUCE_ACCESS_KEY="${SAUCE_ACCESS_KEY} --name end2end-container end2end -m pytest -m sanity --build=$BUILD_NAME -v -n 1'} + {sh 'cd test && docker build -t end2end . && docker run -v `pwd`/end-to-end/tests/results:/app/results --rm -e "SAUCE_USERNAME="${SAUCE_USERNAME} -e "SAUCE_ACCESS_KEY="${SAUCE_ACCESS_KEY} --name end2end-container end2end -m pytest -m sanity --build=$BUILD_NAME -v -n 1'} } finally { saucePublisher() - junit testDataPublishers: [[$class: 'SauceOnDemandReportPublisher', jobVisibility: 'public']], testResults: 'test/end-to-end/tests/*.xml' } + junit testDataPublishers: [[$class: 'SauceOnDemandReportPublisher', jobVisibility: 'public']], testResults: 'test/end-to-end/tests/results/*.xml' } } } } \ No newline at end of file diff --git a/test/end-to-end/pytest.ini b/test/end-to-end/pytest.ini index 89c0c76..1964f28 100644 --- a/test/end-to-end/pytest.ini +++ b/test/end-to-end/pytest.ini @@ -1,3 +1,3 @@ [pytest] norecursedirs = .git pages -addopts = -s -v --junitxml=result.xml --tb=short +addopts = -s -v --junitxml=results/result.xml --tb=short diff --git a/test/end-to-end/tests/results/.gitignore b/test/end-to-end/tests/results/.gitignore new file mode 100644 index 0000000..e69de29