Skip to content

Commit e8d528a

Browse files
ci: fix dir step (#721)
* chore: interchange steps order * fix: set folder name to PythonVersion/framework
1 parent 2204a31 commit e8d528a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Jenkinsfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -341,20 +341,20 @@ class PythonParallelTaskGenerator extends DefaultParallelTaskGenerator {
341341
keepLongStdio: true,
342342
testResults: "**/python-agent-junit.xml,**/target/**/TEST-*.xml"
343343
)
344+
steps.dir("${steps.env.BASE_DIR}/tests"){
345+
steps.archiveArtifacts(
346+
allowEmptyArchive: true,
347+
artifacts: '**/docker-info/**',
348+
defaultExcludes: false
349+
)
350+
}
344351
steps.env.PYTHON_VERSION = "${x}"
345352
steps.env.WEBFRAMEWORK = "${y}"
346353
steps.codecov(repo: "${steps.env.REPO}",
347354
basedir: "${steps.env.BASE_DIR}",
348355
flags: "-e PYTHON_VERSION,WEBFRAMEWORK",
349356
secret: "${steps.env.CODECOV_SECRET}"
350357
)
351-
dir("${steps.env.BASE_DIR}/tests"){
352-
steps.archiveArtifacts(
353-
allowEmptyArchive: true,
354-
artifacts: '**/docker-info/**',
355-
defaultExcludes: false
356-
)
357-
}
358358
}
359359
}
360360
}

tests/scripts/docker/run_tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -ex
44
function cleanup {
55
if [ -n "${BUILD_NUMBER}" ]; then # only on CI
66
./scripts/docker/docker-summary.sh
7-
./scripts/docker/docker-get-logs.sh "${1}-${2}"
7+
./scripts/docker/docker-get-logs.sh "${TEST}"
88
fi
99
PYTHON_VERSION=${1} docker-compose down -v
1010

@@ -22,6 +22,7 @@ fi
2222

2323
pip_cache="$HOME/.cache"
2424
docker_pip_cache="/tmp/cache/pip"
25+
TEST="${1}/${2}"
2526

2627
cd tests
2728

0 commit comments

Comments
 (0)