testing_17
17
This commit is contained in:
parent
ee09ec5c49
commit
3593cc95fd
26
Jenkinsfile
vendored
26
Jenkinsfile
vendored
@ -3,12 +3,12 @@
|
|||||||
def debug = false
|
def debug = false
|
||||||
def stageName = ''
|
def stageName = ''
|
||||||
def git_link
|
def git_link
|
||||||
def config_link = 'https://git.psychobox.org/psycho/owrt_build_script.git'
|
def script_git = 'https://git.psychobox.org/psycho/owrt_build_script.git'
|
||||||
def config_path = 'configs/'
|
|
||||||
def patch_path = 'patches/'
|
|
||||||
def script_folder = 'owrt_build_script'
|
|
||||||
def git_folder = 'openwrt'
|
def git_folder = 'openwrt'
|
||||||
def patch = '16M.patch'
|
def script_folder = 'owrt_build_script'
|
||||||
|
def config_path = script_folder + '/configs/'
|
||||||
|
def patch_path = script_folder + '/patches/'
|
||||||
|
def patch = patch_path + '16M.patch'
|
||||||
|
|
||||||
|
|
||||||
if(params.DEBUG)
|
if(params.DEBUG)
|
||||||
@ -19,14 +19,6 @@ if(params.GIT)
|
|||||||
{
|
{
|
||||||
git_link = params.GIT
|
git_link = params.GIT
|
||||||
}
|
}
|
||||||
if(params.CFG_PATH)
|
|
||||||
{
|
|
||||||
config_path = params.CFG_PATH
|
|
||||||
}
|
|
||||||
if(params.PATCH)
|
|
||||||
{
|
|
||||||
patch = params.PATCH
|
|
||||||
}
|
|
||||||
|
|
||||||
def printDebug(msg)
|
def printDebug(msg)
|
||||||
{
|
{
|
||||||
@ -42,7 +34,7 @@ node('test')
|
|||||||
stage(stageName)
|
stage(stageName)
|
||||||
{
|
{
|
||||||
cleanWs()
|
cleanWs()
|
||||||
sh label: 'checkout_configs', script: 'git clone ' + config_link + ' ' + script_folder
|
sh label: 'checkout_configs', script: 'git clone ' + script_git + ' ' + script_folder
|
||||||
sh label: 'checkout_openwrt', script: 'git clone ' + git_link + ' ' + git_folder
|
sh label: 'checkout_openwrt', script: 'git clone ' + git_link + ' ' + git_folder
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,7 +42,7 @@ node('test')
|
|||||||
stage(stageName)
|
stage(stageName)
|
||||||
{
|
{
|
||||||
sh label: 'uiae', script: 'ls -al'
|
sh label: 'uiae', script: 'ls -al'
|
||||||
sh label: 'patch_sources', script: 'cd ' + git_folder + '; patch -p1 < ../' + script_folder + '/' + patch_path + patch
|
sh label: 'patch_sources', script: 'cd ' + git_folder + '; patch -p1 < ../' + patch
|
||||||
sh label: 'feeds_update', script: 'cd ' + git_folder + '; ./scripts/feeds update -a'
|
sh label: 'feeds_update', script: 'cd ' + git_folder + '; ./scripts/feeds update -a'
|
||||||
sh label: 'feeds_install', script: 'cd ' + git_folder + '; ./scripts/feeds install -a'
|
sh label: 'feeds_install', script: 'cd ' + git_folder + '; ./scripts/feeds install -a'
|
||||||
|
|
||||||
@ -61,12 +53,12 @@ node('test')
|
|||||||
{
|
{
|
||||||
//step
|
//step
|
||||||
//{
|
//{
|
||||||
sh label: 'copy_config', script: 'cp ' + script_folder + '/' + config_path + 'tl_wr841_v11_config ' + git_folder + '/.config'
|
sh label: 'copy_config', script: 'cp ' + config_path + 'tl_wr841_v11_config ' + git_folder + '/.config'
|
||||||
sh label: 'build_v11', script: 'cd ' + git_folder + '; make oldconfig; make -j13 V=s'
|
sh label: 'build_v11', script: 'cd ' + git_folder + '; make oldconfig; make -j13 V=s'
|
||||||
//}
|
//}
|
||||||
//step
|
//step
|
||||||
//{
|
//{
|
||||||
sh label: 'copy_config', script: 'cp ' + script_folder + '/' + config_path + 'tl_wr841_v12_config ' + git_folder + '/.config'
|
sh label: 'copy_config', script: 'cp ' + config_path + 'tl_wr841_v12_config ' + git_folder + '/.config'
|
||||||
sh label: 'build_v12', script: 'cd ' + git_folder + '; make oldconfig; make -j13 V=s'
|
sh label: 'build_v12', script: 'cd ' + git_folder + '; make oldconfig; make -j13 V=s'
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user