Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30872

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

XMLWordPrintable

      I have a Jenkins server running and have a couple of builds that are all working. However, this morning when I tried to add another one it kept failing with the error -

      $ /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 as failure

      The shell script is at that path and has that name. If I make it ./opt/jenkins/build.sh it still fails with the same error. The command I have in the "Execute Shell" section in the "Command" text box is /opt/jenkins/build.sh. I tried ./opt/jenkins/build.sh as well.

      The script is on a CentOS system btw.

            Unassigned Unassigned
            nipplescoop Lyon Clef
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: