2

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 -

ERROR

Andrew Gray
  • 3,593
  • 3
  • 35
  • 62
vivekyad4v
  • 13,321
  • 4
  • 55
  • 63
  • Looks like a bug, please report it in the Jenkins issue tracker. – StephenKing Sep 12 '17 at 07:52
  • Filed a bug - https://issues.jenkins-ci.org/browse/JENKINS-46806 . – vivekyad4v Sep 12 '17 at 09:29
  • I'm voting to close this question as off-topic because it is probably a bug in the software or a not yet implemented feature missing. – StephenKing Sep 13 '17 at 06:13
  • I think this is a bug since the same thing is done by pipeline editor, it changes the Jenkinsfile & pushes it to the repo. If we have a compatible Jenkinsfile in our repo, it should support it. Waiting to hear a response on the Jenkins JIRA. – vivekyad4v Sep 13 '17 at 06:19
  • It sounds like this may be related to a bug (support of proxy server configuration) so yeah, this is likely best answered by the linked support ticket – Michael Neale Oct 23 '17 at 01:27

0 Answers0