I am building a Spring Boot application using Bamboo. Is there any way I can read maven build related information like:
buildNumber and buildTimeStamp?
I have tried reading properties like below but they are not working.
@Value("${bamboo.buildNumber}")
private String buildNumber;
and
@Value("${buildNumber}")
private String buildNumber;
I think the bit I missing can be any of below:
- Bamboo is not writing properties to Jar exported to Artifactory.
- I am reading properties with wrong keys.
- I am missing some POM configuration.
Any help is much appreciated.