We have a project where we use environ and in dev we have a profiles.clj, but when building we providing everything via system environment vars. When building the project in Jenkins, we get a FileNotFoundException when it tries to read the .lein-env file, which just stops the entire build and never gets an opportunity to even read the system vars. Is it possible to add a try-catch block to read-env to handle these Exceptions?
Could you explain your setup and the exception you get in a little more detail? Environ only tries to load the .lein-env file if that file exists. If it doesn't exist, it doesn't load it.
We have a project where we use environ and in dev we have a profiles.clj, but when building we providing everything via system environment vars. When building the project in Jenkins, we get a FileNotFoundException when it tries to read the
.lein-env
file, which just stops the entire build and never gets an opportunity to even read the system vars. Is it possible to add a try-catch block toread-env
to handle these Exceptions?