-
-
Notifications
You must be signed in to change notification settings - Fork 29
30 lines (28 loc) · 819 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: trigger jenkins job
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: trigger Job without parameters
uses: appleboy/jenkins-action@v1.1.1
with:
url: https://jenkins.com
user: jenkins
token: ${{ secrets.TOKEN }}
job: AIDE_TEST
insecure: true
- name: set random word
id: random-word
run: |
echo TEST1234=$(openssl rand -hex 12) >> $GITHUB_OUTPUT
- name: trigger Job with parameters
uses: appleboy/jenkins-action@v1.1.1
with:
url: https://jenkins.com
user: jenkins
token: ${{ secrets.TOKEN }}
job: AIDE_TEST2
insecure: true
parameters: parameter01=${{ steps.random-word.outputs.TEST1234 }}