Skip to content

Instantly share code, notes, and snippets.

@carlwgeorge
Created April 14, 2020 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlwgeorge/077944b81eb787129d9589db3c8ba292 to your computer and use it in GitHub Desktop.
Save carlwgeorge/077944b81eb787129d9589db3c8ba292 to your computer and use it in GitHub Desktop.
import koji
import koji_cli.lib
profile = ''
scmurl = ''
build_target = ''
profile_module = koji.get_profile_module(profile)
session = profile_module.ClientSession(profile_module.config.server)
koji_cli.lib.activate_session(session, profile_module.config)
task_id = session.build(scmurl, build_target)
print(task_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment