I have to deploy something using Hudson, so I've created a pom file for maven and the phase I'm having it run is just some bash.
The problem is, I have thing setup in the hudson users bashrc and/or bash_profile that are necessary for stuff to run, but those file don't seem to be sourced when running through hudson/maven. I'd really prefer to keep it running this way rather than use hardcoded stuff and absolute file paths.
I've read online that whatever is referenced in BASH_ENV is sourced for a non-interactive, non-login shell, which is what I'm guessing bash is being run as by maven/hudson.
But, BASH_ENV is empty. And, I can't set it in bashrc or bash_profile because, as I said, those aren't getting sourced, and even /etc/profile doesn't seem to be doing anything.
Is there a way I can set BASH_ENV "permanently", so that (hopefully) it will be sourced when maven runs via hudson and my various paths and such will be as they are when I'm sshing into the machine?