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

Commit ba3a2c2

Browse files
committed
Deploy to S3 instead of server
1 parent 314c3e6 commit ba3a2c2

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

Jenkinsfile

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,13 @@ 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"'
3420
}
3521
}
3622

3723
stage('cleanup') {
3824
step([$class: 'WsCleanup'])
3925
}
4026
}
27+
28+
// vim: ft=groovy

0 commit comments

Comments
 (0)