-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
32 lines (28 loc) · 844 Bytes
/
Jenkinsfile
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
properties([
pipelineTriggers([
githubPush()
])
])
pipeline {
agent {
kubernetes {
cloud "minikube"
label "shell"
defaultContainer "shell"
}
}
stages {
stage('Create job dsl') {
steps {
// All DSL files should follow this name
jobDsl targets: ['folders.groovy', '*/*.groovy'].join('\n'),
// It will change modified jobs to match DSL script
ignoreExisting: false,
// If a job is deleted from the DSL script it will be deleted from Jenkins
removedJobAction: 'DELETE',
// Runs the DSL scripts in a sandbox with limited abilities.
sandbox: true
}
}
}
}