From a347388b68db4e6b404727434a786b94bf2c2502 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Lopez Date: Thu, 3 Feb 2022 12:25:52 +0100 Subject: [PATCH] adding namespace for simple pipeline --- templates/simple-java-maven-app/Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/simple-java-maven-app/Jenkinsfile b/templates/simple-java-maven-app/Jenkinsfile index 1bcd90d..698a4d6 100644 --- a/templates/simple-java-maven-app/Jenkinsfile +++ b/templates/simple-java-maven-app/Jenkinsfile @@ -4,6 +4,7 @@ pipeline { kubernetes { label 'maven' defaultContainer 'maven' + namespace 'cje-support-agents' } } @@ -15,15 +16,15 @@ pipeline { } stage('Build') { steps { - sh 'mvn -B -DskipTests clean package' + sh 'mvn -Dmaven.test.failure.ignore=true install' } } } post { success { - junit 'target/surefire-reports/**/*.xml' + junit allowEmptyResults: true, testResults: "target/surefire-reports/*.xml" + } } - } - } + } }