mirror of
https://github.com/lubuntu-team/ci-tooling.git
synced 2025-04-04 23:01:11 +00:00
Add useless merger info.
This commit is contained in:
parent
04ea168cff
commit
b379ebb20d
@ -146,11 +146,20 @@ class Generator:
|
||||
UPLOAD_TARGET_S=s_upload_target)
|
||||
elif job_type == "merger":
|
||||
default_branch = data["default_branch"]
|
||||
package_config = template.render(PACKAGING_URL=url,
|
||||
PACKAGING_BRANCH_U=u_branch,
|
||||
PACKAGING_BRANCH_S=s_branch,
|
||||
NAME=data["name"],
|
||||
DEFAULT_BRANCH=default_branch)
|
||||
# HACKY HACKY HACKY
|
||||
# If we can't push to it, the merger job is useless
|
||||
if not "phab.lubuntu.me" in url:
|
||||
with open(path.join("templates", "useless-merger.xml")) as f:
|
||||
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":
|
||||
package_config = template.render()
|
||||
else:
|
||||
|
31
templates/useless-merger.xml
Normal file
31
templates/useless-merger.xml
Normal file
@ -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…
x
Reference in New Issue
Block a user