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