-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins 2.26, change-assembly-version-plugin version 1.5.1
We're having an issue setting up auto-incrementing build version updates with our environment. According to the log file the plugin is doing two things incorrectly.
The first issue is that the version is not getting put together correctly. Here are the settings we have specified:
Assembly Version: ${BUILD_NUMBER} FileName: ./MyProject/Properties/AssemblyInfo.cs RegexPattern: Assembly(\w*)Version\("([0-9]+)\.([0-9]+)\.([0-9])\.([0-9])"\) ReplacementPattern: Assembly$1Version("$2.$3.$4.%s")
Based on that configuration we expected to see a version like "1.9.0.131" where 131 is the build number. However, the version is coming out as just "131". See the log message below for an example. This regex does test out with various tools as matching text such as [assembly: AssemblyVersion("1.9.0.1")] or [assembly: AssemblyFileVersion("1.9.0.1")].
The second issue is the AssemblyInfo file is never getting updated although the log says it has updated the file. We have about 8 projects updating but the behavior is the same so I've cut the messages down to one. Here's the message from the log file that shows up for all of the files:
Changing the file(s) ./MyProject/Properties/AssemblyInfo.cs to version : 131