testing_03

03
This commit is contained in:
psycho 2020-08-11 21:14:01 +02:00
parent 10fb042742
commit 1e37db4d8e

31
Jenkinsfile vendored
View File

@ -1,4 +1,4 @@
import groovy.io.*
def debug = false
def stageName = ''
@ -19,21 +19,13 @@ if(params.CFG_PATH)
config_path = params.CFG_PATH
}
def listfiles(dir) {
dlist = []
flist = []
new File(dir).eachDir {dlist << it.name }
dlist.sort()
new File(dir).eachFile(FileType.FILES, {flist << it.name })
flist.sort()
return (dlist << flist).flatten()
}
def printDebug(msg)
{
println 'DEBUG: ' + msg
}
node('test')
{
if(debug)
@ -41,12 +33,6 @@ node('test')
printDebug('FFUUCCKK')
}
fs = listfiles(pwd() + config_path)
fs.each
{
println it
}
stageName = 'checkout'
stage(stageName)
{
@ -65,6 +51,15 @@ node('test')
stageName = 'build'
stage(stageName)
{
sh label: 'build', script: 'echo fuck you'
step('v11')
{
sh label: 'copy_config', script: 'cp owrt_build_script/configs/tl_wr841_v11_config .config'
sh label: 'build', script: 'echo v11'
}
step('v12')
{
sh label: 'copy_config', script: 'cp owrt_build_script/configs/tl_wr841_v12_config .config'
sh label: 'build_v12', script: 'echo v12'
}
}
}