-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
30 lines (29 loc) · 961 Bytes
/
Jenkinsfile
File metadata and controls
30 lines (29 loc) · 961 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
28
29
30
#!/usr/bin/env groovy
pipeline {
agent any
options { skipDefaultCheckout()
disableConcurrentBuilds()
}
stages {
stage('Build Dependencies') {
steps {
checkout scm
sh "npm install"
}
}
stage('Package') {
steps {
sh "npm run build-aws-resource"
sh "aws s3 ls"
sh "aws s3 cp amazonexample.zip s3://anthony-bucket-one/amazonexample.zip"
sh "aws s3 cp cloudformation.template s3://anthony-bucket-one/cloudformation.template"
}
}
stage('Build') {
steps {
sh 'aws cloudformation create-stack --template-url https://anthony-bucket-one.s3-ap-northeast-1.amazonaws.com/cloudformation.template --stack-name anthonyteststack --capabilities CAPABILITY_IAM --region ap-northeast-1\n'
sh 'aws cloudformation wait stack-create-complete --stack-name anthonyteststack --region ap-northeast-1'
}
}
}
}