Last active
March 15, 2017 22:54
-
-
Save christian-posta/6ed716e97e3f9ade466c664eea0d5cee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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