I have a jenkins installed on my linux machine and connected it to my kubernetes cluster.
I've installed docker and docker-pipeline plugin inside jenkins and they can be found under /var/lib/jenkins/plugins:
docker-build-step
docker-build-step.jpi
docker-commons
docker-commons.jpi
docker-java-api
docker-java-api.jpi
docker-plugin
docker-plugin.jpi
docker-workflow
docker-workflow.jpi
and configured in Global Tool Configuration:
However when I run docker.build or even sh 'docker ps' inside my pipeline it throws:
/home/jenkins/agent/workspace/nodejs@tmp/durable-492ddc4c/script.sh: 1: docker: not found
EDIT:
I've built my own image with docker and when I exec into it I can run docker command but pipeline still throws docker not found command and found out it is because jnlp doesn't have docker installed. Any ideas how to fix it inside jenkins-inbound-agent?
