Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SYS-484 use action for jenkins trigger #44

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 0 additions & 133 deletions .github/workflows/qa-pipeline-trigger.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/trigger-jenkins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Trigger Jenkins Job on Dev Merge
# I'm initially using this action because it's easy to configure but it uses polling from GitHub rather
# than waiting on Jenkins to notify it that the job has completed so we might consider refactoring this
# in the future as polling is more taxing on both applications and can lead to a delay in notification

on:
push:
branches:
- dev

jobs:
trigger-jenkins:
runs-on: ubuntu-latest
steps:
- name: Trigger Jenkins Job
uses: mickeygoussetorg/trigger-jenkins-job@main
with:
jenkins-server: ${{ vars.JENKINS_URL }} # Jenkins URL
jenkins-job: ${{ vars.JENKINS_JOB }} # Defaulted on org, can override on repo
jenkins-username: ${{ secrets.JENKINS_USER }}
jenkins-pat: ${{ secrets.JENKINS_TOKEN }}
poll-time: ${{ vars.JENKINS_POLL_TIME }} # # Defaulted on org, can override on repo
timeout-value: ${{ vars.JENKINS_TIMEOUT }} # Defaulted on org, can override on repo
Loading