diff --git a/README.md b/README.md index 2e9ed99..721a99a 100644 --- a/README.md +++ b/README.md @@ -14,4 +14,4 @@ to run scripts/deliver.sh -this is a uild trigger test +new branch diff --git a/jenkinsFile b/jenkinsFile new file mode 100644 index 0000000..7a257a1 --- /dev/null +++ b/jenkinsFile @@ -0,0 +1,28 @@ +pipeline { + agent any + stages { + stage(build) { + steps { + sh 'mvn clean install -DskipTests' + } + + } + stage(test) { + steps { + sh 'mvn test' + } + post { + always { + junit 'target/surefire-reports/*.xml' + archiveArtifacts 'target/*.jar' + } + + } + } + stage(run){ + steps { + sh './scripts/deliver.sh' + } + } + } +}