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