open-bounty/test/Jenkinsfile

12 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-01-26 11:36:08 +00:00
node ('linux1') {sauce('1be1b688-e0e7-4314-92a0-db11f52d3c00') {
2018-04-23 15:03:20 +00:00
checkout([$class: 'GitSCM', branches: [[name: '$branch']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CleanBeforeCheckout']], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/status-im/open-bounty.git']]])
2018-01-26 11:36:08 +00:00
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')])
2018-04-02 16:19:44 +00:00
{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'}
2018-01-26 11:36:08 +00:00
}
finally {
saucePublisher()
2018-04-02 16:19:44 +00:00
junit testDataPublishers: [[$class: 'SauceOnDemandReportPublisher', jobVisibility: 'public']], testResults: 'test/end-to-end/tests/results/*.xml' }
2018-01-26 11:36:08 +00:00
}
}
}