项目部署
Some checks reported warnings
Personal/PersonalMain-Golang/pipeline/head This commit is unstable
Some checks reported warnings
Personal/PersonalMain-Golang/pipeline/head This commit is unstable
This commit is contained in:
parent
ff15fabff8
commit
ac2acf44f3
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -31,7 +31,9 @@ pipeline {
|
|||||||
stage('项目部署至服务器') {
|
stage('项目部署至服务器') {
|
||||||
steps {
|
steps {
|
||||||
sh 'echo "部署项目至服务器"'
|
sh 'echo "部署项目至服务器"'
|
||||||
// 这里放置部署至服务器的代码
|
sshPublisher(publishers: [sshPublisherDesc(configName: 'XiaoLFengBlogServer', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '''cd ./blog-main
|
||||||
|
chmod +x ./personalMain
|
||||||
|
nohup ./personalMain > logger.log 2>&1 &''', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'blog-main', remoteDirectorySDF: false, removePrefix: '', sourceFiles: './personalMain')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true)])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user