Newer
Older
apache-camel-cw / Jenkinsfile
Seiji Sogabe on 12 Feb 943 bytes rollback
node {
   def mvnHome
   stage('Preparation') { 
   
      checkout scm

      mvnHome = tool name: 'MAVEN-3.0', type: 'maven'
      env.JAVA_HOME = tool name: 'JDK8', type: 'jdk'
   }

   stage('Build') {
      if (isUnix()) {
         sh "'${mvnHome}/bin/mvn' -Dmaven.test.failure.ignore -Dnoassembly clean install"
      } else {
         bat(/"${mvnHome}\bin\mvn" -Dmaven.test.failure.ignore -Dnoassembly clean install/)
      }
   }
   
   stage('Results') {
      junit '**/target/surefire-reports/TEST-*.xml'
      step([$class: 'JacocoPublisher', execPattern:'**/target/coverage-reports/jacoco-ut.exec', 
                    classPattern: '**/target/classes', sourcePattern: '**/src/main/java'])
                          
      archiveArtifacts artifacts:'**/target/camel-core*-cw.jar, **/target/camel-netty*-cw.jar, **/target/camel-mail*-cw.jar, **/target/camel-mybatis*-cw.jar, **/target/camel-ssh*-cw.jar', fingerprint: true
  }
}