Added Jenkinsfile

This commit is contained in:
Andreas Greiner 2021-08-07 14:53:46 +02:00
parent d646d460e0
commit 83b66a572d

18
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,18 @@
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")
}
}
}