add jenkinsfile

This commit is contained in:
chris 2018-11-26 18:59:18 +01:00
parent 59721b3f70
commit fd728c2f69
1 changed files with 16 additions and 0 deletions

16
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,16 @@
pipeline {
agent any
stages {
stage('Build image') {
steps {
withDockerRegistry([ credentialsId: "6ff44976-23cd-4cc2-902c-de8c340e65e5", url: "https://reg.zknt.org" ]) {
echo 'Starting to build docker image'
script {
def customImage = docker.build("reg.zknt.org/zknt/alpine:3.8.1")
customImage.push()
}
}
}
}
}
}