-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathJenkinsfile
More file actions
29 lines (27 loc) · 792 Bytes
/
Jenkinsfile
File metadata and controls
29 lines (27 loc) · 792 Bytes
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/.vitepress/dist/* root@106.13.212.147:/data/workplus/websites/open.workplus.io/next/'
}
}
}
post {
always {
emailext(subject: '$DEFAULT_SUBJECT', body: '$DEFAULT_CONTENT', to: 'hejianxian@foreverht.com')
cleanWs deleteDirs: true
}
}
}