项目部署
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 17:11:30 +08:00
parent e10eb5a9d4
commit d7a16d9971
No known key found for this signature in database
GPG Key ID: F693AA12AABBFA87

4
Jenkinsfile vendored
View File

@ -31,7 +31,9 @@ pipeline {
stage('项目部署至服务器') {
steps {
sh 'echo "部署项目至服务器"'
sshPublisher(publishers: [sshPublisherDesc(configName: 'XiaoLFengBlogServer', sshCredentials: [encryptedPassphrase: '{AQAAABAAAAAQSacznOIQ5NOv9Th6Y69rpzOityE/MNxXHF9yZIfcfSo=}', key: '', keyPath: '/var/jenkins_home/general-key', username: 'ecs-user'], transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true)])
sshPublisher(publishers: [sshPublisherDesc(configName: 'XiaoLFengBlogServer', sshCredentials: [encryptedPassphrase: '{AQAAABAAAAAQrXydf4kWME+M5r1FJeIC7y3P7e+14xuo5oNTQ6wxhrw=}', key: '', keyPath: '/var/jenkins_home/general-key', username: 'ecs-user'], 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)])
}
}
}