Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Commit

Permalink
Add simple Jenkinsfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
iocanel committed May 5, 2017
1 parent 3fc25b0 commit 7eb089b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def mavenVersion='3.3.9'

slave {
withOpenshift {
withMaven(mavenImage: "maven:${mavenVersion}", serviceAccount: "jenkins", mavenRepositoryClaim: "m2-local-repo", mavenSettingsXmlSecret: 'm2-settings') {
inside {
checkout scm
stage 'Build'
container(name: 'maven') {
sh "mvn clean install"
}
}
}
}
}

0 comments on commit 7eb089b

Please sign in to comment.