diff --git a/.github/workflows/trigger_jenkins.yml b/.github/workflows/trigger_jenkins.yml new file mode 100644 index 00000000..cc6141b4 --- /dev/null +++ b/.github/workflows/trigger_jenkins.yml @@ -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 \ No newline at end of file diff --git a/Jenkinsfile.forge b/Jenkinsfile.forge new file mode 100644 index 00000000..c9715629 --- /dev/null +++ b/Jenkinsfile.forge @@ -0,0 +1,7 @@ +#! groovy + +node ("aws-centos") { + Checkout() + BuildDocker() + PushDocker() +}