Getting error while building docker image in Jenkins

10/9/2015

Getting error while building docker image in Jenkins. I am using google lab CPO200 course.

/tmp/hudson7642004630213449625.sh: 2: 
/tmp/hudson7642004630213449625.sh: ./build.sh: Permission denied
-- Prashant Chandra
google-compute-engine
google-container-registry
google-kubernetes-engine

1 Answer

10/9/2015

Are you sure build.sh has the execute bit? Maybe chmod +x?

You can get a permission denied error if you try to execute a shell script that does not have the execute bit set.

-- mattmoor
Source: StackOverflow