x86_64-alpine-get_iplayer/Jenkinsfile
Jonny Ervine 3dcc4b486d new file: Dockerfile
new file:   Jenkinsfile
	new file:   files/etc/crontabs/root
	new file:   files/etc/logrotate.d/get_iplayer
	new file:   files/etc/periodic/daily/get_iplayer_update
	new file:   files/etc/periodic/hourly/get_iplayer_pvr
	new file:   files/start
Initial commit
2020-02-18 09:50:10 +00:00

18 lines
572 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-get_iplayer", credentialsId: 'jenkins-to-git'
sh "git rev-parse HEAD > .git/commit-id"
def commit_id = readFile('.git/commit-id').trim()
println commit_id
stage "build"
def app = docker.build "library/x86_64/alpine/get_iplayer"
stage "publish"
app.push("${env.BUILD_NUMBER}")
app.push("latest")
}
}