-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathapply.groovy
31 lines (31 loc) · 886 Bytes
/
apply.groovy
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
freeStyleJob('apply-dsl') {
description("""<a href="https://github.com/tianon/jenkins-groovy/tree/master/dsl" target="_blank">https://github.com/tianon/jenkins-groovy/tree/master/dsl</a>""")
logRotator { numToKeep(5) }
concurrentBuild(false)
label('master') // running this job directly on the master is an order of magnitude faster than running it on a node (probably due to the fact that the DSL scripts themselves run on the master regardless)
scm {
git {
remote { url('https://github.com/tianon/jenkins-groovy.git') }
branches('*/master')
extensions {
cleanAfterCheckout()
}
}
}
triggers {
scm('H/30 * * * *')
}
wrappers { colorizeOutput() }
steps {
dsl {
external('apply.groovy')
removeAction('DELETE')
removeViewAction('DELETE')
}
dsl {
external('dsl/**/*.groovy')
removeAction('DELETE')
removeViewAction('DELETE')
}
}
}