Hello,
I am facing some difficulties with the following Dockerfile:
When I run the image locally, using:
- docker run --privileged --dns 9.0.128.50 --dns 9.0.130.50 -d -P --name slave alpine-agent:0.0.1
- docker ps and copy the port number
- ssh -p jenkins@localhost
- password: jenkinspass
I am able to run almost all tools installed, with the following issues:
- sonar-scanner is not found
- The PATH doesn’t include any of the PATH modifications from the Dockerfile
When I run the image in Jenkins as an agent, almost all tools installed are working, with the following issues:
- sonar-scanner is not found
- ibmcloud is not found
- The PATH doesn’t include any of the PATH modifications from the Dockerfile
-
sh
blocks in Jenkins are failing, for commands such as:
array=(some text some text ...)
With:
syntax error: unexpected "("
I’m having a hard time understanding why this is happening and how to resolve it…