Skip to content

Commit

Permalink
add both random sleep step for test device and latest link
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwentao committed Aug 6, 2024
1 parent 1012652 commit 648aaa6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,10 @@ release_image_publish:
- echo "${DST_DIR}/${SUB_DIR}/"
- ls "${DST_DIR}/${SUB_DIR}/"
- echo "add latest link for current build"
- echo "generate three random numers to sleep and schedule more pipeline job"
- sleep $((RANDOM % 9 + 1))
- sleep $((RANDOM % 9 + 1))
- sleep $((RANDOM % 9 + 1))
- test -h ${DST_DIR}/latest && sudo rm ${DST_DIR}/latest || { test -h ${DST_DIR}/latest && sudo rm ${DST_DIR}/latest; }
- sudo ln -s ${DST_DIR}/${SUB_BASE} ${DST_DIR}/latest || exit 1
- echo "----------save image done----------"
Expand Down Expand Up @@ -486,6 +490,10 @@ release_image_publish:
fi
- echo "MR ID ${CI_MERGE_REQUEST_IID}"
- echo "Pipeline ID ${CI_PIPELINE_ID}"
- echo "generate three random numers to sleep and schedule more pipeline job"
- sleep $((RANDOM % 9 + 1))
- sleep $((RANDOM % 9 + 1))
- sleep $((RANDOM % 9 + 1))
- test -d bin || mkdir ./bin
- test -f ./bin/ailab && rm -rf ./bin/ailab
- wget -qc https://ai.b-bug.org/k230/test_resources/ci/tools/ailab -O ./bin/ailab
Expand Down

0 comments on commit 648aaa6

Please sign in to comment.