Fork me on GitHub
#tools-deps
<
2020-07-15
>
salam02:07:57

is it possible to automatically install clojure cli on jenkins as a custom tool where the jenkins user doesn't have enough privileges (i.e., neither root nor on the sudo list) to do so?

salam02:07:16

this is what we are getting right now:

[clojure_cli] $ sh -e /var/lib/jenkins/tools/com.cloudbees.jenkins.plugins.customtools.CustomTool/clojure_cli/hudson7631100789357617495.sh
[...]
You need to be root to perform this command.
[...]
Installing libs into /usr/local/lib/clojure
install: cannot create directory /usr/local/lib/clojure: Permission denied

seancorfield02:07:45

@abdusalam I believe you can run the script with the --prefix option and a directory to which you have write access.

seancorfield02:07:00

(yes, I just tested this works)