x86_64-suse-stepCA/Jenkinsfile
Jonathan Ervine 1509425c99 modified: Dockerfile
modified:   Jenkinsfile
Bumped to version 0.14.3
2020-05-06 11:44:36 +08:00

24 lines
713 B
Groovy

node("docker-node") {
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
git branch: "master", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-suse-stepCA", credentialsId: 'jenkins-to-git'
sh "git rev-parse HEAD > .git/commit-id"
def commit_id = readFile('.git/commit-id').trim()
println commit_id
try {
stage "build"
def app = docker.build "library/x86_64/suse/stepca"
stage "publish"
app.push("${env.BUILD_NUMBER}")
app.push("latest")
app.push("0.14.3")
}
catch (err) {
currentBuild.result = 'FAILURE'
}
}
}