Skip to content

Commit

Permalink
Add Jenkins intermediate jobs in the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelodebittencourt committed Oct 7, 2021
1 parent bacd243 commit 12fd24f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions pipeline_as_code/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,29 @@ pipeline {
}

stages {
stage('Build') {

stage('Clean target directory') {
steps {
// Get some code from a GitHub repository
git 'https://github.com/marcelodebittencourt/Java_JUnit5_Unit_Test_handsOn_ViradaDaQualidade.git'

bat "mvn clean"
}
}

stage('Unit tests') {
steps {
bat "mvn test"
}
}

stage('Build') {
steps {
// Run Maven on a Unix agent.
//sh "mvn -Dmaven.test.failure.ignore=true clean package"

// To run Maven on a Windows agent, use
bat "mvn -Dmaven.test.failure.ignore=true clean package"
bat "mvn -Dmaven.test.failure.ignore=true package"
}

post {
Expand Down

0 comments on commit 12fd24f

Please sign in to comment.