-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
27 lines (25 loc) · 953 Bytes
/
Jenkinsfile
File metadata and controls
27 lines (25 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pipeline {
agent any
stages {
stage('build') {
steps {
echo 'build done1'
sh './gradlew clean build'
}
}
stage('upload') {
steps {
echo 'upload done2'
sh 'aws s3 cp build/libs/application.war s3://springboot-cicd-sol/application.war --region us-west-2'
}
}
stage('deploy') {
steps {
echo 'deploy done3'
sh 'aws elasticbeanstalk create-application-version --region us-west-2 --application-name springboot-cicd-sol --version-label ${BUILD_TAG} --source-bundle S3Bucket="springboot-cicd-sol",S3Key="application.war"'
sh 'aws elasticbeanstalk update-environment --region us-west-2 --environment-name Springbootcicdsol-env --version-label ${BUILD_TAG}'
slackSend (color: '#0000FF', message: "빌드 완료 : 성공 실패는 따로 확인!!!!! STATUS : Job'${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
}
}
}
}