charlyghislaindotcom/jenkins/dsl/charlyghislaindotcom.groovy
2021-02-14 21:27:36 +01:00

44 lines
1.2 KiB
Groovy

multibranchPipelineJob('charlyghislaindotcom/charlyghislaindotcom') {
branchSources {
branchSource {
source {
git {
id('charlyghislaindotcom-front_repo') // IMPORTANT: use a constant and unique identifier
remote('ssh://git@gitea.charlyghislain.com:2022/cghislai/charlyghislaindotcom.git')
credentialsId('jenkins-jenkins-ssh-key')
traits {
gitBranchDiscovery()
wipeWorkspaceTrait()
}
}
}
strategy {
namedBranchesDifferent {
namedExceptions {
named {
name('master')
props {
suppressAutomaticTriggering()
}
}
}
}
}
}
}
triggers {
periodic(30)
}
orphanedItemStrategy {
discardOldItems {
daysToKeep(7)
}
}
factory {
workflowBranchProjectFactory {
scriptPath('Jenkinsfile')
}
}
}