Pipeline editor unable to open Jenkinsfile in Jenkins BlueOcean

社会主义新天地 提交于 2019-12-22 13:33:06

问题


I am extremely new to BlueOcean and am getting the below error when trying to open the pipeline editor:

There was an error loading the pipeline from the Jenkinsfile in this repository. Correct the error by editing the Jenkinsfile using the declarative syntax then commit it back to the repository.

Cannot read property 'indexOf' of undefined

Jenkinsfile:

pipeline {
   agent any

   stages {
      stage('Build') {
        steps {
            echo 'Building..'
        }
    }
    stage('Test') {
        steps {
            echo 'Testing..'
        }
    }
    stage('Deploy') {
        steps {
            echo 'Deploying....'
        }
     }
  }
}

Error screenshot -

来源:https://stackoverflow.com/questions/46169459/pipeline-editor-unable-to-open-jenkinsfile-in-jenkins-blueocean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!