From a8e99877a69cf8916dc66c48a787ef11540af85e Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Thu, 25 Jun 2020 13:52:37 +0200 Subject: [PATCH] Create fire-jenkins.yml --- .github/workflows/fire-jenkins.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/fire-jenkins.yml diff --git a/.github/workflows/fire-jenkins.yml b/.github/workflows/fire-jenkins.yml new file mode 100644 index 0000000000..62491354a2 --- /dev/null +++ b/.github/workflows/fire-jenkins.yml @@ -0,0 +1,25 @@ +# This is a basic workflow to help you get started with Actions + +name: Fire Jenkins + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Fire Jenkins + run: curl -v -X POST -d "" -u "$JENKINS_AUTH" "https://builds.spacestation14.io/jenkins/job/SS14%20Content/build?token=$JENKINS_SS14_CONTENT_BUILD_TOKEN&cause=GitHub+actions+push" + env: + JENKINS_AUTH: ${{ secrets.JENKINS_AUTH }} + JENKINS_SS14_CONTENT_BUILD_TOKEN: ${{ secrets.JENKINS_SS14_CONTENT_BUILD_TOKEN }}