mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-11 11:06:25 +00:00
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