File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,8 @@ jobs:
367367 "TEST_CHIPS":"${{ steps.prepare-variables.outputs.test_chips }}",
368368 "PIPELINE_ID":"${{ env.id }}",
369369 "BINARIES_RUN_ID":"${{ github.event.workflow_run.id }}",
370- "GITHUB_REPOSITORY":"${{ github.repository }}"
370+ "GITHUB_REPOSITORY":"${{ github.repository }}",
371+ "GITHUB_REF":"${{ needs.get-artifacts.outputs.base }}"
371372 }
372373
373374 - name : Process Downloaded Artifacts
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ generate-hw-tests:
1515 DEBIAN_FRONTEND : " noninteractive"
1616 TEST_TYPES : $TEST_TYPES
1717 TEST_CHIPS : $TEST_CHIPS
18+ GIT_STRATEGY : none
1819 before_script :
20+ - apt-get update && apt-get install -y git
21+ - echo "Cloning repository from GitHub:$GITHUB_REPOSITORY at ref $GITHUB_REF"
22+ - git clone --branch $GITHUB_REF --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
1923 - bash .gitlab/scripts/install_dependencies.sh
2024 script :
2125 - mkdir -p ~/.arduino/tests
@@ -48,6 +52,7 @@ trigger-hw-tests:
4852 # Forward common context to children
4953 BINARIES_RUN_ID : $BINARIES_RUN_ID
5054 GITHUB_REPOSITORY : $GITHUB_REPOSITORY
55+ GITHUB_REF : $GITHUB_REF
5156 PIPELINE_ID : $PIPELINE_ID
5257 trigger :
5358 include :
@@ -62,8 +67,12 @@ collect-hw-results:
6267 rules :
6368 - if : $CI_PIPELINE_SOURCE == "trigger"
6469 when : always
70+ variables :
71+ GIT_STRATEGY : none
6572 before_script :
66- - apt-get update && apt-get install -y jq curl unzip
73+ - apt-get update && apt-get install -y jq curl unzip git
74+ - echo "Cloning repository from GitHub:$GITHUB_REPOSITORY at ref $GITHUB_REF"
75+ - git clone --branch $GITHUB_REF --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
6776 script :
6877 - bash .gitlab/scripts/get_results.sh
6978 artifacts :
Original file line number Diff line number Diff line change @@ -25,14 +25,18 @@ hw-test-template:
2525 PIPELINE_ID : $PIPELINE_ID
2626 BINARIES_RUN_ID : $BINARIES_RUN_ID
2727 GITHUB_REPOSITORY : $GITHUB_REPOSITORY
28+ GITHUB_REF : $GITHUB_REF
29+ GIT_STRATEGY : none
2830
2931 tags :
3032 - $TEST_CHIP
3133
3234 before_script :
3335 - echo "Running hardware tests for chip:$TEST_CHIP type:$TEST_TYPE"
3436 - echo "Pipeline ID:$PIPELINE_ID"
35- - echo "Running hardware tests for chip:$TEST_CHIP"
37+ - echo "Cloning repository from GitHub:$GITHUB_REPOSITORY at ref $GITHUB_REF"
38+ - apt-get update && apt-get install -y git
39+ - git clone --branch $GITHUB_REF --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
3640 - bash .gitlab/scripts/install_dependencies.sh
3741 - rm -rf ~/.arduino/tests
3842 - mkdir -p ~/.arduino/tests/$TEST_CHIP
You can’t perform that action at this time.
0 commit comments