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

Invalid pipelines cannot be edited and fail to show errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None
    • jenkinsci/blueocean with: 1.4.0 · Core 2.89.3 · 260c271
      Firefox ESR 52.6.0 (64-bit)
    • Blue Ocean - Candidates

      In Blue Ocean, create a pipeline from a GitHub repo that contains this Jenkinsfile:

      pipeline {
      
      script {
      
      node {
      
      checkout scm
      
      sh 'ls -l'
      
      sh 'env'
      
      }
      
      }
      
      }
      

      It will fails to build, because it's invalid declarative structure.

      Try to edit it in Blue Ocean.

      Expected:

      Editor shows, or error message shows

      Actual:

      White window shows

      Browser console has Javascript error.

            Unassigned Unassigned
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: