diff --git a/Jenkinsfile b/Jenkinsfile index 079f3fb..f6208aa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,19 +1,20 @@ pipeline{ agent any + tools{ + maven 'maven- id here' + } stages{ - stage("Bulid"){ + stage("Checkout"){ steps{ - echo 'building the project' + git 'git url here' } - stage("test"){ - steps{ - echo 'testing the project ' - } } - stage("deploy"){ + stage("Build"){ steps{ - echo 'deploying the project ' - } + sh 'mvn clean package' + } + } + } } - } -} + +