Copy over the blenddir when adding a job.

This commit is contained in:
parazyd 2018-10-08 14:12:42 +02:00
parent a26432d665
commit c216f578ce
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
2 changed files with 5 additions and 2 deletions

View File

@ -20,7 +20,8 @@ def add_job(jobname):
desc = 'WebSDK build for: %s\nStarted: %s' % (info[0], info[2]) desc = 'WebSDK build for: %s\nStarted: %s' % (info[0], info[2])
sdk = info[1].split('_')[0] sdk = info[1].split('_')[0]
arch = info[1].split('_')[1] arch = info[1].split('_')[1]
blendfile = '%s/%s/Dockerfile' % (jobpath, jobname) blenddir = join(jobpath, jobname)
blendfile = join(blenddir, 'Dockerfile')
if sdk == 'arm': if sdk == 'arm':
board = info[1].split('_')[2] board = info[1].split('_')[2]
@ -36,7 +37,8 @@ def add_job(jobname):
replacements = [('DESC', desc), replacements = [('DESC', desc),
('SDK', sdk), ('SDK', sdk),
('ARCH', arch), ('ARCH', arch),
('COMMAND', command)] ('COMMAND', command),
('BLENDDIR', blenddir)]
sdk_job = open(join(pypath, 'toasterbuild.xml'), encoding='utf-8').read() sdk_job = open(join(pypath, 'toasterbuild.xml'), encoding='utf-8').read()

View File

@ -34,6 +34,7 @@
<builders> <builders>
<hudson.tasks.Shell> <hudson.tasks.Shell>
<command> <command>
scp -r sdk:{{{BLENDDIR}}} {{{BLENDDIR}}}
git submodule update --init --recursive --checkout git submodule update --init --recursive --checkout
{{{COMMAND}}} {{{COMMAND}}}
</command> </command>