feat: waterfall
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 13:40:59 +08:00
parent 9c1afa1b18
commit a4f0f020ce
No known key found for this signature in database
GPG Key ID: F693AA12AABBFA87
2 changed files with 23 additions and 0 deletions

21
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,21 @@
pipeline {
environment {
QODANA_TOKEN=credentials('qodana-token')
}
agent {
docker {
args '''
-v "${WORKSPACE}":/data/project
--entrypoint=""
'''
image 'jetbrains/qodana-go'
}
}
stages {
stage('Qodana') {
steps {
sh '''qodana'''
}
}
}
}

View File

@ -202,6 +202,8 @@ func (*SponsorServiceImpl) DeleteSponsor(req *ghttp.Request, entity entity.Spons
} else {
ResultUtil.ErrorNoData(req, ErrorCode.ServerDatabaseInteriorError)
}
} else {
ResultUtil.ErrorNoData(req, ErrorCode.NoSponsor)
}
} else {
ResultUtil.ErrorNoData(req, ErrorCode.NoPermission)