patch: waterfall
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 14:36:45 +08:00
parent 04e53f3740
commit e8e6da39c0
No known key found for this signature in database
GPG Key ID: F693AA12AABBFA87

41
Jenkinsfile vendored
View File

@ -1,22 +1,23 @@
pipeline {
environment {
environment {
QODANA_TOKEN=credentials('qodana-token')
}
agent {
label '本地'
docker {
args '''
-v "${WORKSPACE}":/data/project
--entrypoint=""
'''
image 'jetbrains/qodana-go'
}
}
stages {
stage('Qodana') {
steps {
sh '''qodana'''
}
}
}
}
}
agent {
label '本地'
}
stages {
stage('Qodana代码分析') {
steps {
script {
docker.image(jetbrains/qodana-go).run('''
--v "${WORKSPACE}":/data/project
--entrypoint=""
''') {
sh '''qodana'''
}
}
}
}
}
}