Merge pull request #41 from UG4/stephanmg-patch-1 #134
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
name: Trigger Jenkins CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
trigger-jenkins-job: | |
runs-on: ubuntu-latest | |
steps: | |
- id: triggerjenkinsjob | |
uses: mickeygoussetorg/trigger-jenkins-job@v1 | |
with: | |
jenkins-server: ${{ secrets.JENKINS_URL }} # URL of the jenkins server. ex: http://myjenkins.acme.com:8080 | |
jenkins-job: "ug-build-pipeline" # The name of the jenkins job to run | |
jenkins-username: ${{ secrets.JENKINS_USER }} # user name for accessing jenkins | |
jenkins-pat: ${{ secrets.JENKINS_TOKEN }} # personal Access token for accessing Jenkins | |
poll-time: 90 # how often (seconds) to poll the jenkins server for results | |
timeout-value: 3600 # How long (seconds) to poll before timing out the action | |
verbose: true # true/false - turns on extra logging |