项目测试
Some checks reported errors
Personal/PersonalMain-Golang/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
Personal/PersonalMain-Golang/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
bc6b1dc853
commit
5998349185
31
Jenkinsfile
vendored
31
Jenkinsfile
vendored
@ -32,10 +32,33 @@ pipeline {
|
|||||||
stage('项目部署至服务器') {
|
stage('项目部署至服务器') {
|
||||||
steps {
|
steps {
|
||||||
echo '部署项目至服务器'
|
echo '部署项目至服务器'
|
||||||
sshPublisher(publishers: [sshPublisherDesc(configName: 'XiaoLFengBlogServer', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '''cd ./blog-main
|
sshPublisher(
|
||||||
chmod +x ./personalMain
|
publishers: [
|
||||||
nohup ./personalMain > logger.log 2>&1 &''', execTimeout: 120000, flatten: false, keepFilePermissions: true, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'blog-main', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'personalMain')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
|
sshPublisherDesc(
|
||||||
}
|
configName: 'XiaoLFengBlogServer',
|
||||||
|
transfers: [
|
||||||
|
sshTransfer(
|
||||||
|
cleanRemote: false,
|
||||||
|
excludes: '',
|
||||||
|
execCommand: 'echo 1',
|
||||||
|
execTimeout: 120000,
|
||||||
|
flatten: false,
|
||||||
|
makeEmptyDirs: false,
|
||||||
|
noDefaultExcludes: false,
|
||||||
|
patternSeparator: '[, ]+',
|
||||||
|
remoteDirectory: 'blog-main',
|
||||||
|
remoteDirectorySDF: false,
|
||||||
|
removePrefix: '',
|
||||||
|
sourceFiles: 'personalMain'
|
||||||
|
)
|
||||||
|
],
|
||||||
|
usePromotionTimestamp: false,
|
||||||
|
useWorkspaceInPromotion: false,
|
||||||
|
verbose: true
|
||||||
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
stage('项目归档') {
|
stage('项目归档') {
|
||||||
steps {
|
steps {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user