2019-09-26 14:12:09 +00:00
|
|
|
pipeline {
|
2019-12-29 14:59:29 +00:00
|
|
|
agent none
|
2019-09-26 22:01:01 +00:00
|
|
|
environment {
|
|
|
|
GLUON_SITEDIR = "contrib/ci/minimal-site"
|
2019-12-29 14:59:16 +00:00
|
|
|
GLUON_TARGET = "x86-64"
|
|
|
|
BUILD_LOG = "1"
|
2019-09-26 22:01:01 +00:00
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('lint') {
|
2019-12-29 14:59:29 +00:00
|
|
|
parallel {
|
|
|
|
stage('lint-lua') {
|
|
|
|
agent { label 'gluon-docker' }
|
|
|
|
steps {
|
|
|
|
sh 'make lint-lua'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('lint-sh') {
|
|
|
|
agent { label 'gluon-docker' }
|
|
|
|
steps {
|
|
|
|
sh 'make lint-sh'
|
|
|
|
}
|
2019-09-26 22:06:01 +00:00
|
|
|
}
|
2019-09-26 22:01:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('docs') {
|
2019-12-29 14:59:29 +00:00
|
|
|
agent { label 'gluon-docker' }
|
2019-09-26 22:01:01 +00:00
|
|
|
steps {
|
|
|
|
sh 'make -C docs html'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('build') {
|
2019-12-29 14:59:29 +00:00
|
|
|
agent { label 'gluon-docker' }
|
2019-09-26 22:01:01 +00:00
|
|
|
steps {
|
|
|
|
sh 'make update'
|
2019-12-29 14:59:16 +00:00
|
|
|
sh 'test -d /dl_cache && ln -s /dl_cache openwrt/dl || true'
|
|
|
|
sh 'make -j$(nproc) V=s'
|
2019-09-26 22:01:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-09-26 14:12:09 +00:00
|
|
|
}
|