Skip to content

Commit

Permalink
adding namespace for simple pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosrodlop committed Feb 3, 2022
1 parent 6a4ff14 commit a347388
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions templates/simple-java-maven-app/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pipeline {
kubernetes {
label 'maven'
defaultContainer 'maven'
namespace 'cje-support-agents'
}
}

Expand All @@ -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"
}
}
}
}
}
}

0 comments on commit a347388

Please sign in to comment.