diff --git a/.github/workflows/trigger_jenkins.yaml b/.github/workflows/trigger_jenkins.yaml new file mode 100644 index 00000000000..40e67545f78 --- /dev/null +++ b/.github/workflows/trigger_jenkins.yaml @@ -0,0 +1,19 @@ +name: Trigger Jenkins CI +on: + - push + - pull_request +jobs: +# This workflow contains a single job called "trigger_jenkins" + trigger_jenkins: + # The type of runner that the job will run on + #runs-on: jenkins-trigger + runs-on: self-hosted + env: + REPO_NAME: ${{ github.event.repository.name }} + ORG_NAME: ${{ github.event.organization.login }} + JENKINS_ROOT: ${{ secrets.JENKINS_CONTROLLER_URL }}job/${{ secrets.JENKINS_TRIGGER_ROOT_FOLDER }}/job/${{ secrets.JENKINS_TRIGGER_ORG_FOLDER }}/job/ + steps: + - name: trigger single Job + run: > + curl -X POST -u "${{ secrets.JENKINS_TRIGGER_USER }}:${{ secrets.JENKINS_TRIGGER_TOKEN }}" + ${{ env.JENKINS_ROOT}}/${{ env.ORG_NAME }}/job/${{ env.REPO_NAME }}/build\?delay=\0 diff --git a/Jenkins.cbci b/Jenkins.cbci new file mode 100644 index 00000000000..0ec935b3c0d --- /dev/null +++ b/Jenkins.cbci @@ -0,0 +1,14 @@ +@Library(['PSL@LKG']) _ + +library identifier: 'cBuild_PSL@main', retriever: modernSCM([ + $class: 'GitSCMSource', + remote: 'https://git.autodesk.com/ContinuousLocalization/PSL_cBuild.git', + credentialsId: 'L10NCBCI-github-app-psl-ContinuousLocalization', +]) + +devRepoParameters("DynamoCore_CL") + +node("cl-prd-azure-dynamic-win-vm") { + cleanWs() + devRepo() +}