Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 12 additions & 22 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
}
}
}
}