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

Blue Ocean Editor: Shared libraries using 'lib()' loses the argument string

    XMLWordPrintable

Details

    Description

      On Blue Ocean 1.3.5, on the Blue Ocean Editor,, when you load a Jenkinsfile (declarative sytax) containing the new "libraries" syntax, the argument passed to the "lib()" function is cleared.

      Reproduction:

      Expected Result:

      I can load the pipeline, and save it without change. It should be idempotent.

      Current result:

      the pipeline is changed to (while we did not changed anything outside loading/saving on the editor):

      pipeline {
        agent any
        libraries {
          lib('')
        }
        stages {
          stage('Hello') {
            steps {
              echo 'Hello'
            }
          }
        }
      }
      

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            Unassigned Unassigned
            dduportal Damien Duportal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: