-
Notifications
You must be signed in to change notification settings - Fork 15
/
Jenkinsfile
executable file
·71 lines (61 loc) · 1.99 KB
/
Jenkinsfile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// pipeline {
// agent {
// docker {
// image 'node:16.13-buster'
// args '-u root:root'
// }
// }
// environment {
// HOME = '.'
// }
// stages {
// stage('Setup') {
// steps {
// script {
// try{
// sh 'npm install -g react-app-rewired'
// sh 'yarn'
// }catch(Exception e){}
// }
// }
// }
// stage('Build') {
// steps {
// sh 'yarn build'
// }
// }
// stage('Deploy'){
// parallel {
// stage('Staging-Deploy') {
// when {
// branch 'development'
// }
// steps {
// echo 'development'
// withAWS(region:"us-east-1", credentials: "7c7202fd-9de5-46ce-a20f-991c6eaabf8e") {
// s3Delete(bucket: 'development-bridge.xp.network', path:'**/*')
// s3Upload(bucket: 'development-bridge.xp.network', workingDir:'build', includePathPattern:'**/*');
// s3Delete(bucket: 'testing.bridge.xp.network', path:'**/*')
// s3Upload(bucket: 'testing.bridge.xp.network', workingDir:'build', includePathPattern:'**/*');
// cfInvalidate(distribution:'E2TRABW1D761CA', paths:['/*'], waitForCompletion: true);
// cfInvalidate(distribution:'E2VH18EBXVH69V', paths:['/*'], waitForCompletion: true);
// }
// }
// }
// stage('Main-Deploy') {
// when {
// branch 'temporary'
// }
// steps {
// echo 'temporary'
// withAWS(region:"us-east-1", credentials: "7c7202fd-9de5-46ce-a20f-991c6eaabf8e") {
// s3Delete(bucket: 'temporary.bridge.xp.network', path:'**/*')
// s3Upload(bucket: 'temporary.bridge.xp.network', workingDir:'build', includePathPattern:'**/*');
// cfInvalidate(distribution:'E327TLGEF3Q2LI', paths:['/*'], waitForCompletion: true)
// }
// }
// }
// }
// }
// }
// }