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

Converting double quoted values in scripts as 'isLiteral'

XMLWordPrintable

      Given this pipeline:

      pipeline {
        agent any
        stages {
          stage('Build') {
            steps {
              echo "hello"
            }
          }
        }
      }
      

      Converting to JSON results in the script argument incorrectly labeled as isLiteral: true

      {"status":"ok","data":{"result":"success","json":{"pipeline":{"stages":[{"name":"Build","branches":[{"name":"default","steps":[{"name":"echo","arguments":[{"key":"message","value":{"isLiteral":true,"value":"hello"}}]}]}]}],"agent":{"type":"any"}}}}}
      

            abayer Andrew Bayer
            kzantow Keith Zantow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: