linux - Jenkins builds failing with a missing file error even though the file is there -


i have jenkins server running , have couple of builds working. however, morning when tried add 1 kept failing error -

[test.gov] $ /bin/sh -xe /tmp/hudson7055290339554583413.sh + ./opt/jenkins/build.sh /tmp/hudson7055290339554583413.sh: line 2: /opt/jenkins/build.sh: no such file or directory build step 'execute shell' marked build failure

the shell script @ path , has name. if make ./opt/jenkins/build.sh still fails same error. command have in "execute shell" section in "command" text box /opt/jenkins/build.sh. tried ./opt/jenkins/build.sh well.

the script on centos system btw.

this script trying run -

echo "git pull" cd /var/www/path/for/my_website/docroot/ git checkout master git pull   echo "change ownership apache" chown -r apache:apache * echo "running drush commands" drush updb -y #drush fra -y drush cc 

often "build.sh: no such file or directory" error means shebang line within build.sh not point executable file. check contents of build.sh make sure path exists.


Comments

Popular posts from this blog

How to show in django cms breadcrumbs full path? -

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -