Denis Egorenko | ff32a4d | 2016-12-21 14:41:53 +0000 | [diff] [blame] | 1 | // Usage example |
| 2 | // List of parameters with the default values |
| 3 | def dockerRepo = config.dockerRepo ?: "mcp-k8s-ci.docker.mirantis.net" |
| 4 | def artifactoryUrl = config.artifactoryURL ?: "https://artifactory.mcp.mirantis.net/artifactory/projectcalico" |
| 5 | def nodeImage = config.nodeImage ?: "calico/node" |
| 6 | def nodeImageTag = config.nodeImageTag ?: "v1.0.0-beta" |
| 7 | def ctlImage = config.ctlImage ?: "calico/ctl" |
| 8 | def ctlImageTag = config.ctlImageTag ?: "v1.0.0-beta" |
| 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}" |
| 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 { |
| 26 | dockerRepo = "mcp-k8s-ci.docker.mirantis.net" |
| 27 | artifactoryURL = "https://artifactory.mcp.mirantis.net/artifactory/sandbox" |
| 28 | containersBuildId = buildId |
| 29 | } |
| 30 | } |