Files
jenkins/test
dty bd27be08fc Older versions of bash improperly decide that a script is a binary file if there
is non-ASCII on the first line of the file, preventing the step from executing
properly. This was discovered by the DirectoryBrowserSupport unit test failing.
This can be worked around by inserting a leading carriage return so that bash
won't find the non-ASCII on the first line.

   - Modify the Shell task to insert a carriage return for shell scripts that
     don't start with #! or already contain a leading carriage return.

     main/core/src/main/java/hudson/tasks/Shell.java

   - This test failed after the change because the inserted carriage return
     is returned from getContent(). Trim the result before comparing it to
     the expected data.

     main/test/src/test/java/hudson/model/FreeStyleProjectTest.java


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23006 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-21 22:01:32 +00:00
..