Skip to content

Instantly share code, notes, and snippets.

@robertBrem
Created November 11, 2016 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertBrem/b18dee521176a3d75026cbe902d16b2f to your computer and use it in GitHub Desktop.
Save robertBrem/b18dee521176a3d75026cbe902d16b2f to your computer and use it in GitHub Desktop.
withEnv(["KUBERNETES_HOST_NAME=hero-command-test"]) {
stage "checkout, build, test and publish"
node {
git poll: true, url: "http://adesso.disruptor.ninja:30130/rob/hero-command.git"
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