-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a96db01
commit bacd243
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
pipeline { | ||
agent any | ||
|
||
tools { | ||
// Install the Maven version configured as "M3" and add it to the path. | ||
maven "M3" | ||
} | ||
|
||
stages { | ||
stage('Build') { | ||
steps { | ||
// Get some code from a GitHub repository | ||
git 'https://github.com/marcelodebittencourt/Java_JUnit5_Unit_Test_handsOn_ViradaDaQualidade.git' | ||
|
||
// 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" | ||
} | ||
|
||
post { | ||
// If Maven was able to run the tests, even if some of the test | ||
// failed, record the test results and archive the jar file. | ||
success { | ||
junit '**/target/surefire-reports/TEST-*.xml' | ||
archiveArtifacts 'target/*.jar' | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters