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

Unable to open Jenkinsfile in blueocean pipeline editor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Blueocean 1.8.2 Jenkins 2.121.3 Windows 10

      If I create the following Jenkins file in the pipeline editor:

      pipeline {
        agent any
        stages {
          stage('Build') {
            steps {
              sh 'mvn clean package'
            }
          }
        }
      }

      Everything works fine.  If I add the following snippet after the stage line:

      	tools {
      		maven 'mvn'
      		jdk 'jdk8'
      	}  

      Then the pipeline editor displays a blank page.  If I remove the snipped then all is back normal in the editor.

      This Jenkinsfile is the same as the Jenkinsfile in the https://github.com/jenkinsci/jenkins-test-harness-htmlunit/blob/master/Jenkinsfile repository which is utilized by the ci.jenkins.io build site.

            Unassigned Unassigned
            marioja Mario Jauvin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: