Skip to content

Commit 0e182f4

Browse files
authored
Create notify-jenkins.yml GH action
1 parent 888d84d commit 0e182f4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow notifies Jenkins job that a commit was pushed to master
2+
name: Trigger jenkins job
3+
4+
on:
5+
push:
6+
branches: [ "master" ]
7+
# pull_request:
8+
# branches: [ "master" ]
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Run
20+
uses: appleboy/jenkins-action@master
21+
with:
22+
url: "https://jenkins.new.test.sematext.com"
23+
user: "marko.bonaci@sematext.com"
24+
token: ${{secrets.JENKINS_TOKEN}}
25+
job: "sematext-agent-java"

0 commit comments

Comments
 (0)