项目测试
Some checks reported errors
Personal/PersonalMain-Golang/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
筱锋xiao_lfeng 2024-01-31 19:13:39 +08:00
parent bc6b1dc853
commit 5998349185
No known key found for this signature in database
GPG Key ID: F693AA12AABBFA87

31
Jenkinsfile vendored
View File

@ -32,10 +32,33 @@ pipeline {
stage('项目部署至服务器') {
steps {
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, keepFilePermissions: true, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'blog-main', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'personalMain')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
sshPublisher(
publishers: [
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('项目归档') {
steps {