Skip to content

Instantly share code, notes, and snippets.

@christian-posta
Last active March 15, 2017 22:54
Show Gist options
  • Save christian-posta/6ed716e97e3f9ade466c664eea0d5cee to your computer and use it in GitHub Desktop.
Save christian-posta/6ed716e97e3f9ade466c664eea0d5cee to your computer and use it in GitHub Desktop.
node('maven') {
stage 'checkout'
git url: 'http://gogs-obsidian.paas.rdu.salab.redhat.com/gogsadmin/demo.git', branch: 'master'
stage 'build-app'
sh "mvn clean package -Dtest=false -DfailIfNoTests=false -DskipITs"
stash name:"build-context", includes:"target/*.jar"
stage 'build-image'
unstash name:"build-context"
sh "oc start-build demo-s2i --from-dir=target/ --follow"
stage 'approval'
input id: 'Proceed', message: "Wait for approval to do the deployment"
stage 'deploy'
openshiftDeploy deploymentConfig: "demo"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment