Hi,
is it possible to create more than one repository in one script? I'd like to create two repositories in one script like this:
project = userInput (
type: "STRING",
description : "please provide a project name"
)
localRepository(project + "-maven-snapshot") {
description "Maven snapshotrepository for project " + project
notes "Some internal notes"
repoLayoutRef "maven-2-default"
packageType "maven"
handleReleases false
handleSnapshots true // default
maxUniqueSnapshots 10 // 10 Snapshotversion will be stored
snapshotVersionBehavior "non-unique"
blackedOut false
archiveBrowsingEnabled true
}
localRepository(project + "-maven-release") {
description "Maven releaserepository for project " + project
notes "Some internal notes"
repoLayoutRef "maven-2-default"
packageType "maven"
checksumPolicyType "client-checksums"
handleReleases true
handleSnapshots false
maxUniqueSnapshots 0
snapshotVersionBehavior "unique"
suppressPomConsistencyChecks false
blackedOut false
archiveBrowsingEnabled true
}
Expected: two repositories are created
Result: only the *-maven-release will be created
- Mission Control: v1.8
- Artifactory Enterprise 4.16.0 rev 40364
Best Regards
Hi,
is it possible to create more than one repository in one script? I'd like to create two repositories in one script like this:
Expected: two repositories are created
Result: only the
*-maven-releasewill be createdBest Regards