18 lines
553 B
Groovy
18 lines
553 B
Groovy
|
|
node {
|
|
def app
|
|
stage('Clone repository') {
|
|
|
|
checkout scm
|
|
}
|
|
stage('Build image') {
|
|
|
|
app = docker.build("agreiner/advancedmqttbridge")
|
|
}
|
|
stage('Push image') {
|
|
docker.withRegistry('https://reg.greinet.com', 'docker_registry_jenkins') {
|
|
app.push("1.${env.BUILD_NUMBER}")
|
|
app.push("latest")
|
|
}
|
|
}
|
|
} |