Fix report file path
Change-Id: Ib94f5eace46a55ee8324a0b7caed69021a3c9b9a
diff --git a/tcp-qa-pipeline.groovy b/tcp-qa-pipeline.groovy
index 1b178b4..17a7c3e 100644
--- a/tcp-qa-pipeline.groovy
+++ b/tcp-qa-pipeline.groovy
@@ -81,7 +81,7 @@
. ${VENV_PATH}/bin/activate
cd tcp_tests
- if ! py.test -vvv -s -p no:django -p no:ipdb --junit-xml=nosetests.xml -k ${TEST_GROUP}; then
+ if ! py.test -vvv -s -p no:django -p no:ipdb --junit-xml=../nosetests.xml -k ${TEST_GROUP}; then
echo "Tests failed!"
exit 1
fi
@@ -98,14 +98,14 @@
def uploadResults(){
stage('Upload tests results'){
- def thisBuildUrl = "${env.JENKINS_URL}/job/${JOB_NAME}/${BUILD_NUMBER}/"
- def testPlanName = "${env.TESTRAIL_MILESTONE} Integration-${new Date().format('yyyy-MM-dd')}"
+ def thisBuildUrl = "${JENKINS_URL}/job/${JOB_NAME}/${BUILD_NUMBER}/"
+ def testPlanName = "${TESTRAIL_MILESTONE} Integration-${new Date().format('yyyy-MM-dd')}"
qaCommon.uploadResultsTestRail([
- junitXml: "${env.WORKSPACE}/nosetests.xml",
+ junitXml: "${WORKSPACE}/nosetests.xml",
testPlanName: testPlanName,
- testSuiteName: "${env.TESTRAIL_TEST_SUITE}",
- testrailMilestone: "${env.TESTRAIL_MILESTONE}",
+ testSuiteName: "${TESTRAIL_TEST_SUITE}",
+ testrailMilestone: "${TESTRAIL_MILESTONE}",
jobURL: thisBuildUrl,
])
}