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

Script errors produce obtuse error, no stderr/stdout log

XMLWordPrintable

      I use #!/bin/bash -ex as my hash bang line for these scripts. If a command in the script fails, the Environment Script plugin just returns the error "FATAL: Unable to execute script, return code 16" (or whatever the return code was). It doesn't display the stderr output. This makes troubleshooting the problem a bit more difficult, since you basically need to manually run the commands to figure out what was wrong and correct it.

            jorgenpt Jørgen Tjernø
            owenmehegan Owen Mehegan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: