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

Commit e0b4d71

Browse files
author
Kevin Richter
committed
Fix deploy
1 parent 53dc903 commit e0b4d71

File tree

3 files changed

+28
-245
lines changed

3 files changed

+28
-245
lines changed

Jenkinsfile

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,36 @@
22
import org.mapcreator.Deploy
33

44
node('node') {
5-
stage('checkout') {
6-
checkout scm
7-
}
5+
stage('checkout') {
6+
checkout scm
7+
}
88

9-
stage('build') {
10-
sh 'npm install'
11-
sh 'npm run copy-pages'
12-
sh 'npm run compile-docs-wrapper'
13-
sh 'sudo bundle install'
14-
sh 'bundle exec middleman build --clean'
15-
}
9+
stage('build') {
10+
sh 'npm install'
11+
sh 'npm run compile-docs-wrapper'
12+
sh 'sudo bundle install'
13+
sh 'bundle exec middleman build --clean'
14+
}
1615

17-
stage('deploy') {
18-
def deploy = new Deploy(steps)
19-
deploy.initialize(
20-
'/var/www/',
21-
'maps4news-docs',
22-
'master',
23-
BUILD_NUMBER,
24-
'f206c873-8c0b-481e-9c72-1ecb97a5213a',
25-
'deploy',
26-
'54.246.191.92',
27-
false
28-
)
16+
stage('deploy') {
17+
def deploy = new Deploy(steps)
18+
deploy.initialize(
19+
'/var/www/',
20+
'maps4news-docs',
21+
'master',
22+
BUILD_NUMBER,
23+
'f206c873-8c0b-481e-9c72-1ecb97a5213a',
24+
'deploy',
25+
'54.246.191.92',
26+
false
27+
)
2928

30-
deploy.prepare()
31-
deploy.copy('./build/*')
32-
deploy.finish()
33-
}
29+
deploy.prepare()
30+
deploy.copy('./build/*')
31+
deploy.finish()
32+
}
3433

35-
stage('cleanup') {
36-
step([$class: 'WsCleanup'])
37-
}
34+
stage('cleanup') {
35+
step([$class: 'WsCleanup'])
36+
}
3837
}

deploy.sh

Lines changed: 0 additions & 215 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "api-docs",
33
"version": "1.0.0",
44
"scripts": {
5-
"copy-pages": "cp pages/* source/",
65
"compile-docs-wrapper": "npx esdoc"
76
},
87
"dependencies": {

0 commit comments

Comments
 (0)