blob: e0f14685f3eb442af73ae780cfa1ce028bee79d6 [file] [log] [blame]
Sergey Kulanov247c4e72016-10-17 16:43:29 +03001// Usage example
2// List of parameters with the default values
3 def server = Artifactory.server(config.artifactoryServerId ?: "mcp-ci")
4 def dockerRepo = config.dockerRepo ?: "artifactory.mcp.mirantis.net:5001"
5 def artifactoryURL = config.artifactoryURL ?: "https://artifactory.mcp.mirantis.net/artifactory/projectcalico"
6 def nodeImage = config.nodeImage ?: "calico/node"
7 def nodeImageTag = config.nodeImageTag ?: "v0.20.0"
8 def ctlImage = config.ctlImage ?: "calico/ctl"
9 def ctlImageTag = config.ctlImageTag ?: "v0.20.0"
10 def buildImage = config.buildImage ?: "${artifactoryURL}/mcp/libcalico/lastbuild".toURL().text.trim()
11 def felixImage = config.felixImage ?: "${artifactoryURL}/mcp/felix/lastbuild".toURL().text.trim()
12 def confdBuildId = config.confdBuildId ?: "${artifactoryURL}/mcp/confd/lastbuild".toURL().text.trim()
13 def confdUrl = config.confdUrl ?: "${artifactoryURL}/mcp/confd/confd-${confdBuildId}"
14 def birdBuildId = config.birdBuildId ?: "${artifactoryURL}/mcp/calico-bird/lastbuild".toURL().text.trim()
15 def birdUrl = config.birdUrl ?: "${artifactoryURL}/mcp/calico-bird/bird-${birdBuildId}"
16 def bird6Url = config.bird6Url ?: "${artifactoryURL}/mcp/calico-bird/bird6-${birdBuildId}"
17 def birdclUrl = config.birdclUrl ?: "${artifactoryURL}/mcp/calico-bird/birdcl-${birdBuildId}"
18 def build = "${config.containersBuildId}-${gitCommit}"
19 def credentialsId = config.credentialsId
20
21// *** Examples 1:
22// we still use old schema and want to publish to GERRIT_CHANGE_NUMBER
23def buildId = ${GERRIT_CHANGE_NUMBER}
24// we want to store in artifacts from gate then
25def buildId = "mcp"
26node {
27 buildCalicoContainers {
28 dockerRepo = "artifactory.mcp.mirantis.net:5004"
29 artifactoryURL = "https://artifactory.mcp.mirantis.net/artifactory/sandbox"
30 containersBuildId = buildId
31 credentialsId = "artifactory-sandbox"
32 artifactoryServerId = "mcp-ci-sandbox"
33 }
34}