Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When using a variable in the Maven configuration (JSON or pom.xml), you can override its value via -D flag in the command lineyou'll have to initiate the build via a command similar to line 

Code Block
languagebash
mvn clean install -Psealights -DBUILD_NUMBER=3

Using a timestamp variable from the command line

In order to use a timestamp to report the build to Sealights, please prefer to use for example -DBUILD_NUMBER=`date +"%y%m%d_%H%M"`

Code Block
languagebash
mvn clean install -Psealights -DBUILD_NUMBER==`date +"%y%m%d_%H%M"`

Using a timestamp variable in pom.xml

...