From f3b95c3b40f01be1a3cf7129fa488c98e5008f40 Mon Sep 17 00:00:00 2001 From: Thomas Papendieck Date: Mon, 16 Dec 2019 00:00:12 +0100 Subject: [PATCH] initial commit --- Jenkinsfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..2fa3955 --- /dev/null +++ b/Jenkinsfile @@ -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://gogs.informatik.hs-fulda.de/Continous_Integration_in_der_Praxis/colaboration-training.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' + } + } + } + } +}