48 lines
1.4 KiB
Groovy
48 lines
1.4 KiB
Groovy
node ("make") {
|
|
stage('checkout') {
|
|
checkout([
|
|
$class: 'GitSCM',
|
|
branches: [[name: 'v17.01.2']],
|
|
doGenerateSubmoduleConfigurations: false,
|
|
extensions: [
|
|
[$class: 'RelativeTargetDirectory', relativeTargetDir: 'source']
|
|
],
|
|
submoduleCfg: [],
|
|
userRemoteConfigs: [
|
|
[url: 'git://git.lede-project.org/source.git']
|
|
]
|
|
])
|
|
checkout([
|
|
$class: 'GitSCM',
|
|
branches: [[name: 'dev']],
|
|
doGenerateSubmoduleConfigurations: false,
|
|
extensions: [
|
|
[$class: 'RelativeTargetDirectory', relativeTargetDir: 'source/firmware']
|
|
],
|
|
submoduleCfg: [],
|
|
userRemoteConfigs: [
|
|
[url: 'git://github.com/ffbsee/firmware.git']
|
|
]
|
|
])
|
|
}
|
|
|
|
dir("source") {
|
|
stage('feeds') {
|
|
sh "./scripts/feeds update -a"
|
|
sh "./scripts/feeds install -a"
|
|
}
|
|
|
|
stage('patches') {
|
|
sh "cp -rf firmware/files firmware/package ."
|
|
sh 'for file in firmware/patches/lede/*.patch; do patch -p1 < $file; done'
|
|
dir('feeds/routing') {
|
|
sh 'for file in ../../firmware/patches/routing/*.patch; do patch -p1 < $file; done'
|
|
}
|
|
}
|
|
|
|
stage('build') {
|
|
sh "../build.sh"
|
|
}
|
|
}
|
|
}
|