]> Humopery - private/buildbot-default.git/commitdiff
Document how to trigger a build, barely
authorErik Mackdanz <erikmack@gmail.com>
Thu, 10 Jul 2025 05:50:55 +0000 (05:50 +0000)
committerErik Mackdanz <erikmack@gmail.com>
Thu, 10 Jul 2025 05:50:55 +0000 (05:50 +0000)
master.cfg

index 9780a4a0f790b63fd0e784b2a219af0b46e704f5..3a47aae61d77ff6669723e3865f84f3c5eee59f0 100644 (file)
@@ -1,5 +1,19 @@
 # -*- python -*-
 
+
+# To trigger a build with curl :(
+# https://docs.buildbot.net/current/developer/rest.html#authentication
+# ... except /auth/login doesn't work with RemoteUser authentication
+
+# curl -v -u USER:PASSWORD --basic --cookie-jar cookies.txt https://bb.humopery.space/api/v2/builders
+# ... to create a temp cookie jar
+
+# then edit cookies.txt, replacing TWISTED_SESSION with a value from the browser cookie.
+# then a build can be triggered:
+
+# curl -v -u USER:PASSWORD --basic --cookie cookies.txt --json '{"id":1,"jsonrpc":"2.0","method":"force","params":{"builderid":"6","username":"erik <erik@humopery.space>","reason":"force build","priority":0,"branch":"","project":"","repository":"","revision":""}}' https://bb.humopery.space/api/v2/forceschedulers/force-two
+
+
 from buildbot.plugins import changes, reporters, schedulers, secrets, steps, util, worker
 from buildbot.changes.filter import ChangeFilter
 from buildbot.changes.gitpoller import GitPoller