Skip to content

Instantly share code, notes, and snippets.

@admiral0
Created April 22, 2017 16:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save admiral0/fb75c37b6c292a813197be7cb9e57274 to your computer and use it in GitHub Desktop.
Save admiral0/fb75c37b6c292a813197be7cb9e57274 to your computer and use it in GitHub Desktop.
Jenkinsfile for building LEDE
pipeline {
agent any
stages {
stage("SCM Update"){
steps {
sh "git remote add lede git://git.lede-project.org/source.git || true"
sh "git fetch lede"
sh "git branch -D build"
sh "git checkout -b build"
sh "git merge lede/master"
sh "./scripts/feeds update -a"
sh "./scripts/feeds install -a"
}}
stage("Build Image"){
steps {
sh "yes '' | make oldconfig"
sh "make -j4"
}}
}
post {
success {
sh "git remote add githubssh git@github.com:admiral0/lede-rango.git || true"
sh "git fetch githubssh"
sh "git push githubssh build:master"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment