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

Postbuild-task-plugin doesn`t handle line feed (U+000A)

XMLWordPrintable

      I try to perform post-build script by Post build task on Windows 10 x64 Pro(Jenkins Slave Agent).

      Post build task doesn`t handle new line (UTF-8 0x0A) symbol. For example (in Jenkins GUI %%0A): 

      curl -X POST --ssl-no-revoke https://api.telegram.org/somebotID/sendMessage -d chat_id=555555555 -d text="first line text %%0A second line text" 

      But, "Post build task" passes to CURL only 'A', like this (from Jenkins log):

      curl -X POST --ssl-no-revoke https://api.telegram.org/somebotID/sendMessage -d chat_id=555555555 -d text="first line text A second line text"  

      Of course i can`t get new line.

      I try this script on "Execute Windows batch command" in build section (not post build section) and easy to get new line. From Jenkins log (CURL has %0A):

      curl -X POST --ssl-no-revoke https://api.telegram.org/somebotID/sendMessage -d chat_id=555555555 -d text="first line text %0A second line text"  

            Unassigned Unassigned
            ushkov Slava
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: