Skip to content

Commit

Permalink
feat: add auto connect
Browse files Browse the repository at this point in the history
  • Loading branch information
WGrape committed Mar 5, 2024
1 parent 674f2fa commit 425e4ec
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .pipeline/start.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
#!/bin/sh

CUR_PATH=$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)
CUR_PATH=$(cd "$(dirname "$0")" && pwd)
cd $CUR_PATH && cd ../
BASE_PATH=$(pwd)
. $BASE_PATH/.pipeline/internal/helper.sh

printf "================ Debug Start ================\n\n"
show_env(){
echo "1. cat /proc/version="$(cat /proc/version)
echo "2. pwd="$(pwd)
echo "3. ls="$(ls -a)
}
show_env
printf "================ End Debug ================\n\n"

printf "\e[36m>>>>>>>>>>> Start Pipeline\e[0m\n\n"

job_queue=(
# ========================= CI =========================
# [stage] = pre
Expand Down Expand Up @@ -62,3 +73,5 @@ for job_name in "${job_queue[@]}"; do
exit 1
fi
done

printf "\e[36m<<<<<<<<<<< End Pipeline\e[0m"
10 changes: 10 additions & 0 deletions connect.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

CUR_PATH=$(cd "$(dirname "$0")" && pwd)
cd $CUR_PATH
BASE_PATH=$(pwd)

cp -anr ${BASE_PATH}/.pipeline ${BASE_PATH}/../
cd ${BASE_PATH}/../

rm -rf ./CIManager

0 comments on commit 425e4ec

Please sign in to comment.