DO-963 Co-authored-by: denis.patrakeev <denis.patrakeev@avroid.tech> Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/44
43 lines
1.0 KiB
Groovy
43 lines
1.0 KiB
Groovy
pipelineJob('Automation/DevOps/artifactory-repository-clean') {
|
|
description('Automation clean old artifacts on Artifactory CPP (Conan)')
|
|
|
|
logRotator {
|
|
numToKeep(100)
|
|
artifactNumToKeep(100)
|
|
}
|
|
|
|
properties {
|
|
disableConcurrentBuilds()
|
|
pipelineTriggers {
|
|
triggers {
|
|
cron {
|
|
spec('H 3 * * *')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
definition {
|
|
cpsScm {
|
|
scm {
|
|
git {
|
|
remote {
|
|
url("${JENKINS_GIT_REPOSITORY_URL}/DevOps/jenkins-pipelines.git")
|
|
credentials("${JENKINS_GIT_CREDENTIALS_HTTP}")
|
|
}
|
|
branch('master')
|
|
}
|
|
}
|
|
scriptPath('pipelines/Automation/DevOps/artifactory_repository_clean.groovy')
|
|
}
|
|
}
|
|
|
|
parameters {
|
|
booleanParam {
|
|
name('dryRun')
|
|
defaultValue(false)
|
|
description('Dry run for test remove artifacts')
|
|
}
|
|
}
|
|
}
|