Declarative pipeline.
This commit is contained in:
parent
8983749988
commit
3d0d4d8734
|
|
@ -1,9 +1,14 @@
|
||||||
node ("make") {
|
pipeline {
|
||||||
|
agent any
|
||||||
|
stages {
|
||||||
stage('checkout tools') {
|
stage('checkout tools') {
|
||||||
|
steps {
|
||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('checkout') {
|
stage('checkout') {
|
||||||
|
steps {
|
||||||
checkout([
|
checkout([
|
||||||
$class: 'GitSCM',
|
$class: 'GitSCM',
|
||||||
branches: [[name: 'v17.01.2']],
|
branches: [[name: 'v17.01.2']],
|
||||||
|
|
@ -29,23 +34,37 @@ node ("make") {
|
||||||
]
|
]
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dir("source") {
|
|
||||||
stage('feeds') {
|
stage('feeds') {
|
||||||
|
steps {
|
||||||
|
dir("source") {
|
||||||
sh "./scripts/feeds update -a"
|
sh "./scripts/feeds update -a"
|
||||||
sh "./scripts/feeds install -a"
|
sh "./scripts/feeds install -a"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
stage('patches') {
|
stage('patches') {
|
||||||
|
steps {
|
||||||
|
dir("source") {
|
||||||
sh "cp -rf firmware/files firmware/package ."
|
sh "cp -rf firmware/files firmware/package ."
|
||||||
sh 'for file in firmware/patches/lede/*.patch; do patch -p1 < $file; done'
|
sh 'for file in firmware/patches/lede/*.patch; do patch -p1 < $file; done'
|
||||||
dir('feeds/routing') {
|
dir('feeds/routing') {
|
||||||
sh 'for file in ../../firmware/patches/routing/*.patch; do patch -p1 < $file; done'
|
sh 'for file in ../../firmware/patches/routing/*.patch; do patch -p1 < $file; done'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
stage('build') {
|
stage('build') {
|
||||||
|
steps {
|
||||||
|
dir("source") {
|
||||||
sh "../build.sh"
|
sh "../build.sh"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue