21 lines
367 B
Plaintext
21 lines
367 B
Plaintext
|
#!/usr/bin/groovy
|
||
|
image = "mikrotik-exporter"
|
||
|
label = "latest"
|
||
|
build = null
|
||
|
|
||
|
node {
|
||
|
stage("Checkout") {
|
||
|
checkout scm
|
||
|
}
|
||
|
|
||
|
stage("Build") {
|
||
|
build = docker.build("kspaceee/${image}")
|
||
|
}
|
||
|
|
||
|
stage("Push") {
|
||
|
docker.withRegistry("https://registry.hub.docker.com", "dockerhub-kspace") {
|
||
|
build.push(label)
|
||
|
}
|
||
|
}
|
||
|
}
|