Commit d031ad1b authored by Ben Cooksley's avatar Ben Cooksley

Transfer responsibility for job properties from the Pipelines to the DSL.

Hopefully this will eliminate the 'changed after creation' warning which Jenkins shows.
Also, setup cron and commit hook polling for Dependency Builds and Normal Builds respectively to reflect how we will be using them
parent ee1d91b9
......@@ -24,6 +24,21 @@ knownJobs.each {
// Actually create the job now
pipelineJob( jobName ) {
properties {
buildDiscarder {
strategy {
logRotator {
numToKeepStr("25")
}
}
}
disableConcurrentBuilds()
}
triggers {
pollSCM {
ignorePostCommitHooks(false)
}
}
definition {
cps {
script( pipelineScript )
......
......@@ -20,6 +20,19 @@ knownStructure.combinations.each {
// Actually create the job now
pipelineJob( jobName ) {
properties {
buildDiscarder {
strategy {
logRotator {
numToKeepStr("25")
}
}
}
disableConcurrentBuilds()
}
triggers {
cron('@weekly')
}
definition {
cps {
script( pipelineScript )
......
// Set some properties of the job up
// We use this to ensure we don't do more than one build at once and don't keep logs forever
properties([
buildDiscarder( logRotator(numToKeepStr: '25') ),
disableConcurrentBuilds(),
pipelineTriggers([])
])
// Request a node to be allocated to us
node( currentPlatform ) {
// We want Timestamps on everything
......
// Set some properties of the job up
// We use this to ensure we don't do more than one build at once and don't keep logs forever
properties([
buildDiscarder( logRotator(numToKeepStr: '25') ),
disableConcurrentBuilds(),
pipelineTriggers([])
])
// Request a node to be allocated to us
node( currentPlatform ) {
// We want Timestamps on everything
......
// Set some properties of the job up
// We use this to ensure we don't do more than one build at once and don't keep logs forever
properties([
buildDiscarder( logRotator(numToKeepStr: '25') ),
disableConcurrentBuilds(),
pipelineTriggers([])
])
// Request a node to be allocated to us
node( currentPlatform ) {
// We want Timestamps on everything
......
// Set some properties of the job up
// We use this to ensure we don't do more than one build at once and don't keep logs forever
properties([
buildDiscarder( logRotator(numToKeepStr: '25') ),
disableConcurrentBuilds(),
pipelineTriggers([])
])
// Request a node to be allocated to us
node( currentPlatform ) {
// We want Timestamps on everything
......
// Set some properties of the job up
// We use this to ensure we don't do more than one build at once and don't keep logs forever
properties([
buildDiscarder( logRotator(numToKeepStr: '25') ),
disableConcurrentBuilds(),
pipelineTriggers([])
])
// Request a node to be allocated to us
node( currentPlatform ) {
// We want Timestamps on everything
......
// Set some properties of the job up
// We use this to ensure we don't do more than one build at once and don't keep logs forever
properties([
buildDiscarder( logRotator(numToKeepStr: '25') ),
disableConcurrentBuilds(),
pipelineTriggers([])
])
// Request a node to be allocated to us
node( currentPlatform ) {
// We want Timestamps on everything
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment