From c1994e58bf57b725303cad8283aba1199b3656f6 Mon Sep 17 00:00:00 2001 From: Zach Dworkin Date: Wed, 30 Oct 2024 11:19:07 -0700 Subject: [PATCH] .github/workflows: Add Intel CI Jenkins trigger job Signed-off-by: Zach Dworkin --- .github/workflows/intel_ci_trigger.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/intel_ci_trigger.yml diff --git a/.github/workflows/intel_ci_trigger.yml b/.github/workflows/intel_ci_trigger.yml new file mode 100644 index 00000000000..85c545f4c1f --- /dev/null +++ b/.github/workflows/intel_ci_trigger.yml @@ -0,0 +1,24 @@ +--- + name: 'Intel CI' + + on: + workflow_dispatch: + pull_request: + branches: + - '**' + + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + + jobs: + launch_jenkins_job: + runs-on: [intel-ci] + environment: intel-ci + steps: + - name: Harden-Runner + uses: step-security/harden-runner@v2.9.1 + - name: Trigger Jenkins Job + run: | + source /home/${{ secrets.INTEL_JENKINS_USER }}/get_login.sh + curl -X POST -u ${{ secrets.INTEL_JENKINS_USER }}:${{ env.PAM_RESULTS }} ${{ secrets.INTEL_JENKINS_BASE_URL }}/job/OFIWG_Libfabric/job/ofi_libfabric/view/change-requests/job/PR-${{ github.event.number }}/build?delay=61sec