Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
withEnv(["KUBERNETES_HOST_NAME=hero-command-test"]) {
stage "checkout, build, test and publish"
node {
git poll: true, url: ""
def mvnHome = tool 'M3'
sh "${mvnHome}/bin/mvn clean install"
sh "USER_NAME=robertbrem VERSION=1.0.${currentBuild.number} ./build.js"
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment