Skip to content

Commit

Permalink
added Jenkinsfile, a pipeline script
Browse files Browse the repository at this point in the history
  • Loading branch information
apssouza22 committed Oct 16, 2017
1 parent f5ea5a7 commit 8de780a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions eureka-server/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
node {
stage('Fetch changes') {
git 'https://github.com/apssouza22/java-microservice.git'
}
stage('Build image') {
// Run the maven build
if (isUnix()) {
sh "mvn -f ./eureka-server/pom.xml -Pdockerimage docker:build "
} else {
echo "Not ready for windows"
}
}
stage('Deploy ECS') {
echo "TODO deploy on AWS"
}
}

0 comments on commit 8de780a

Please sign in to comment.