Add useless merger info.

master
Simon Quigley 5 years ago
parent 04ea168cff
commit b379ebb20d

@ -146,11 +146,20 @@ class Generator:
UPLOAD_TARGET_S=s_upload_target) UPLOAD_TARGET_S=s_upload_target)
elif job_type == "merger": elif job_type == "merger":
default_branch = data["default_branch"] default_branch = data["default_branch"]
package_config = template.render(PACKAGING_URL=url, # HACKY HACKY HACKY
PACKAGING_BRANCH_U=u_branch, # If we can't push to it, the merger job is useless
PACKAGING_BRANCH_S=s_branch, if not "phab.lubuntu.me" in url:
NAME=data["name"], with open(path.join("templates", "useless-merger.xml")) as f:
DEFAULT_BRANCH=default_branch) package_config = ""
for text in f.readlines():
package_config += text
print(package_config)
else:
package_config = template.render(PACKAGING_URL=url,
PACKAGING_BRANCH_U=u_branch,
PACKAGING_BRANCH_S=s_branch,
NAME=data["name"],
DEFAULT_BRANCH=default_branch)
elif job_type == "release-mgmt": elif job_type == "release-mgmt":
package_config = template.render() package_config = template.render()
else: else:

@ -0,0 +1,31 @@
<?xml version='1.1' encoding='UTF-8'?>
<project>
<description></description>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers>
<jenkins.triggers.ReverseBuildTrigger>
<spec></spec>
<upstreamProjects>jobgenerator, merger</upstreamProjects>
<threshold>
<name>SUCCESS</name>
<ordinal>0</ordinal>
<color>BLUE</color>
<completeBuild>true</completeBuild>
</threshold>
</jenkins.triggers.ReverseBuildTrigger>
<hudson.triggers.SCMTrigger>
<spec></spec>
<ignorePostCommitHooks>false</ignorePostCommitHooks>
</hudson.triggers.SCMTrigger>
</triggers>
<concurrentBuild>false</concurrentBuild>
<builders/>
<publishers/>
<buildWrappers/>
</project>
Loading…
Cancel
Save