I am uploading zip packages from Jenkins to Artifactory using the Artifactory Plugin. I am using the following Upload step and it works, my only question is it possible to somehow configure how many last builds will be kept in Artifactory? (e.g. last 50 builds)
stage ('Upload stage') {
steps {
rtUpload (
serverId: 'Artifactory',
spec: '''{
"files": [
{
"pattern": "package-*.zip",
"target": "artifactory/jenkins/"
}
]
}''',
)
}
}
Thanks