add new branch for aws deploy testing

This commit is contained in:
TechPrimers
2018-06-10 18:30:05 +05:30
parent f08e6e83f2
commit f842d55ed2

6
Jenkinsfile vendored
View File

@@ -6,7 +6,7 @@ pipeline {
steps { steps {
withMaven(maven : 'maven_3_5_0') { withMaven(maven : 'maven_3_5_0') {
sh 'mvn clean compile' sh 'mvn clean install'
} }
} }
} }
@@ -23,8 +23,8 @@ pipeline {
stage ('Deployment Stage') { stage ('Deployment Stage') {
steps { steps {
sh 'cd target'
sh '/usr/local/bin/aws s3 cp jenkins-example-1.0-SNAPSHOT.jar s3://techprimers-s3/' sh '/usr/local/bin/aws s3 cp target/jenkins-example*.jar s3://techprimers-s3/'
sh '/usr/local/bin/aws s3 ls' sh '/usr/local/bin/aws s3 ls'
sh '/usr/local/bin/aws s3 ls s3://techprimers-s3/' sh '/usr/local/bin/aws s3 ls s3://techprimers-s3/'
} }