Skip to content

Commit e298efb

Browse files
committed
change
1 parent 2c86cee commit e298efb

File tree

2 files changed

+26
-97
lines changed

2 files changed

+26
-97
lines changed

.github/workflows/blossom-ci.yml

Lines changed: 0 additions & 97 deletions
This file was deleted.

.github/workflows/l0-test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
# A workflow to trigger ci on hybrid infra (github + self hosted runner)
1717
name: L0-Test
1818
on:
19+
issue_comment:
20+
types: [created]
1921
workflow_dispatch:
2022
inputs:
2123
sha:
@@ -27,7 +29,27 @@ on:
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
3035
jobs:
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
@@ -52,6 +74,10 @@ jobs:
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

0 commit comments

Comments
 (0)