Skip to content

Commit

Permalink
update: update pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WGrape committed Mar 3, 2024
1 parent 6a7febc commit 6b00e18
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pipeline/ci/stage_pre/job_pre_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# complete the installation of all dependencies
echo "1. apt-get update && apt-get install -y curl"
mv /etc/apt/sources.list /etc/apt/sources.list.bak \
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak \
&& echo 'deb http://mirrors.163.com/debian/ stretch main non-free contrib' > /etc/apt/sources.list \
&& echo 'deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib' >> /etc/apt/sources.list \
&& echo 'deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib' >> /etc/apt/sources.list \
Expand Down
8 changes: 4 additions & 4 deletions .pipeline/internal/helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ print_warn() {

# print phase message.
print_phase() {
if [ "$STAGE_ID" = "" ]; then
STAGE_ID=0
if [ "$PHASE_ID" = "" ]; then
PHASE_ID=0
fi
((STAGE_ID++))
printf "\e[36m+++++ Phase$STAGE_ID: $1 +++++\e[0m\n\n"
((PHASE_ID++))
printf "\e[36m+++++ Phase$PHASE_ID: $1 +++++\e[0m\n\n"
}

# print step message.
Expand Down
10 changes: 10 additions & 0 deletions test/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

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

echo "test start"

echo "end test"

0 comments on commit 6b00e18

Please sign in to comment.