testung_18
18
This commit is contained in:
parent
3593cc95fd
commit
3b24c72d98
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
@ -9,6 +9,10 @@ def script_folder = 'owrt_build_script'
|
||||
def config_path = script_folder + '/configs/'
|
||||
def patch_path = script_folder + '/patches/'
|
||||
def patch = patch_path + '16M.patch'
|
||||
def sftp_host = ''
|
||||
def sftp_user = ''
|
||||
def sftp_passwd = ''
|
||||
def ftp_path = '/jenkins/owrt/'
|
||||
|
||||
|
||||
if(params.DEBUG)
|
||||
@ -19,6 +23,22 @@ if(params.GIT)
|
||||
{
|
||||
git_link = params.GIT
|
||||
}
|
||||
if(params.SFTP_HOST)
|
||||
{
|
||||
sftp_host = params.SFT_HOST
|
||||
}
|
||||
if(params.SFTP_USER)
|
||||
{
|
||||
sftp_user = params.SFT_USER
|
||||
}
|
||||
if(params.SFTP_PASSWD)
|
||||
{
|
||||
sftp_passwd = params.SFT_PASSWD
|
||||
}
|
||||
if(params.SFTP_PATH)
|
||||
{
|
||||
sftp_path = params.SFT_PATH
|
||||
}
|
||||
|
||||
def printDebug(msg)
|
||||
{
|
||||
@ -36,8 +56,11 @@ node('test')
|
||||
cleanWs()
|
||||
sh label: 'checkout_configs', script: 'git clone ' + script_git + ' ' + script_folder
|
||||
sh label: 'checkout_openwrt', script: 'git clone ' + git_link + ' ' + git_folder
|
||||
def ret = sh label: 'is_build_needed', script: 'ls -al', returnStdout: true
|
||||
printDebug(ret)
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
stageName = 'pre-build'
|
||||
stage(stageName)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user