Skip to content
Snippets Groups Projects
Unverified Commit 22fe6d10 authored by Daniel Ecer's avatar Daniel Ecer Committed by GitHub
Browse files

push unstable image (#111)

* move checkout and move to master into containers node

* use elifePipeline

* push unstable image
parent eb23da3f
No related branches found
No related tags found
No related merge requests found
elifeLibrary {
def commit
elifePipeline {
node('containers-jenkins-plugin') {
def commit
stage 'Checkout', {
checkout scm
commit = elifeGitRevision()
}
stage 'Checkout', {
checkout scm
commit = elifeGitRevision()
}
node('containers-jenkins-plugin') {
stage 'Build and run tests', {
checkout scm
try {
......@@ -15,11 +15,18 @@ elifeLibrary {
sh "make ci-clean"
}
}
}
elifeMainlineOnly {
stage 'Merge to master', {
elifeGitMoveToBranch commit, 'master'
elifeMainlineOnly {
stage 'Merge to master', {
elifeGitMoveToBranch commit, 'master'
}
stage 'Push unstable image', {
def image = DockerImage.elifesciences(this, 'sciencebeam-gym', commit)
def unstable_image = image.addSuffixAndTag('_unstable', commit)
unstable_image.tag('latest').push()
unstable_image.push()
}
}
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment