x86_64-alpine-watcher/sidecar/Jenkinsfile
Jonathan Ervine cacd9ca4c2 new file: sidecar/Dockerfile
new file:   sidecar/Jenkinsfile
	new file:   sidecar/start.sh
Added sidecar image to load databases into ramdisk and periodically back
them up
2020-03-19 09:44:25 +08:00

25 lines
732 B
Groovy

node("docker-node") {
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
git branch: "3.11.3", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-alpine-watcher/sidecar", 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/alpine/watcher-sidecar"
stage "publish"
app.push("${env.BUILD_NUMBER}")
app.push("3.11.3")
app.push("latest")
}
catch (err) {
currentBuild.result = 'FAILURE'
}
}
}