From c0a212100b82ca7ebc2883b1401178395ed6a898 Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Tue, 20 Sep 2022 19:04:14 +0800 Subject: [PATCH] use $JOBNAME --- pipelines/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelines/build.sh b/pipelines/build.sh index 844659d..b30c10e 100644 --- a/pipelines/build.sh +++ b/pipelines/build.sh @@ -22,7 +22,7 @@ echo "===================== show package info =====================" pip show $JOB_NAME echo "===================== download code style tests =====================" -if [ "JOB_NAME" != "csst_proto" ]; then +if [ "$JOB_NAME" != "csst_proto" ]; then curl -O https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto/-/raw/main/pipelines/test_codestyle.py fi coverage run -m pytest @@ -33,7 +33,7 @@ coverage html # zip -q -r htmlcov.zip htmlcov echo "===================== importability =====================" -python -c "from $project.top_level_interface import *" +python -c "from $JOB_NAME.top_level_interface import *" echo "===================== POST BUILD BELOW =====================" # In Jenkins: -- GitLab