-
Notifications
You must be signed in to change notification settings - Fork 44
/
Jenkinsfile
executable file
·33 lines (29 loc) · 1.04 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
#!groovy
stage("Build") {
node {
checkout([
$class: 'GitSCM',
branches: scm.branches,
extensions: scm.extensions + [[$class: 'CleanBeforeCheckout']],
userRemoteConfigs: scm.userRemoteConfigs
])
docker.image('tarantool/doc').inside('') {
sh "cmake ."
sh "VERBOSE=1 make sphinx-html sphinx-html-ru"
sh "VERBOSE=1 make sphinx-singlehtml sphinx-singlehtml-ru"
}
sshagent(['3b02c16d-d8fc-4082-ba2f-38e48d8a4993']) {
env.SERVER = "try.tarantool.org"
env.USER = "knazarov"
env.DEST_DIR = "/var/www/tarantool-website"
sh "mkdir -p ~/.ssh"
sh "chmod 700 ~/.ssh"
sh "ssh-keyscan $SERVER > ~/.ssh/known_hosts"
sh "chmod 600 ~/.ssh/*"
sh "rsync -Pav output/en/doc/1.8/ " +
"$USER@$SERVER:$DEST_DIR/en/doc/1.8"
sh "rsync -Pav output/ru/doc/1.8/ " +
"$USER@$SERVER:$DEST_DIR/ru/doc/1.8"
}
}
}