Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload unit test results to test guide #635

Merged
merged 12 commits into from
Dec 11, 2023
4 changes: 4 additions & 0 deletions Jenkinsfile.internal
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ pipeline {
environment {
authKey = credentials('TG_authkey_test_report_upload')
pipeline_report_dir = "report2TG/build-$env.BUILD_NUMBER"
PRODUCT_NAME = "ecutest-plugin"
PRODUCT_VERSION = readMavenPom().getVersion()
TEST_LEVEL = "Unit Tests"
}
tools {
maven 'M3'
Expand All @@ -55,6 +58,7 @@ pipeline {
steps {
mvn 'jacoco:prepare-agent surefire:test -Dsurefire.useFile=false'
junit 'target/surefire-reports/TEST-*.xml'
Xml2TG((long) currentBuild.startTimeInMillis, "target/surefire-reports", "JUnit","uploadJson", [:], [:], "${TESTGUIDE_url}", "${authKey}", "${TESTGUIDE_projectID}")
jacoco exclusionPattern: '**/Messages.class', execPattern: 'target/jacoco.exec'
}
}
Expand Down
Loading