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

Commit

Permalink
Merge remote-tracking branch 'origin/deployment'
Browse files Browse the repository at this point in the history
  • Loading branch information
beschoenen committed Jun 3, 2019
2 parents 3150886 + 9694fd4 commit 311e47a
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,14 @@ node('node') {

if (BRANCH_NAME in ['master']) {
stage('deploy') {
def deploy = new Deploy(steps)
deploy.initialize(
'/var/www/',
'maps4news-docs',
'master',
BUILD_NUMBER,
'f206c873-8c0b-481e-9c72-1ecb97a5213a',
'deploy',
'54.246.191.92',
false
)

deploy.prepare()
deploy.copy('./build/*')
deploy.finish()
sh 'aws s3 sync build/ "s3://docs.beta.maps4news.com"'
sh 'invalidate-file --path="/*" --id="E33W2FGWYKH1FJ" --reference="jenkins"'
}
}

stage('cleanup') {
step([$class: 'WsCleanup'])
}
}

// vim: ft=groovy

0 comments on commit 311e47a

Please sign in to comment.