Created
April 22, 2017 16:00
-
-
Save admiral0/fb75c37b6c292a813197be7cb9e57274 to your computer and use it in GitHub Desktop.
Jenkinsfile for building LEDE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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