CI Jenkinsfile: add parallel task for shellcheck lint

This commit is contained in:
Jan-Tarek Butt 2019-09-27 00:06:01 +02:00 committed by Matthias Schiffer
parent 6024c7a22f
commit 600e67350a
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -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') {