I build the upgrade jar in the upgrade folder of the optimize repository with mvn clean install -DskipTests (the jar can be found in the target folder of the upgrade directory)
I have an old version of Optimize running (e.g. 2.1.0)
Elasticsearch with the Optimize data is running
when
I move the jar to the upgrade folder of the Optimize 2.1.0 directory
I executed the jar from command line (e.g. java -jar upgrade-optimize-2.1.0-to-2.2.0.jar)
then
path validation is performed to ensure the upgrade jar is executed from the upgrade folder
process validation is performed
the optimize configuration is read from environment folder
fallback to default date format if not overriden in environment
optimize version check is performed such that the jar is only updating the optimize elasticsearch that the jar is dedicated for