ci: use the retry script to download
This commit is contained in:
parent
8ed6242e27
commit
c2d261c88e
5 changed files with 12 additions and 12 deletions
|
@ -32,7 +32,7 @@ assign_test:
|
||||||
# assign unit test cases
|
# assign unit test cases
|
||||||
- python tools/ci/python_packages/ttfw_idf/CIAssignUnitTest.py $UNIT_TEST_CASE_FILE $CI_TARGET_TEST_CONFIG_FILE $IDF_PATH/components/idf_test/unit_test/CIConfigs
|
- python tools/ci/python_packages/ttfw_idf/CIAssignUnitTest.py $UNIT_TEST_CASE_FILE $CI_TARGET_TEST_CONFIG_FILE $IDF_PATH/components/idf_test/unit_test/CIConfigs
|
||||||
# clone test script to assign tests
|
# clone test script to assign tests
|
||||||
- git clone $TEST_SCRIPT_REPOSITORY
|
- ./tools/ci/retry_failed.sh git clone $TEST_SCRIPT_REPOSITORY
|
||||||
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
|
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
|
||||||
- cd auto_test_script
|
- cd auto_test_script
|
||||||
# assgin integration test cases
|
# assgin integration test cases
|
||||||
|
@ -63,7 +63,7 @@ update_test_cases:
|
||||||
PYTHON_VER: 3
|
PYTHON_VER: 3
|
||||||
script:
|
script:
|
||||||
- export GIT_SHA=$(echo ${CI_COMMIT_SHA} | cut -c 1-8)
|
- export GIT_SHA=$(echo ${CI_COMMIT_SHA} | cut -c 1-8)
|
||||||
- git clone $TEST_MANAGEMENT_REPO
|
- ./tools/ci/retry_failed.sh git clone $TEST_MANAGEMENT_REPO
|
||||||
- python $CHECKOUT_REF_SCRIPT test-management test-management
|
- python $CHECKOUT_REF_SCRIPT test-management test-management
|
||||||
- cd test-management
|
- cd test-management
|
||||||
- echo $BOT_JIRA_ACCOUNT > ${BOT_ACCOUNT_CONFIG_FILE}
|
- echo $BOT_JIRA_ACCOUNT > ${BOT_ACCOUNT_CONFIG_FILE}
|
||||||
|
|
|
@ -37,7 +37,7 @@ build_template_app:
|
||||||
script:
|
script:
|
||||||
# Set the variable for 'esp-idf-template' testing
|
# Set the variable for 'esp-idf-template' testing
|
||||||
- ESP_IDF_TEMPLATE_GIT=${ESP_IDF_TEMPLATE_GIT:-"https://github.com/espressif/esp-idf-template.git"}
|
- ESP_IDF_TEMPLATE_GIT=${ESP_IDF_TEMPLATE_GIT:-"https://github.com/espressif/esp-idf-template.git"}
|
||||||
- git clone ${ESP_IDF_TEMPLATE_GIT}
|
- ./tools/ci/retry_failed.sh git clone ${ESP_IDF_TEMPLATE_GIT}
|
||||||
- python $CHECKOUT_REF_SCRIPT esp-idf-template esp-idf-template
|
- python $CHECKOUT_REF_SCRIPT esp-idf-template esp-idf-template
|
||||||
- cd esp-idf-template
|
- cd esp-idf-template
|
||||||
# Try to use the same branch name for esp-idf-template that we're
|
# Try to use the same branch name for esp-idf-template that we're
|
||||||
|
@ -72,7 +72,7 @@ build_ssc:
|
||||||
- $BOT_LABEL_INTEGRATION_TEST
|
- $BOT_LABEL_INTEGRATION_TEST
|
||||||
- $BOT_LABEL_REGULAR_TEST
|
- $BOT_LABEL_REGULAR_TEST
|
||||||
script:
|
script:
|
||||||
- git clone $SSC_REPOSITORY
|
- ./tools/ci/retry_failed.sh git clone $SSC_REPOSITORY
|
||||||
- python $CHECKOUT_REF_SCRIPT SSC SSC
|
- python $CHECKOUT_REF_SCRIPT SSC SSC
|
||||||
- cd SSC
|
- cd SSC
|
||||||
- MAKEFLAGS= ./ci_build_ssc.sh
|
- MAKEFLAGS= ./ci_build_ssc.sh
|
||||||
|
|
|
@ -150,7 +150,7 @@ deploy_test_result:
|
||||||
# artifacts of job update_test_cases creates test-management folder
|
# artifacts of job update_test_cases creates test-management folder
|
||||||
# we need to remove it so we can clone test-management folder again
|
# we need to remove it so we can clone test-management folder again
|
||||||
- rm -r test-management
|
- rm -r test-management
|
||||||
- git clone $TEST_MANAGEMENT_REPO
|
- ./tools/ci/retry_failed.sh git clone $TEST_MANAGEMENT_REPO
|
||||||
- python3 $CHECKOUT_REF_SCRIPT test-management test-management
|
- python3 $CHECKOUT_REF_SCRIPT test-management test-management
|
||||||
- cd test-management
|
- cd test-management
|
||||||
- echo $BOT_JIRA_ACCOUNT > ${BOT_ACCOUNT_CONFIG_FILE}
|
- echo $BOT_JIRA_ACCOUNT > ${BOT_ACCOUNT_CONFIG_FILE}
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
- $IDF_PATH/examples/get-started/hello_world/tidybuild/report/*
|
- $IDF_PATH/examples/get-started/hello_world/tidybuild/report/*
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
script:
|
script:
|
||||||
- git clone $IDF_ANALYSIS_UTILS static_analysis_utils && cd static_analysis_utils
|
- ./tools/ci/retry_failed.sh git clone $IDF_ANALYSIS_UTILS static_analysis_utils && cd static_analysis_utils
|
||||||
# Setup parameters of triggered/regular job
|
# Setup parameters of triggered/regular job
|
||||||
- export TRIGGERED_RELATIVE=${BOT_LABEL_STATIC_ANALYSIS-} && export TRIGGERED_ABSOLUTE=${BOT_LABEL_STATIC_ANALYSIS_ALL-} && export TARGET_BRANCH=${BOT_CUSTOMIZED_REVISION-}
|
- export TRIGGERED_RELATIVE=${BOT_LABEL_STATIC_ANALYSIS-} && export TRIGGERED_ABSOLUTE=${BOT_LABEL_STATIC_ANALYSIS_ALL-} && export TARGET_BRANCH=${BOT_CUSTOMIZED_REVISION-}
|
||||||
- ./analyze.sh $IDF_PATH/examples/get-started/hello_world/ $IDF_PATH/tools/ci/static-analysis-rules.yml $IDF_PATH/output.xml
|
- ./analyze.sh $IDF_PATH/examples/get-started/hello_world/ $IDF_PATH/tools/ci/static-analysis-rules.yml $IDF_PATH/output.xml
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
# first test if config file exists, if not exist, exit 0
|
# first test if config file exists, if not exist, exit 0
|
||||||
- test -e $CONFIG_FILE || exit 0
|
- test -e $CONFIG_FILE || exit 0
|
||||||
# clone test env configs
|
# clone test env configs
|
||||||
- git clone $TEST_ENV_CONFIG_REPOSITORY
|
- ./tools/ci/retry_failed.sh git clone $TEST_ENV_CONFIG_REPOSITORY
|
||||||
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
||||||
- cd tools/ci/python_packages/tiny_test_fw/bin
|
- cd tools/ci/python_packages/tiny_test_fw/bin
|
||||||
# run test
|
# run test
|
||||||
|
@ -105,10 +105,10 @@
|
||||||
# first test if config file exists, if not exist, exit 0
|
# first test if config file exists, if not exist, exit 0
|
||||||
- test -e $CONFIG_FILE || exit 0
|
- test -e $CONFIG_FILE || exit 0
|
||||||
# clone local test env configs
|
# clone local test env configs
|
||||||
- git clone $TEST_ENV_CONFIG_REPOSITORY
|
- ./tools/ci/retry_failed.sh git clone $TEST_ENV_CONFIG_REPOSITORY
|
||||||
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
||||||
# clone test bench
|
# clone test bench
|
||||||
- git clone $TEST_SCRIPT_REPOSITORY
|
- ./tools/ci/retry_failed.sh git clone $TEST_SCRIPT_REPOSITORY
|
||||||
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
|
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
|
||||||
- cd auto_test_script
|
- cd auto_test_script
|
||||||
# run test
|
# run test
|
||||||
|
@ -163,7 +163,7 @@ example_test_002:
|
||||||
# first test if config file exists, if not exist, exit 0
|
# first test if config file exists, if not exist, exit 0
|
||||||
- test -e $CONFIG_FILE || exit 0
|
- test -e $CONFIG_FILE || exit 0
|
||||||
# clone test env configs
|
# clone test env configs
|
||||||
- git clone $TEST_ENV_CONFIG_REPOSITORY
|
- ./tools/ci/retry_failed.sh git clone $TEST_ENV_CONFIG_REPOSITORY
|
||||||
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
||||||
- cd tools/ci/python_packages/tiny_test_fw/bin
|
- cd tools/ci/python_packages/tiny_test_fw/bin
|
||||||
# run test
|
# run test
|
||||||
|
@ -407,10 +407,10 @@ nvs_compatible_test:
|
||||||
# first test if config file exists, if not exist, exit 0
|
# first test if config file exists, if not exist, exit 0
|
||||||
- test -e $CONFIG_FILE || exit 0
|
- test -e $CONFIG_FILE || exit 0
|
||||||
# clone local test env configs
|
# clone local test env configs
|
||||||
- git clone $TEST_ENV_CONFIG_REPOSITORY
|
- ./tools/ci/retry_failed.sh git clone $TEST_ENV_CONFIG_REPOSITORY
|
||||||
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
||||||
# clone test bench
|
# clone test bench
|
||||||
- git clone $TEST_SCRIPT_REPOSITORY
|
- ./tools/ci/retry_failed.sh git clone $TEST_SCRIPT_REPOSITORY
|
||||||
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
|
- python $CHECKOUT_REF_SCRIPT auto_test_script auto_test_script
|
||||||
- cd auto_test_script
|
- cd auto_test_script
|
||||||
# prepare nvs bins
|
# prepare nvs bins
|
||||||
|
|
Loading…
Reference in a new issue