forked from WorkPlusFE/open.workplus.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
29 lines (27 loc) · 791 Bytes
/
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
// Instead of annotating an unnecessary import statement, the symbol _ is annotated, according to the annotation pattern.
def repoName = "open.workplus.io"
def version = env.BRANCH_NAME
pipeline {
agent any
environment {
CI = 'true'
}
stages {
stage("Git Checkout") {
steps {
checkout scm
}
}
stage("Deploy") {
steps {
sh 'rsync --delete -avz -e ssh ${WORKSPACE}/docs/.vuepress/dist/* [email protected]:/data/workplus/websites/open.workplus.io/next/'
}
}
}
post {
always {
emailext(subject: '$DEFAULT_SUBJECT', body: '$DEFAULT_CONTENT', to: '[email protected]')
cleanWs deleteDirs: true
}
}
}