Hi group, I'm developing a Angular/Java project and this is the first time I'm configuring jenkins from the start and I'm having some problems to run jobs on jenkins:alpine docker image.
So the problem I'm facing is that I cannot run a maven job with a specific JDK besides the system default (openJDK). Also I cannot run the FE job because it cannot run the installed nodejs.
So what I did was, after complete installation, I've installed the node.js plugin.
After that I went to jenkins configuration and choose a automatic installation of a Oracle JDK, Maven I'm using the default one and also choose a automatic installation of nodejs.
When I first run the Maven job it downloaded the oracle JDK, but then:
ERROR: Failed to parse POMs
java.io.IOException: Cannot run program "/var/jenkins_home/tools/hudson.model.JDK/oracle_8/bin/java" (in directory "/var/jenkins_home/workspace/jam-api"): error=2, No such file or directory
Same thing with Node.js
[FATAL: command execution failed
java.io.IOException: Cannot run program "/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_7.8.0/bin/node" (in directory "/var/jenkins_home/workspace/jam-fe"): error=2, No such file or directory
Next thing I did was to check if installation was properly done on jenkins home.
Open a bash to my container and I've confirmed that installation was there, but I could not run either java or node from those specific paths. I only could run maven.
Trying to debug what was wrong I did some changes on jenkins JDK/node config, since installation was already done, I've change the automatic to specifying a path to installation, but problem still persists.
What am I missing here?
Adding some relevant screenshots to help you guys (and me) on debug


Thanks in advance
--
Luís Tiago Barreto Rico