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

String constants containing characters than need escaping are not round-tripped correctly

    XMLWordPrintable

Details

    Description

      The following script cannot be round-tripped

      pipeline {
          agent none
          stages {
              stage("foo") {
                  echo '''Hello!
      'How are you?', said script A
      
      "I am fine \'\'\'really\'\'\'" said script B
      
      '''
                  sh 'echo "\'quoted\'"'
              }
          }
      }
      

      Attachments

        Issue Links

          Activity

            stephenconnolly Stephen Connolly created issue -
            stephenconnolly Stephen Connolly made changes -
            Field Original Value New Value
            Remote Link This issue links to "PR#28 (Web Link)" [ 14929 ]
            stephenconnolly Stephen Connolly made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            stephenconnolly Stephen Connolly made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            bitwiseman Liam Newman made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              abayer Andrew Bayer
              stephenconnolly Stephen Connolly
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: