-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins 2.40
Promoted Build Plugin version: 2.28
Sample DSL:
freeStyleJob('test1') { properties { promotions { promotion { name('promotion 1') icon('Silver white star') conditions { manual('admin') } actions { shell "echo test" } } } } } freeStyleJob('test2') { using('test1') }
test1 is built fine
XML for test2:
<?xml version="1.0" encoding="UTF-8"?><project> <actions/> <description/> <keepDependencies>false</keepDependencies> <properties> <hudson.plugins.promoted__builds.JobPropertyImpl plugin="promoted-builds@2.28"> <activeProcessNames> <string>promotion 1</string> </activeProcessNames> </hudson.plugins.promoted__builds.JobPropertyImpl> </properties> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers/> <concurrentBuild>false</concurrentBuild> <builders/> <publishers/> <buildWrappers/> </project>
however, no promotions:
# ls test2/promotions/ | wc -l 0
- is duplicated by
-
JENKINS-40262 Promotions created with job DSL are not visible
- Closed