universal-links-handler/Jenkinsfile

24 lines
466 B
Plaintext
Raw Normal View History

2018-06-28 12:56:54 +00:00
node('linux') {
def image_name = 'statusteam/universal-links-handler'
def commit
def image
stage('Git Prep') {
checkout scm
commit = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
}
stage('Build') {
image = docker.build(image_name + ':' + commit)
}
stage('Publish') {
withDockerRegistry([
credentialsId: "dockerhub-statusteam-auto", url: ""
]) {
image.push()
image.push('deploy')
2018-06-28 12:56:54 +00:00
}
}
}