[DO-963] Conan clean task (!44)
DO-963 Co-authored-by: denis.patrakeev <denis.patrakeev@avroid.tech> Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/44
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
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')
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user