Hi All,
I need to get the current timestamp in a CI/CD pipeline script (yml). I tried to do it like this:
- buildtimestamp=$(date +%N)
- echo $buildtimestamp
- mvn -s maven_settings.xml -Dbuild_timestamp=$buildtimestamp -DskipTests=true -Ddocker_registry=$docker_registry_dev -P docker docker:build
I have a couple of projects, some projects working well, but there are three projects, which print an empty string. I tried to use - export buildtimestamp=$(date +%N), but it didn't help.
Is there any other method to get the current timestamp?
thx
Zamek