测试发版
This commit is contained in:
parent
db56a4d3e3
commit
8e63e205ce
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
@ -43,25 +43,20 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
dir("$WORKSPACE/ui/dasadmin") {
|
dir("$WORKSPACE/ui/dasadmin") {
|
||||||
sh "rsync -av --delete dist/ root@192.168.109.195:/das/ui/"
|
sh "rsync -av --delete --copy-as=root dist/ root@192.168.109.195:/das/ui/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('发版后端') {
|
||||||
|
when {
|
||||||
|
expression { params.publish_type == "service" || params.publish_type == "all" }
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
dir("$WORKSPACE/das") {
|
||||||
|
sh 'rsync -av --delete --copy-as=root "$WORKSPACE/ui/dasadmin/dist/" "$WORKSPACE/das/src/main/resources/static"'
|
||||||
|
sh 'mvn -DskipTests -am clean package'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// stage('发版后端') {
|
|
||||||
// when {
|
|
||||||
// expression { params.publish_type == "service" || params.publish_type == "all" }
|
|
||||||
// }
|
|
||||||
// steps {
|
|
||||||
// script {
|
|
||||||
// def remote = [:]
|
|
||||||
// remote.name = "master"
|
|
||||||
// remote.host = "192.168.109.195"
|
|
||||||
// remote.allowAnyHosts = true
|
|
||||||
// remote.user = "root"
|
|
||||||
// remote.password = "84805353"
|
|
||||||
// sshCommand remote: remote, command: 'cd /uspcloud/usp3/ && docker compose pull services-sypower && docker compose down services-sypower && docker compose up -d services-sypower'
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user