Fix triggering build
This commit is contained in:
parent
5a94d6d39e
commit
449131fa18
2 changed files with 6 additions and 2 deletions
|
|
@ -34,3 +34,6 @@ class GitLab:
|
|||
target = FileWriter(destPath)
|
||||
artifact = self._project.jobs.get(job_id).artifact(sourcePath, streamed=True, action=target)
|
||||
del(target)
|
||||
|
||||
def createPipeline(self, ref):
|
||||
pipeline = self._project.pipelines.create({'ref': ref})
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ def main(argv):
|
|||
job = gitlab.getLastSuccessfulJob('master', 'squashfs_master')
|
||||
gitlab.downloadArtifact(job, 'images/debian-' + distro + '.dpkg-list', 'debian-' + distro + '.dpkg-list')
|
||||
if checkDebianDistro(distro) > 0:
|
||||
print("triggering build")
|
||||
ref = job.attributes['ref']
|
||||
print("creating pipeline for reference {}".format(ref))
|
||||
pprint(job.attributes)
|
||||
job.play()
|
||||
gitlab.createPipeline(ref)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue