-
Bug
-
Resolution: Unresolved
-
Major
-
-
Blue Ocean - Candidates
I have a declarative pipeline stored in a Jenkinsfile in a multibranch pipeline in GitHub. I can create a new pipeline in Blue Ocean and get a successful run.
However, when I click on the "pencil" icon (second icon from the right - next to the star icon) in the master branch, all I get is a blank screen.
I figured out what provokes this. I have a Jenkinsfile like the one below.
#!groovy
pipeline {
agent
libraries
{ lib('Utilities2') } stages {
stage('Source') {
steps
}
stage('Build') {
// Run the gradle build
steps
}
}
}
The gbuild call is a function defined in the 'Utilities2' lib that I pull in the libraries section. As soon as I add any call to any function in a library that I include, I get the blank screen. Without that call, I can edit it. (And by the way, this code works fine when executing the pipeline.)
The debugger in the browser flags this:
unreachable code after return statement[Learn More] jenkins-js-extension.js:10890:12