Skip to content

Commit 44d64b6

Browse files
Create Jenkins.cbci for CL CBCI onboarding (#16308)
1 parent edbc5d1 commit 44d64b6

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Trigger Jenkins CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
# This workflow contains a single job called "trigger_jenkins"
7+
trigger_jenkins:
8+
# The type of runner that the job will run on
9+
#runs-on: jenkins-trigger
10+
runs-on: self-hosted
11+
env:
12+
REPO_NAME: ${{ github.event.repository.name }}
13+
ORG_NAME: ${{ github.event.organization.login }}
14+
JENKINS_ROOT: ${{ secrets.JENKINS_CONTROLLER_URL }}job/${{ secrets.JENKINS_TRIGGER_ROOT_FOLDER }}/job/${{ secrets.JENKINS_TRIGGER_ORG_FOLDER }}/job/
15+
steps:
16+
- name: trigger single Job
17+
run: >
18+
curl -X POST -u "${{ secrets.JENKINS_TRIGGER_USER }}:${{ secrets.JENKINS_TRIGGER_TOKEN }}"
19+
${{ env.JENKINS_ROOT}}/${{ env.ORG_NAME }}/job/${{ env.REPO_NAME }}/build\?delay=\0

Jenkins.cbci

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@Library(['PSL@LKG']) _
2+
3+
library identifier: 'cBuild_PSL@main', retriever: modernSCM([
4+
$class: 'GitSCMSource',
5+
remote: 'https://git.autodesk.com/ContinuousLocalization/PSL_cBuild.git',
6+
credentialsId: 'L10NCBCI-github-app-psl-ContinuousLocalization',
7+
])
8+
9+
devRepoParameters("DynamoCore_CL")
10+
11+
node("cl-prd-azure-dynamic-win-vm") {
12+
cleanWs()
13+
devRepo()
14+
}

0 commit comments

Comments
 (0)