|
1 | 1 | {
|
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" |
12 | 21 | }
|
| 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 | + }] |
13 | 44 | }
|
0 commit comments