Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

feat(ci): create Jenkinsfile.forge #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
19 changes: 19 additions & 0 deletions .github/workflows/trigger_jenkins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This is a basic workflow to help you trigger jobs on corporate Jenkins
name: Trigger Jenkins CI

# Controls when the workflow will run
on:
- push

jobs:
trigger_jenkins:
# The type of runner that the job will run on
runs-on: jenkins-trigger
env:
REPO_NAME: ${{ github.event.repository.name }}
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.REPO_NAME }}/build\?delay=\0
7 changes: 7 additions & 0 deletions Jenkinsfile.forge
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! groovy

node ("aws-centos") {
Checkout()
BuildDocker()
PushDocker()
}