blob: c2e15a089f10a487cd32ba4ceb1d6767b1990c44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
def call(Map options = [:]) {
String buildArtifactKeepNum = options.buildArtifactKeepNum ?: '15'
String buildKeepNum = options.buildKeepNum ?: '30'
// The default cron schedule is one build between 1:xx pm - 4:xx pm on Monday
String buildCronSchedule = options.buildCronSchedule ?: 'H H(13-16) * * 1'
properties([
parameters([
choice(name: 'logLevel', choices: ['WARN', 'INFO', 'DEBUG', 'TRACE'], description: 'Set the logging level. WARN is the default.')
]),
buildDiscarder(
logRotator(artifactNumToKeepStr: buildArtifactKeepNum, numToKeepStr: buildKeepNum)
),
pipelineTriggers([cron(buildCronSchedule)])
])
}
|