|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
- [JIRA] (JENKINS-9693) maven.build.timestamp.f... [email protected] (JIRA)

All of the above workarounds provide different timestamps in each submodule in a multi-module build. The only thing I managed to get working was the following code:
<plugin> <groupId>com.github.goldin</groupId> <artifactId>timestamp-maven-plugin</artifactId> <executions> <execution> <id>set-specific-timestamp</id> <goals> <goal>timestamp</goal> </goals> <phase>initialize</phase> <configuration> <time>{{ def newdate = null; try { newdate = Date.parse( "${maven.build.timestamp.format}", "${maven.build.timestamp}"); } catch (Exception e) { newdate = Date.parse( "yyyyMMdd-HHmm", "${maven.build.timestamp}"); println "THANKS JENKINS, FOR JENKINS-9693"; } newdate }}</time> <timestamp> <property>actual-timestamp</property> <pattern>${maven.build.timestamp.format}</pattern> </timestamp> </configuration> </execution> </executions> </plugin>