patch: waterfall
All checks were successful
Personal/PersonalMain-Golang/pipeline/head This commit looks good
All checks were successful
Personal/PersonalMain-Golang/pipeline/head This commit looks good
This commit is contained in:
parent
f41c2934c4
commit
ebff4d629b
41
Jenkinsfile
vendored
41
Jenkinsfile
vendored
@ -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'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user