-
Notifications
You must be signed in to change notification settings - Fork 0
/
remote-local-virtual-template.groovy
48 lines (44 loc) · 1.47 KB
/
remote-local-virtual-template.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
all = userInput(
type: "ARTIFACTORY",
multivalued: true,
description: "All Instances"
)
for (instance in all) {
artifactory(instance.name){
localRepository('repo-docker') {
description "Public description"
notes "Some internal notes"
archiveBrowsingEnabled false
blackedOut false // default
packageType 'docker'
}
remoteRepository('remote-rpm') {
description "Public description"
notes "Some internal notes"
includesPattern "**/*" // default
excludesPattern "" // default
propertySets // (["ps1", "ps2"])
archiveBrowsingEnabled false
url "http://ubuntu:8081/local-rpm"
username "remote-repo-user"
password "pass"
proxy "proxy-ref"
socketTimeoutMillis 15000
localAddress "123.123.123.123"
assumedOfflinePeriodSecs 300
listRemoteFolderItems true
packageType "rpm"
}
virtualRepository('virtual-docker') {
description "Public description"
notes "Some internal notes"
includesPattern "**/*" // default
excludesPattern "" // default
repositories (["example-repo-local"]) // values (["local-rep1", "local-rep2", ...]) are examples. Please set existing values from the instance
artifactoryRequestsCanRetrieveRemoteArtifacts false
defaultDeploymentRepo ""
packageType "docker"
forceDockerAuthentication false
}
}
}