Skip to content

Commit a301e9b

Browse files
committed
jenkins.bash: Do git cleanup before loop, use different name of results
1 parent fa0144d commit a301e9b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jenkins.bash

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ venv() {
2020
source "$1"/bin/activate
2121
}
2222

23-
git clean --force -d -x || /bin/true
2423
cloneorpull common-workflow-language https://github.com/common-workflow-language/common-workflow-language.git
2524
docker pull node:slim
25+
# clean both the repos before the loop
26+
git clean --force -d -x || /bin/true
27+
git -C common-workflow-language clean --force -d -x || /bin/true
2628

2729
# Test for Python 2.7 and Python 3
2830
for PYTHON_VERSION in 2.7 3
@@ -34,13 +36,12 @@ do
3436
pip${PYTHON_VERSION} install .
3537
pip${PYTHON_VERSION} install "cwltest>=1.0.20160825151655"
3638
pushd common-workflow-language
37-
git clean --force -d -x || /bin/true
3839
# shellcheck disable=SC2154
3940
if [[ "$version" = *dev* ]]
4041
then
4142
EXTRA="EXTRA=--enable-dev"
4243
fi
43-
./run_test.sh --junit-xml=result.xml RUNNER=cwltool -j4 DRAFT=${version}
44+
./run_test.sh --junit-xml=result${PYTHON_VERSION}.xml RUNNER=cwltool -j4 DRAFT=${version}
4445
deactivate
4546
CODE=$?
4647
popd

0 commit comments

Comments
 (0)