Created
April 14, 2020 22:18
-
-
Save carlwgeorge/077944b81eb787129d9589db3c8ba292 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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