Skip to content

Commit f2029f9

Browse files
2293 - generated
1 parent 04f6f67 commit f2029f9

File tree

3 files changed

+167
-167
lines changed

3 files changed

+167
-167
lines changed
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
---
2+
title: "Jenkins"
3+
description: "Jenkins is leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project."
4+
---
5+
6+
7+
Categories: Developer Tools
8+
9+
10+
Type: jenkins/v1
11+
12+
<hr />
13+
14+
15+
16+
## Connections
17+
18+
Version: 1
19+
20+
21+
### basic_auth
22+
23+
#### Properties
24+
25+
| Name | Label | Type | Description | Required |
26+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
27+
| username | Username | STRING | Jenkins username. | true |
28+
| password | API Token | STRING | Jenkins API token. | true |
29+
| baseUri | Base URI | STRING | Complete base URI of your jenkins server. | true |
30+
31+
32+
33+
34+
35+
<hr />
36+
37+
38+
## Actions
39+
40+
41+
### Create Job
42+
Name: createJob
43+
44+
`Creates a new job.`
45+
46+
#### Properties
47+
48+
| Name | Label | Type | Description | Required |
49+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
50+
| name | Name | STRING | Name of the job. | true |
51+
| configXml | Config XML | STRING | Content of the config.xml file. | true |
52+
53+
#### Example JSON Structure
54+
```json
55+
{
56+
"label" : "Create Job",
57+
"name" : "createJob",
58+
"parameters" : {
59+
"name" : "",
60+
"configXml" : ""
61+
},
62+
"type" : "jenkins/v1/createJob"
63+
}
64+
```
65+
66+
#### Output
67+
68+
This action does not produce any output.
69+
70+
71+
72+
73+
74+
## Triggers
75+
76+
77+
### New Job Status Notification
78+
Name: newJobStatusNotification
79+
80+
`Triggers when job statuses are changed.`
81+
82+
Type: STATIC_WEBHOOK
83+
84+
85+
#### Output
86+
87+
88+
89+
Type: OBJECT
90+
91+
92+
#### Properties
93+
94+
| Name | Type | Description |
95+
|:------------:|:------------:|:-------------------:|
96+
| name | STRING | Name of the Jenkins job. |
97+
| display_name | STRING | Display name of the Jenkins job. |
98+
| url | STRING | URL of the Jenkins job. |
99+
| build | OBJECT <details> <summary> Properties </summary> &#123;STRING\(full_url), INTEGER\(number), INTEGER\(queue_id), NUMBER\(timestamp), INTEGER\(duration), STRING\(phase), STRING\(url), &#123;[]\(changes), []\(culprits)&#125;\(scm), STRING\(log), STRING\(notes), &#123;&#125;\(artifacts)&#125; </details> | Jenkins job build. |
100+
101+
102+
103+
104+
#### JSON Example
105+
```json
106+
{
107+
"label" : "New Job Status Notification",
108+
"name" : "newJobStatusNotification",
109+
"type" : "jenkins/v1/newJobStatusNotification"
110+
}
111+
```
112+
113+
114+
<hr />
115+
116+
117+
<hr />
118+
119+
# Additional instructions
120+
121+
## Connection Setup
122+
123+
### Create Jenkins API Token
124+
125+
1. Click on **Manage Jenkins** icon.
126+
2. Click on **Users**.
127+
3. Click this icon on the user you want to create the API token for.
128+
4. Click on **Security**.
129+
5. Click on **Add new token**.
130+
6. Enter name of the token and then click on **Generate**.
131+
7. Copy token, you will not be able to see the whole token again.
132+
8. Click on **Done**.
133+
134+
<div style={{ position: 'relative', height:0, width: '100%', overflow: 'hidden', zIndex: 99999, boxSizing: 'border-box', paddingBottom: 'calc(50.05219207% + 32px)'}}>
135+
<iframe src="https://www.guidejar.com/embed/152dd033-4f42-4501-88cc-e6a5a4a2d4e2?type=1&controls=on" width="100%" height="100%" style={{height:'100%', position:'absolute', inset:0}} allowfullscreen frameborder="0"></iframe>
136+
</div>
137+
138+
## Trigger Setup
139+
140+
### Enable Notification Plugin
141+
142+
1. Click this icon.
143+
2. Click on **Plugins**.
144+
3. Click on **Available plugins**.
145+
4. Search for **notification**.
146+
5. Click on **Notification** from **Tikal Knowledge**. [Notification plugin link](https://plugins.jenkins.io/notification/)
147+
6. Click here.
148+
7. Click on **Install**.
149+
8. Wait for everything to finish downloading.
150+
9. Click on **Go back to the top page**.
151+
152+
<div style={{ position: 'relative', height:0, width: '100%', overflow: 'hidden', zIndex: 99999, boxSizing: 'border-box', paddingBottom: 'calc(50.05219207% + 32px)'}}>
153+
<iframe src="https://www.guidejar.com/embed/ef274d47-9a11-4394-afde-2b93679f73b2?type=1&controls=on" width="100%" height="100%" style={{height:'100%', position:'absolute', inset:0}} allowfullscreen frameborder="0"></iframe>
154+
</div>
155+
156+
### Trigger URL Setup
157+
158+
1. Select Jenkins job to which you want to connect the trigger to.
159+
2. Click this **Configure**.
160+
3. Click on **Add Endpoint**.
161+
4. Paste Webhook URL. See [Deploy documentation](https://docs.bytechef.io/automation/deploy) on how to get Webhook URL.
162+
5. Click on **Save**.
163+
164+
<div style={{ position: 'relative', height:0, width: '100%', overflow: 'hidden', zIndex: 99999, boxSizing: 'border-box', paddingBottom: 'calc(50.05219207% + 32px)'}}>
165+
<iframe src="https://www.guidejar.com/embed/41f291bd-ac7c-4cec-af6b-c5922be20ac0?type=1&controls=on" width="100%" height="100%" style={{height:'100%', position:'absolute', inset:0}} allowfullscreen frameborder="0"></iframe>
166+
</div>

server/libs/modules/components/jenkins/src/test/resources/definition/example_v1.json

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)