-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile_old
44 lines (42 loc) · 1.11 KB
/
Jenkinsfile_old
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
pipeline {
agent{
dockerfile true
}
environment {
AWS_DEFAULT_REGION = 'ap-south-1'
VERSION_NUMBER='v2.0'
VERSION_NUMBER_OLD='v1.0'
}
stages {
stage('Build') {
steps {
sh "echo ${VERSION_NUMBER} > version.txt"
echo 'Building Project..'
sh 'gradle build'
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'aws-key', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY']]) {
sh "./blue_green.sh ${VERSION_NUMBER}"
}
}
}
stage('DEV') {
steps {
echo 'Building..'
}
}
stage('Staging') {
steps {
echo 'Building..'
}
}
stage('Production') {
steps {
echo 'Building..'
}
}
stage('List S3 Buckets') {
steps {
echo "List s3"
}
}
}
}