diff --git a/Jenkinsfile b/Jenkinsfile index 4102231..82beb15 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,23 +1,13 @@ pipeline { - agent any - stages { - stage('Build') { - steps { - sh "rm -rf springExample" - sh "git clone https://github.com/awsdevops009/springExample.git" - sh "mvn clean " - } - } - stage('Test') { - steps { - sh "mvn test -f springExample" - echo "Welcome to Test" - } - } - stage('Deploy') { - steps { - sh "mvn package -f springExample" - echo "It is going to package the project today" - } - } - } } + agent {lebel 'jenkins-slave-1'} + stages { + stage('Build') { + steps { + sh "rm -rf springExample" + sh "git clone https://github.com/awsdevops009/springExample.git" + sh "mvn clean -f springExample" + echo ' job finished' + } + } + } +}