Skip to content

Create mirror.yml (from github to gitlab) #153

Create mirror.yml (from github to gitlab)

Create mirror.yml (from github to gitlab) #153

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