Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Add Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed Mar 16, 2017
1 parent 9b39b6a commit 8c265fe
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Jenkinsfile
@@ -0,0 +1,26 @@
#!groovy

properties([
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '2')),
])

node('linux') {
stage('Prepare') {
deleteDir()
checkout scm
}

stage('Generate') {
withEnv([
"PATH+MVN=${tool 'mvn'}/bin",
"JAVA_HOME=${tool 'jdk8'}",
"PATH+JAVA=${tool 'jdk8'}/bin"
]) {
sh 'mvn -e clean verify'
}
}

stage('Archive') {
archive 'target/jenkins-infra-plugin-*.jar'
}
}

0 comments on commit 8c265fe

Please sign in to comment.