Skip to content

Commit

Permalink
docs: update diff format
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy committed Oct 19, 2019
1 parent 742e20e commit cac1337
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions DOCS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
date: 2017-01-16T00:00:00+00:00
date: 2019-10-19T00:00:00+00:00
title: Jenkins
author: appleboy
tags: [ infrastructure, trigger, jenkins ]
Expand All @@ -11,7 +11,7 @@ image: appleboy/drone-jenkins
The Jenkins plugin allows you to trigger Jenkins job automatically. The below pipeline configuration demonstrates simple usage:

```yaml
- name: trigger job
- name: trigger jenkins job
image: appleboy/drone-jenkins
settings:
url: http://example.com
Expand All @@ -23,25 +23,27 @@ The Jenkins plugin allows you to trigger Jenkins job automatically. The below pi
Example configuration with multiple jobs:
```diff
image: appleboy/drone-jenkins
settings:
url: http://example.com
user: appleboy
token: xxxxxxxxxx
job:
+ - drone-jenkins-plugin-job-1
+ - drone-jenkins-plugin-job-2
- name: trigger jenkins job
image: appleboy/drone-jenkins
settings:
url: http://example.com
user: appleboy
token: xxxxxxxxxx
job:
+ - drone-jenkins-plugin-job-1
+ - drone-jenkins-plugin-job-2
```

Example configuration with jobs in the folder:

```diff
image: appleboy/drone-jenkins
settings:
url: http://example.com
user: appleboy
token: xxxxxxxxxx
+ job: folder_name/job_name
- name: trigger jenkins job
image: appleboy/drone-jenkins
settings:
url: http://example.com
user: appleboy
token: xxxxxxxxxx
+ job: folder_name/job_name
```

It will trigger the URL of Jenkins job like as `http://example.com/job/folder_name/job/job_name/`
Expand Down

0 comments on commit cac1337

Please sign in to comment.