diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..92ba7237a --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,31 @@ +// Jenkins Pipeline Declarative CICD Flow + +pipeline { + agent any + stages { + + stage("build") { + steps { + sh "./mvnw package" + } + } + + stage("artifact") { + steps { + archiveArtifacts '**/target/*.jar' + jacoco() + junit '**/target/surefire-reports/TEST*.xml' + } + } + } + + // post actions + post { + always { + emailext body: 'Test Message', + recipientProviders: [developers(), requestor()], + subject: 'Test Subject', + to: 'test@example.com' + } + } +} \ No newline at end of file