CI Jenkinsfile: add parallel task for shellcheck lint
This commit is contained in:
parent
6024c7a22f
commit
600e67350a
21
contrib/ci/Jenkinsfile
vendored
21
contrib/ci/Jenkinsfile
vendored
@ -1,3 +1,20 @@
|
||||
def lualint() {
|
||||
make lint-lua
|
||||
}
|
||||
|
||||
def shelllint() {
|
||||
make lint-sh
|
||||
}
|
||||
|
||||
run_lint_set = [
|
||||
"task1": {
|
||||
lualint()
|
||||
},
|
||||
"task2": {
|
||||
shelllint()
|
||||
}
|
||||
]
|
||||
|
||||
pipeline {
|
||||
agent { label 'gluon-docker' }
|
||||
environment {
|
||||
@ -8,7 +25,9 @@ pipeline {
|
||||
stages {
|
||||
stage('lint') {
|
||||
steps {
|
||||
sh 'luacheck package scripts targets'
|
||||
script {
|
||||
parallel(run_lint_set)
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('docs') {
|
||||
|
Loading…
Reference in New Issue
Block a user