-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows: Add Intel CI Jenkins trigger job
Signed-off-by: Zach Dworkin <[email protected]>
- Loading branch information
1 parent
07fb345
commit edf4bbb
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
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/[email protected] | ||
- name: Set env | ||
run: | ||
echo "INTEL_JENKINS_USER=$(echo $INTEL_JENKINS_USER)" >> $GITHUB_ENV | ||
echo "INTEL_JENKINS_BASE_URL=$(echo $INTEL_JENKINS_BASE_URL)" >> $GITHUB_ENV | ||
source /home/${INTEL_JENKINS_USER}/get_login.sh | ||
echo "PAM_RESULTS=$(echo $PAM_RESULTS)" >> $GITHUB_ENV | ||
- name: Trigger Jenkins Job | ||
run: | ||
curl -X POST -u ${INTEL_JENKINS_USER}:${PAM_RESULTS} ${INTEL_JENKINS_BASE_URL}/job/OFIWG_Libfabric/job/ofi_libfabric/view/change-requests/job/PR-${{ github.event.number }}/build?delay=61sec |