From aa18564d16f3628434ac49ce1e902b5b8e1578ac Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 1 Mar 2018 17:58:27 +0000 Subject: [PATCH] jenkins: rename Jenkinsfile --- Jenkinsfile | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 5ee38ba..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,45 +0,0 @@ -final String gitRepoUrl = 'git@github.com:kemitix/mon.git' -final String mvn = "mvn --batch-mode --update-snapshots" - -pipeline { - agent any - stages { - stage('Prepare') { - steps { - git url: gitRepoUrl, branch: '**', credentialsId: 'github-kemitix' - } - } - stage('Build') { - parallel { - stage('Java 8') { - steps { - withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') { - sh 'mvn clean install' - } - } - } - stage('Java 9') { - steps { - withMaven(maven: 'maven 3.5.2', jdk: 'JDK 9') { - sh 'mvn clean install' - } - } - } - } - } - stage('Reporting') { - steps { - junit '**/target/surefire-reports/*.xml' - archiveArtifacts '**/target/*.jar' - } - } - stage('Deploy') { - when { expression { (env.GIT_BRANCH == 'master') } } - steps { - withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') { - sh "${mvn} deploy --activate-profiles release" - } - } - } - } -}