Skip to content

Commit 39b3652

Browse files
committed
CI: Add publishing JUnit results to the XPack test runner script
(cherry picked from commit 4290e0e)
1 parent b1f034c commit 39b3652

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.jenkins/tests-xpack.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ docker exec go-elasticsearch mv esapi/test/xpack/ml/xpack_ml__jobs_crud_test.go
2323

2424
echo -e "\033[1m>>>>> XPACK >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m"
2525

26-
time docker exec --tty --workdir=/go-elasticsearch/esapi/test go-elasticsearch /bin/sh -c "gotestsum --format=short-verbose -- --tags='integration' --timeout=1h -v xpack/*_test.go"
26+
time docker exec --tty --workdir=/go-elasticsearch/esapi/test go-elasticsearch /bin/sh -c 'gotestsum --format=short-verbose --junitfile=$WORKSPACE/TEST-integration-api-xpack-junit.xml -- --tags=integration --timeout=1h -v xpack/*_test.go'
2727
status1=$?
2828

2929
docker container rm --force --volumes es1 > /dev/null 2>&1
3030
make cluster-clean cluster version=elasticsearch:8.0.0-SNAPSHOT detached=true
3131

3232
echo -e "\033[1m>>>>> XPACK ML >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m"
3333

34-
time docker exec --tty --workdir=/go-elasticsearch/esapi/test go-elasticsearch /bin/sh -c "gotestsum --format=short-verbose -- --tags='integration' --timeout=1h -v ./xpack/ml/*_test.go"
34+
time docker exec --tty --workdir=/go-elasticsearch/esapi/test go-elasticsearch /bin/sh -c 'gotestsum --format=short-verbose --junitfile=$WORKSPACE/TEST-integration-api-xpack-ml-junit.xml -- --tags=integration --timeout=1h -v ./xpack/ml/*_test.go'
3535
status2=$?
3636

3737
docker container rm --force --volumes es1 > /dev/null 2>&1
3838
make cluster-clean cluster version=elasticsearch:8.0.0-SNAPSHOT detached=true
3939

4040
echo -e "\033[1m>>>>> XPACK ML CRUD >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m"
4141

42-
time docker exec --tty --workdir=/go-elasticsearch/esapi/test go-elasticsearch /bin/sh -c "gotestsum --format=short-verbose -- --tags='integration' --timeout=1h -v ./xpack/ml-crud/*_test.go"
42+
time docker exec --tty --workdir=/go-elasticsearch/esapi/test go-elasticsearch /bin/sh -c 'gotestsum --format=short-verbose --junitfile=$WORKSPACE/TEST-integration-api-xpack-ml-crud-junit.xml -- --tags=integration --timeout=1h -v ./xpack/ml-crud/*_test.go'
4343
status3=$?
4444

4545
if [[ $status1 == 0 && $status2 == 0 || $status3 == 0 ]]; then

0 commit comments

Comments
 (0)