takezoe/gitbucket-ci-plugin

git command not found in build script

karthikbalu opened this issue · 2 comments

build script does not find installed git and displays not found
../build.sh: 5: ../build.sh: git: not found

Also it cannot find any binary installed on the gitbucket server host

skx commented

What happens if you explicitly setup PATH in your script?

ie.

   #!/bin/sh
   PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
   export PATH
   ...