tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
salam 2020-07-15T02:16:57.389300Z

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?

salam 2020-07-15T02:18:16.390200Z

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

seancorfield 2020-07-15T02:28:45.391Z

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

seancorfield 2020-07-15T02:32:00.392500Z

(yes, I just tested this works)