Mise à jour de 'Jenkinsfile'

This commit is contained in:
dany 2022-08-01 11:32:41 +02:00
parent eab77292e9
commit d6595862d4

31
Jenkinsfile vendored
View File

@ -8,21 +8,22 @@ remote.agent = false
remote.logLevel = 'INFO' remote.logLevel = 'INFO'
pipeline{ pipeline{
options { agent { node{ label'master' }}
// Limit build history with buildDiscarder option: options {
// daysToKeepStr: history is only kept up to this many days. // Limit build history with buildDiscarder option:
// numToKeepStr: only this many build logs are kept. // daysToKeepStr: history is only kept up to this many days.
// artifactDaysToKeepStr: artifacts are only kept up to this many days. // numToKeepStr: only this many build logs are kept.
// artifactNumToKeepStr: only this many builds have their artifacts kept. // artifactDaysToKeepStr: artifacts are only kept up to this many days.
buildDiscarder(logRotator(numToKeepStr: "1")) // artifactNumToKeepStr: only this many builds have their artifacts kept.
// Enable timestamps in build log console buildDiscarder(logRotator(numToKeepStr: "1"))
timestamps() // Enable timestamps in build log console
// Maximum time to run the whole pipeline before canceling it timestamps()
timeout(time: 1, unit: 'HOURS') // Maximum time to run the whole pipeline before canceling it
// Use Jenkins ANSI Color Plugin for log console timeout(time: 1, unit: 'HOURS')
ansiColor('xterm') // Use Jenkins ANSI Color Plugin for log console
// Limit build concurrency to 1 per branch ansiColor('xterm')
disableConcurrentBuilds() // Limit build concurrency to 1 per branch
disableConcurrentBuilds()
} }
stages stages
{ {