-
Notifications
You must be signed in to change notification settings - Fork 10
/
jimmy.yaml
57 lines (46 loc) · 1.31 KB
/
jimmy.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
include-default-plugins: false
plugin-directories:
- ./plugins
defaults:
inject:
jenkins_cli_path: /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar
setup:
- name: setup
teardown:
- name: teardown
pipelines:
main:
steps:
- name: read_source
description: |
Read source file with Jenkins configuration
inject:
path: env.jenkins_config_path
- name: build_source
description: |
Build and post-process the initial configuration
inject:
source: results.read_source.source
- name: check_applicable
description: |
Check if modules are applicable for source file
inject:
source: results.read_source.source
- name: validate_source
description: |
Perform validation of post-processed document against
jsonschemas or amother kind of checks
inject:
source: results.build_source.source
- name: update_dest
description: |
Update jenkins configuration by calling jenkins cli
and executing groovy scripts
inject:
source: results.build_source.source
jenkins_url: env.jenkins_url
jenkins_cli_path: config.defaults.inject.jenkins_cli_path
envs:
main:
jenkins_url: http://localhost:8080
jenkins_config_path: sample/input/jenkins.yaml