patch: waterfall
Some checks failed
Personal/PersonalMain-Golang/pipeline/head There was a failure building this commit
Some checks failed
Personal/PersonalMain-Golang/pipeline/head There was a failure building this commit
This commit is contained in:
parent
04e53f3740
commit
e8e6da39c0
41
Jenkinsfile
vendored
41
Jenkinsfile
vendored
@ -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'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user