This is an automated email from the ASF dual-hosted git repository. abesto pushed a commit to branch jenkinsfile-wip in repository https://gitbox.apache.org/repos/asf/incubator-zipkin-brave-karaf.git
commit bdd9802d034fef65614e56f404c07a16738f86b1 Author: Zoltan Nagy <[email protected]> AuthorDate: Wed Jan 30 17:06:26 2019 +0000 Add Jenkinsfile proof of concept --- Jenkinsfile | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..620e36b --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,54 @@ +pipeline { + agent { + label 'ubuntu' + } + + tools { + jdk 'JDK 1.8 (latest)' + } + + options { + buildDiscarder(logRotator(numToKeepStr: '10')) + timestamps() + } + + triggers { + pollSCM('H/15 * * * *') + } + + stages { + stage('SCM Checkout') { + steps { + deleteDir() + checkout scm + } + } + + stage('Check environment') { + steps { + sh 'env' + sh 'pwd' + sh 'ls' + sh 'git status' + } + } + + stage('Run tests') { + steps { + // use install, as opposed to verify, to ensure invoker tests use latest code + sh './mvnw clean install' + } + } + } + + + post { + always { + junit '**/target/surefire-reports/*.xml' + deleteDir() + } + } +}eteDir() + } + } +}
