From 6039d3a39b2d21647b19a784a270d222e907faf0 Mon Sep 17 00:00:00 2001 From: Shashi Date: Sun, 26 Dec 2021 13:00:48 +0530 Subject: [PATCH] Removed parent hook --- parent_hook | 83 ----------------------------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 parent_hook diff --git a/parent_hook b/parent_hook deleted file mode 100644 index d0af5dd..0000000 --- a/parent_hook +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/env python3 -""" parent webhook """ - -from buildbot.plugins import steps, util, secrets -from .lib.renderers import * - -c = BuildmasterConfig = {} - -c['buildbotNetUsageData'] = None - -####### SECRETS - -c['secretsProviders'] = [secrets.SecretInAFile(dirname="/var/lib/buildbot/secrets/bitmessage")] -gitea_known_hosts = util.Secret('gitea_known_hosts') -gitea_privkey = util.Secret('gitea_privkey') - -travis_bash = util.BuildFactory() -travis_bash.addStep( - steps.GitHub( - repourl=util.Property("repository"), - name="github", - doStepIf=is_github, - hideStepIf=isnt_github, - branch=util.Property("branch"), - mode="incremental", - ) -) -travis_bash.addStep( - steps.Gitea( - repourl=util.Property("repository"), - sshPrivateKey=gitea_privkey, - sshKnownHosts=gitea_known_hosts, - name="gitea", - doStepIf=is_gitea, - hideStepIf=isnt_gitea, - branch=util.Property("branch"), - mode="incremental", - ) -) - -# execute an interpolate of '.buildbot/$(prop:jobname)/build.sh' -travis_bash.addStep( - steps.ShellCommand( - name="Execute build script", - command=[ - "bash", - util.Interpolate(".buildbot/%(prop:jobname)s/build.sh"), - ], - doStepIf=is_build_script_available, - ) -) - -travis_bash.addStep( - steps.ShellCommand( - name="Execute test script", - command=[ - "bash", - util.Interpolate(".buildbot/%(prop:jobname)s/test.sh"), - ], - doStepIf=is_test_script_available, - ) -) - -travis_bash.addStep(steps.SetPropertyFromCommand( - command="grep ^VERSION_CODENAME= /etc/os-release | cut -d= -f2", - property="os_codename" -)) - -# execute multibuild.py -travis_bash.addStep( - steps.ShellCommand( - name="Execute multibuild script", - command=[ - "python", - "multibuild.py", - util.Interpolate("%(prop:jobname)s"), - util.Property("repository"), - util.Property("branch"), - "https://buildbot.bitmessage.org", - util.Interpolate("%(prop:os_codename)s"), - ], - ) -)