Sergey Kulanov | 247c4e7 | 2016-10-17 16:43:29 +0300 | [diff] [blame] | 1 | // Usage example |
| 2 | // List of parameters with the default values |
Vitaly Parakhin | f29c958 | 2016-11-24 19:27:58 +0200 | [diff] [blame^] | 3 | def dockerRepo = config.dockerRepo ?: "mcp-k8s-ci.docker.mirantis.net" |
Sergey Kulanov | 2202ad2 | 2016-10-18 17:14:12 +0300 | [diff] [blame] | 4 | def artifactoryUrl = config.artifactoryURL ?: "https://artifactory.mcp.mirantis.net/artifactory/projectcalico" |
Sergey Kulanov | 247c4e7 | 2016-10-17 16:43:29 +0300 | [diff] [blame] | 5 | def nodeImage = config.nodeImage ?: "calico/node" |
Artem Panchenko | 4932b17 | 2016-11-08 19:06:03 +0200 | [diff] [blame] | 6 | def nodeImageTag = config.nodeImageTag ?: "v1.0.0-beta" |
Sergey Kulanov | 247c4e7 | 2016-10-17 16:43:29 +0300 | [diff] [blame] | 7 | def ctlImage = config.ctlImage ?: "calico/ctl" |
Artem Panchenko | 4932b17 | 2016-11-08 19:06:03 +0200 | [diff] [blame] | 8 | def ctlImageTag = config.ctlImageTag ?: "v1.0.0-beta" |
Sergey Kulanov | 247c4e7 | 2016-10-17 16:43:29 +0300 | [diff] [blame] | 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 Kulanov | 247c4e7 | 2016-10-17 16:43:29 +0300 | [diff] [blame] | 18 | |
| 19 | // *** Examples 1: |
| 20 | // we still use old schema and want to publish to GERRIT_CHANGE_NUMBER |
| 21 | def buildId = ${GERRIT_CHANGE_NUMBER} |
| 22 | // we want to store in artifacts from gate then |
| 23 | def buildId = "mcp" |
| 24 | node { |
| 25 | buildCalicoContainers { |
Vitaly Parakhin | f29c958 | 2016-11-24 19:27:58 +0200 | [diff] [blame^] | 26 | dockerRepo = "mcp-k8s-ci.docker.mirantis.net" |
Sergey Kulanov | 247c4e7 | 2016-10-17 16:43:29 +0300 | [diff] [blame] | 27 | artifactoryURL = "https://artifactory.mcp.mirantis.net/artifactory/sandbox" |
| 28 | containersBuildId = buildId |
Sergey Kulanov | 247c4e7 | 2016-10-17 16:43:29 +0300 | [diff] [blame] | 29 | } |
| 30 | } |