From 5998349185c0dcb07655c58946bfaaa4cbd43888 Mon Sep 17 00:00:00 2001 From: XiaoLFeng Date: Wed, 31 Jan 2024 19:13:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 412beb1..a162f84 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {