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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.89.1 + Recommended plugins + Blue Ocean 1.3.5

      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'
            }
          }
        }
      }
      

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

              Created:
              Updated: