Page History
...
For the Travis CI the important change we must do is in the YAML file that will configure Travis CI pipeline, we use the following configuration to achieve that:.travis.yml
Code Block | ||||
---|---|---|---|---|
| ||||
sudo: false language: java jdk: - openjdk8 cache: directories: - "$HOME/.cache" jobs: include: - stage: test and report to Xray script: - | echo "building repo..." mvn clean compile test --file pom.xml curl -H "Content-Type: multipart/form-data" -X POST -u $USERNAME:$PASSWORD -F "file=@target/surefire-reports/TEST-com.xpand.java.CalcTest.xml" "https://$JIRASERVER/rest/raven/2.0/import/execution/junit?projectKey=$PROJECTKEY&testPlanKey=$TESTPLAN" echo "done" |
...
As you can see we are pushing results back to Xray with the last curl command:
curl command
Code Block | ||||
---|---|---|---|---|
| ||||
curl -H "Content-Type: multipart/form-data" -X POST -u $USERNAME:$PASSWORD -F "file=@target/surefire-reports/TEST-com.xpand.java.CalcTest.xml" "https://$JIRASERVER/rest/raven/2.0/import/execution/junit?projectKey=$PROJECTKEY&testPlanKey=$TESTPLAN" |
...