summaryrefslogtreecommitdiffstats
path: root/job-cfg/d-i.yaml.py
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-07-18 13:58:12 +0200
committerHolger Levsen <holger@layer-acht.org>2016-07-18 19:59:17 +0200
commitf7e88d07551f9c1c71ca72d8653e68cde1dbe883 (patch)
tree48b8a30bac8953cbad0f6eb4e78aed6b61a2cd4d /job-cfg/d-i.yaml.py
parent7e8292ff4b05ad1e3b29268a816b4f2abed667d5 (diff)
downloadjenkins.debian.net-f7e88d07551f9c1c71ca72d8653e68cde1dbe883.tar.xz
d-i: inject variables for later triggers
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'job-cfg/d-i.yaml.py')
-rwxr-xr-xjob-cfg/d-i.yaml.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/job-cfg/d-i.yaml.py b/job-cfg/d-i.yaml.py
index d6ae55e1..b9065474 100755
--- a/job-cfg/d-i.yaml.py
+++ b/job-cfg/d-i.yaml.py
@@ -369,12 +369,12 @@ data.extend(
'branches': ['{branch}']}}],
'builders': [{'shell': '/srv/jenkins/bin/d-i_build.sh'},
{'trigger-builds': [{'project': 'lvc_debian-miniiso',
- 'predefined-parameters': 'PU_GIT_BRANCH=$PU_GIT_BRANCH'
+ 'current-parameters': 'true',
}]}],
'project-type': 'freestyle',
'properties': prop(type='packages', priority=99),
- 'parameters': [{'string': {'name': 'PU_GIT_BRANCH',
- 'description': 'git branch that triggered the build that resulted in this subsequent build.'}}],
+ 'parameters': [{'string': {'name': 'TRIGGERING_BRANCH',
+ 'description': 'git branch that triggered the build that resulted in this subsequent build.'}}],
'logrotate': lr(90),
'publishers': publ(irc='debian-boot')}}])
@@ -388,16 +388,14 @@ data.extend(
'scm': [{'git': {'url': '{gitrepo}',
'branches': ['{branch}']}}],
'builders': [ {'shell': '/srv/jenkins/bin/d-i_build.sh'},
+ {'inject': {'properties-file': 'env.txt'}},
{'trigger-builds': [{'project': 'd-i_pu-triggered_debian-installer',
- 'current-parameters': 'true',
- 'predefined-parameters': 'PU_GIT_BRANCH=$GIT_BRANCH'
+ 'predefined-parameters': 'TRIGGERING_BRANCH=$OUR_BRANCH'
},
]}
],
'project-type': 'freestyle',
'properties': prop(type='packages', priority=99),
- 'parameters': [{'string': {'name': 'GIT_BRANCH',
- 'description': 'git branch to pretend to have triggered a by-hand build.'}}],
'logrotate': lr(90),
'publishers': publ(irc='debian-boot')}}])