diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000000000000000000000000000000000..0dd09c23f2d4cdb090692be1cedbef8d3238e846 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,34 @@ +pipeline { + agent any + stages { + stage('Prepare'){ + agent any + steps { + checkout scm + } + }post { + success{ + echo 'prepare success' + } + always{ + echo 'done prepare' + } + cleanup{ + echo 'after all other post conditions' + } + } + } + stage('maven build'){ + steps { + sh 'mvn package' + } + post { + success{ + echo 'maven build success' + } + } + failure { + echo 'maven build failed' + } + } +} \ No newline at end of file