jenkins-job-builder/tests/wrappers/fixtures/version-number001.xml
OJ LaBoeuf c052a70837 Adds support for prefix-variable in version-number wrapper
prefix-variable is currently not available for use in the version-number wrapper.
updated wrapper for support of this variable
and updated test fixtures to also use this variable.

set default value of prefix-variable to ''
Errors out without a default value set saying the attribute is missing,
and since this is an optional attribute we don't want that.

Task: 4885
Change-Id: I151eef271194fb38dfde7518698f2ff06e3a8f01
2017-08-14 13:42:24 -07:00

18 lines
825 B
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<buildWrappers>
<org.jvnet.hudson.tools.versionnumber.VersionNumberBuilder>
<environmentVariableName>relVersion</environmentVariableName>
<versionNumberString>${BUILD_DATE_FORMATTED, &quot;yy.M&quot;}.${BUILDS_THIS_MONTH_Z}</versionNumberString>
<environmentPrefixVariable>relVersion</environmentPrefixVariable>
<skipFailedBuilds>false</skipFailedBuilds>
<useAsBuildDisplayName>false</useAsBuildDisplayName>
<projectStartDate>1970-1-1 00:00:00.0 UTC</projectStartDate>
<oBuildsToday>-1</oBuildsToday>
<oBuildsThisMonth>-1</oBuildsThisMonth>
<oBuildsThisYear>-1</oBuildsThisYear>
<oBuildsAllTime>-1</oBuildsAllTime>
</org.jvnet.hudson.tools.versionnumber.VersionNumberBuilder>
</buildWrappers>
</project>