PersonalMain-Golang/Jenkinsfile

25 lines
543 B
Go
Raw Normal View History

2024-01-31 13:40:59 +08:00
pipeline {
2024-01-31 14:36:45 +08:00
environment {
2024-01-31 13:40:59 +08:00
QODANA_TOKEN=credentials('qodana-token')
2024-01-31 14:36:45 +08:00
}
agent {
label '本地'
}
stages {
stage('Qodana代码分析') {
steps {
script {
2024-01-31 14:42:55 +08:00
docker.image('jetbrains/qodana-go').run('''
2024-01-31 14:44:47 +08:00
-v "${WORKSPACE}":/data/project
-w /data/project
2024-01-31 14:50:02 +08:00
-entrypoint ""
2024-01-31 14:36:45 +08:00
''') {
2024-01-31 14:50:02 +08:00
sh 'qodana'
2024-01-31 14:36:45 +08:00
}
}
}
}
}
}