From 7eb089b259c374eaa454d4605f810a6f94a13115 Mon Sep 17 00:00:00 2001 From: Ioannis Canellos Date: Fri, 5 May 2017 16:21:08 +0300 Subject: [PATCH] Add simple Jenkinsfile. --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..5a306bb --- /dev/null +++ b/Jenkinsfile @@ -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" + } + } + } + } +} \ No newline at end of file