Skip to content

Commit 198a548

Browse files
author
jschmid
committed
diplay more that one lamp in the console output; reorganize the jobs handler and configuration
1 parent b61b6fa commit 198a548

8 files changed

+629
-222
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
config.json
22
node_modules
3+
yarn-error.log
4+

config.json.sample

+41-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,44 @@
11
{
2-
"jenkins": {
3-
"host": "host from jenkins",
4-
"port": port from jenkins,
5-
"path": "/api/json",
6-
"pathNova": "/job/s16-backend-nova/api/json?tree=activeConfigurations[name,color,url]",
7-
"user": "the user",
8-
"password": "the passwort of the user",
9-
"useLibrary": "pcLamp.js",
10-
"delay": 10000,
11-
"ignore": ["job-name-to-exclude"]
2+
"jenkins": {
3+
"host": "host from jenkins",
4+
"port": host from jenkins,
5+
"path": "/api/json?tree=jobs[name,color]",
6+
"pathNova": "/job/s16-backend-nova/api/json?tree=activeConfigurations[name,color,url]",
7+
"user": "the user",
8+
"password": "the password",
9+
"useLibrary": "pcLamp.js",
10+
"delay": 60000
11+
},
12+
"lamps": [{
13+
"id": "dev. job",
14+
"name": "develop multibranch job",
15+
"enabled" : true,
16+
"job" : {
17+
"type" : "color",
18+
"path": "/job/s16/job/s16-multibranch-pipeline/job/develop/api/json?tree=name,color",
19+
"ignore": [],
20+
"colorJsonPath": "color"
1221
}
22+
23+
}, {
24+
"id": "other Jobs",
25+
"name": "all other jobs exclude 's16-backend-nova' and 's16-multibranch-pipeline'",
26+
"enabled" : true,
27+
"job" : {
28+
"type" : "color",
29+
"path": "/job/s16/api/json?tree=jobs[name,color]",
30+
"ignore": ["s16-backend-nova"],
31+
"colorJsonPath": "$.jobs[?(@.color)]"
32+
}
33+
}, {
34+
"id": "nova Job",
35+
"name": "observe activeConfigurations of the job s16-backend-nova",
36+
"enabled" : true,
37+
"job" : {
38+
"type" : "condition",
39+
"path": "/job/s16/job/s16-backend-nova/lastBuild/api/json?tree=description",
40+
"ignore": [],
41+
"colorJsonPath": "$.description"
42+
}
43+
}]
1344
}

0 commit comments

Comments
 (0)