This is a simple Spring Boot web app that will download and rename a file. I wrote this to be used as part of a Jenkins pipeline to rename artifacts from Nexus to drop the version number from the artifact name. A link similar to the one below was sent via email allowing easy access to build artifacts.
mvn package
docker-compose up -d
For example, if running on local and using the default port in the compose file:
Replace artifactPath
and filename
to suit your scenario.