File tree Expand file tree Collapse file tree 2 files changed +26
-97
lines changed Expand file tree Collapse file tree 2 files changed +26
-97
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1616# A workflow to trigger ci on hybrid infra (github + self hosted runner)
1717name : L0-Test
1818on :
19+ issue_comment :
20+ types : [created]
1921 workflow_dispatch :
2022 inputs :
2123 sha :
2729 test_results_url :
2830 description : ' test results url'
2931 required : true
32+ test_results_page_url :
33+ description : ' test results page url'
34+ required : false
3035jobs :
36+ Job-trigger :
37+ name : Start ci job
38+ if : startsWith( github.event.comment.body, '/bot' )
39+ runs-on : [self-hosted, Linux, Jenkins]
40+ steps :
41+ - name : Start ci job
42+ env :
43+ githubData : ${{ toJSON(github.event) }}
44+ run : |
45+ CI_SERVER="${{ secrets.CI_SERVER }}"
46+ JENKINS_URL=$(echo "$CI_SERVER" | cut -d '@' -f 1)
47+ TOKEN=$(echo "$CI_SERVER" | cut -d '@' -f 2)
48+ printf '%s' "$githubData" > githubData.json
49+ curl -s -X POST --fail-with-body \
50+ -H "Content-Type: application/json" \
51+ -d @githubData.json \
52+ "$JENKINS_URL/generic-webhook-trigger/invoke?token=$TOKEN"
3153 Upload-Test :
3254 name : Upload test results
3355 runs-on : linux-amd64-cpu4
5274 state: state,
5375 description: description,
5476 })
77+ - name : Get link to test results page
78+ if : github.event.inputs.test_results_page_url != ''
79+ run : |
80+ echo "Test results page URL: ${{ github.event.inputs.test_results_page_url }}"
5581 - name : Collect test result
5682 run : rm -rf results && mkdir results && cd results && curl --user svc_tensorrt:${{ secrets.ARTIFACTORY_TOKEN }} -L ${{ github.event.inputs.test_results_url }} | tar -xz
5783 - name : Create test summary
You can’t perform that action at this time.
0 commit comments