Skip to content

Commit

Permalink
Update locust_packCode.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
qtracer authored Sep 21, 2024
1 parent b6cc9f6 commit 413c18a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion func/locust_packCode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ mkdir -vp $locust_workspace
# 将jenkins_workspace/的性能项目代码复制到/opt/locust
jenkins_workspace=$(pwd)

rm -rf ${locust_workspace}/${JOB_NAME}
if [ -d "${locust_workspace}/${JOB_NAME}" ];then
rm -rf ${locust_workspace}/${JOB_NAME}
fi
cp -rf $(dirname $jenkins_workspace)/${JOB_NAME} $locust_workspace

# 根据条件,将TestDeploy中的部分文件copy一份到Locust工作目录
Expand Down

0 comments on commit 413c18a

Please sign in to comment.