pass over correct scmurl, and valid artifact name

This commit is contained in:
Lubos Kocman
2016-07-20 17:54:42 +02:00
parent edd92d65ae
commit 879eca579a

View File

@@ -52,12 +52,12 @@ def done(config, session, msg):
builder.buildroot_resume()
for component_build in unbuilt_components:
scmurl = "{dist_git}/rpms/{package}?#{gitref}".format(
scmurl = "{dist_git}/{package}?#{gitref}".format(
dist_git=config.rpms_default_repository,
package=component_build.package,
gitref=component_build.gitref, # This is the update stream
)
artifact_name = 'TODO'
component_build.state = koji.BUILD_STATES['BUILDING']
component_build.task_id = builder.build(artifact_name, scmurl)
log.debug("Using scmurl=%s for package=%s" % (scmurl, component_build.package))
component_build.task_id = builder.build(artifact=component_build.package, source=scmurl)
session.commit()