Skip to content

Commit

Permalink
Merge branch 'add_random_sleep' into 'dev'
Browse files Browse the repository at this point in the history
add both random sleep step for test device and latest link

See merge request maix_sw/k230_canmv!302
  • Loading branch information
wuwentao committed Aug 6, 2024
2 parents 1012652 + 648aaa6 commit 4fa50cb
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 4fa50cb

Please sign in to comment.