alpine/Jenkinsfile

20 lines
633 B
Plaintext
Raw Normal View History

2018-11-26 17:59:18 +00:00
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 {
2019-01-30 18:50:13 +00:00
def customImage = docker.build("reg.zknt.org/zknt/alpine", "--build-arg VERSION=$env.BRANCH_NAME .")
2018-12-02 18:08:53 +00:00
customImage.push(env.BRANCH_NAME)
customImage.push(env.BRANCH_NAME.split(/\./)[0,1].join('.'))
customImage.push(env.BRANCH_NAME.split(/\./)[0])
customImage.push("latest")
2018-11-26 17:59:18 +00:00
}
}
}
}
}
}