Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1462

Promotion in GUI in Jenkins, fails when there is a \n in comments of the script

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: 3.10.3
    • Fix Version/s: None
    • Component/s: Maven3
    • Labels:
      None

      Description

      There is an issue with Artifactory plugin in version 3.10.3.

      With Arficatory plugin version 3.10.3 and 3.10.6(Latest as of today) the interactive promotion is not working from Jenkins GUI. The spinner visible on top left corner of the screen is never stopped and we cannot choose the target or source repository (spinner-art-promotion.png).

      Example: 

      comment : "Sample text 1" + "\n" + "Sample text 2" + "\n" + "Sample text 3" + "\n",

      "\n" in single quotes '\n' is also not working. 

      Jenkins version replicated 2.263.1 LTS

      Below is the complete snippet 

      rtAddInteractivePromotion (
           serverId: "Artifactory",               
           displayName: 'Promote me please',
           targetRepo: 'example-generic-releases',
           comment:  "Sample text 1" + '\n' + "Sample text 2" + '\n',
           status: 'Released',
           sourceRepo: 'example-generic-releases',
           includeDependencies: false,
           failFast: true,
           copy: true
      )

      This fails without loading the repository in interactive promotion screen. 

      Expected behaviour:

      This is working fine in Jenkins Artifactory plugin version 3.6.1. The issue is only after the update. Newline character should be working as in previous versions. 

      Workaround:

      Using \\\\n in place of \n. 

        Attachments

          Activity

            People

            Assignee:
            eyalb Eyal Ben Moshe
            Reporter:
            gajapathik Gajapathi Kimidi
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: