build : 添加skywalking

This commit is contained in:
clay
2024-05-08 22:47:53 +08:00
parent 6d7d4bac9a
commit f6a096fb3e
4 changed files with 11 additions and 7 deletions

View File

@@ -30,14 +30,14 @@ batchArr=("admin-biz:admin"
batch=${DRONE_COMMIT_BRANCH}
ignoreArr=("monitor","sentinel-dashboard-pro","sentinel-dashboard")
rm -rf /app/build/$DRONE_COMMIT_BRANCH/skywalking-agent/*
if [[ "${ignoreArr[*]}" =~ "${batch}" ]]; then
echo "exist";
cp -r /app/build/skywalking-agent /app/build/$DRONE_COMMIT_BRANCH/skywalking-agent
rm -rf /app/build/$DRONE_COMMIT_BRANCH/skywalking-agent/*
else
echo "does not exist";
cp -r /app/build/skywalking-agent /app/build/$DRONE_COMMIT_BRANCH/skywalking-agent
cp agent.config /app/build/$DRONE_COMMIT_BRANCH/skywalking-agent/config/agent.config
# cp agent.config /app/build/$DRONE_COMMIT_BRANCH/skywalking-agent/config/agent.config
fi