patch: waterfall
All checks were successful
Personal/PersonalMain-Golang/pipeline/head This commit looks good

This commit is contained in:
筱锋xiao_lfeng 2024-01-31 15:02:47 +08:00
parent f41c2934c4
commit ebff4d629b
No known key found for this signature in database
GPG Key ID: F693AA12AABBFA87

41
Jenkinsfile vendored
View File

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