Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit 311e47a

Browse files
committed
Merge remote-tracking branch 'origin/deployment'
2 parents 3150886 + 9694fd4 commit 311e47a

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

Jenkinsfile

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,14 @@ node('node') {
1616

1717
if (BRANCH_NAME in ['master']) {
1818
stage('deploy') {
19-
def deploy = new Deploy(steps)
20-
deploy.initialize(
21-
'/var/www/',
22-
'maps4news-docs',
23-
'master',
24-
BUILD_NUMBER,
25-
'f206c873-8c0b-481e-9c72-1ecb97a5213a',
26-
'deploy',
27-
'54.246.191.92',
28-
false
29-
)
30-
31-
deploy.prepare()
32-
deploy.copy('./build/*')
33-
deploy.finish()
19+
sh 'aws s3 sync build/ "s3://docs.beta.maps4news.com"'
20+
sh 'invalidate-file --path="/*" --id="E33W2FGWYKH1FJ" --reference="jenkins"'
3421
}
3522
}
3623

3724
stage('cleanup') {
3825
step([$class: 'WsCleanup'])
3926
}
4027
}
28+
29+
// vim: ft=groovy

0 commit comments

Comments
 (0)