I need to deploy something using Hudson, so I created a pom file for maven, and the phase I'm starting with is just a few bash.
The problem is that I have settings in hudson users bashrc and / or bash_profile which are necessary for running files, but these files do not seem to be used when starting through hudson / maven. I would prefer it to work this way rather than using hardcoded and absolute file paths.
I read on the Internet that everything that is mentioned in BASH_ENV is for a non-interactive shell without logging in, which is what I assume bash runs as maven / hudson.
But BASH_ENV is empty. And I can’t install it in bashrc or bash_profile because, as I said, they do not get sources, and even / etc / profile does nothing.
Is there a way that I can set BASH_ENV "forever" so that (hopefully) it is received when maven is started via hudson and my various paths, and it will be like they are when I get into the car?
source
share