]> git.ipfire.org Git - pbs.git/commitdiff
sources: Automatically launch builds after dist
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Aug 2023 09:48:50 +0000 (09:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 17 Aug 2023 09:48:50 +0000 (09:48 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/sources.py

index 4269a4991f5942d489e0886daab530ec218f71d6..6aa21a94a9d8c17191715eac77ceec9926b25f7c 100644 (file)
@@ -834,8 +834,8 @@ class Job(base.DataObject):
                        for user in self.commit.get_watchers():
                                build.add_watcher(user)
 
-                       # Return the build
-                       return build
+                       # Launch the build
+                       await self.backend.builds.launch(build)
 
                # Catch any exceptions and log them
                except Exception as e: