-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
43 lines (43 loc) · 1.13 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
pipeline {
agent {
dockerfile true
}
stages {
stage('Checkout VTCR') {
steps {
dir('depRepo/VTCR') {
git(url: 'https://github.com/ventureum/VTCR', branch: 'master', poll: true, changelog: true, credentialsId: 'github')
}
}
}
stage('Migrate Contracts') {
steps {
dir('depRepo/VTCR') {
sh 'truffle migrate --network geth --reset'
sh 'cp -r ./build/contracts ../../public/contracts'
}
}
}
stage('Install Dependencies') {
steps {
sh 'npm install'
sh 'cp ./react-scripts/config/* ./node_modules/react-scripts/config/'
sh 'cp ./react-css-modules/dist/extendReactClass.js ./node_modules/react-css-modules/dist/'
sh 'cp ./react-jsonschema-form/lib/components/widgets/AltDateWidget.js ./node_modules/react-jsonschema-form/lib/components/widgets/'
}
}
stage('Build') {
steps {
sh 'CI=false npm run build'
}
}
stage('Deliver to S3') {
steps {
sh 'aws s3 sync --delete ./build s3://dev.ventureum.io'
}
}
}
environment {
CI = 'true'
}
}