I am running configuration options from a Java application. I found that the best way to extend the class path and use .properties (leave only ZooKeeper for another requirement).
So my WAR file no longer has hosts / IPs / URLs, users / passwords.
DevOps distributes configurations manually through a test, old, stable installation.
Now is the time for Jenkins to run the tests. But they fail because there are no required .propeties files in the .propeties .
How to load these configuration files into Jenkins and how to make available in a test class?
maven-surefire-plugin allow extension of the classpath and passing system properties .
So the only question is how to get a separate directory on the Jenkins server and upload the files to this directory and create an alias / placeholder / envvar to specify the assembly to reference this path in the assembly configuration.
This task can be accomplished using SSH access, but I think this is the βwrong wayβ. I expect that this can be done through the Jenkins UI (any manager can upload a file to a web browser).
UPDATE I have no requirements for distributed slave / master assemblies, but it would be nice to have a solution that automatically transfers configuration files to slaves ...
So sshing for a host or ftp / scp is a bad thing.
source share