项目测试
Some checks failed
Personal/PersonalMain-Golang/pipeline/head There was a failure building this commit

This commit is contained in:
筱锋xiao_lfeng 2024-01-31 18:59:51 +08:00
parent 625360a673
commit c17093a89e
No known key found for this signature in database
GPG Key ID: F693AA12AABBFA87

11
Jenkinsfile vendored
View File

@ -1,6 +1,7 @@
pipeline {
environment {
QODANA_TOKEN=credentials('qodana-token')
SSH_KEY=credentials('ssh-key')
}
agent any
@ -31,9 +32,15 @@ pipeline {
stage('项目部署至服务器') {
steps {
echo '部署项目至服务器'
sshPublisher(publishers: [sshPublisherDesc(configName: 'XiaoLFengBlogServer', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '''cd ./blog-main
sshPublisher(publishers: [sshPublisherDesc(configName: 'JslServer', sshCredentials: [encryptedPassphrase: '{AQAAABAAAAAQSo3d/A9JT3b4GyF3ko9CLF5tctSczhkSZNxEzdL8mEw=}', key: SSH_KEY, keyPath: '', 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, keepFilePermissions: true, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'blog-main', remoteDirectorySDF: false, removePrefix: '', sourceFiles: './personalMain')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true)])
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)])
}
}
stage('项目归档') {
steps {
echo '项目归档'
archiveArtifacts artifacts: './personalMain', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
}
}
}