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

View File

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