Skip to content

Commit

Permalink
Define build-log-url when creating a new flat-manager build
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Jul 26, 2023
1 parent d76ab6e commit df5a5dd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion master/buildbot/flathub_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,19 @@ def __init__(self, **kwargs):

def initRequest(self):
props = self.build.properties

repo = 'stable'
fp_branch = props.getProperty("flathub_branch")
if fp_branch == "beta":
repo = "beta"
self.json = { 'repo': repo }

buildnumber = props.getProperty("buildnumber")
build_log_url = "https://buildbot.flathub.org/#/builders/6/builds/{}".format(buildnumber)

self.json = {
'repo': repo,
'build-log-url': build_log_url
}

@defer.inlineCallbacks
def gotOk(self, response, log):
Expand Down

0 comments on commit df5a5dd

Please sign in to comment.