-
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
[JENKINS-45694] Pipeline editor icon brings up blank screen if library calls made
Assignee | Original: James Dumay [ jamesdumay ] |
Sprint | New: Blue Ocean 1.2-beta4 [ 361 ] |
Rank | New: Ranked higher |
Epic Link | New: JENKINS-36291 [ 172300 ] |
Rank | New: Ranked lower |
Sprint | Original: Blue Ocean 1.2-beta4 [ 361 ] | New: Blue Ocean 1.2 [ 326 ] |
Rank | New: Ranked higher |
Sprint | Original: Blue Ocean 1.2 [ 326 ] | New: Blue Ocean 1.2-beta5 [ 376 ] |
Sprint | Original: Blue Ocean 1.2-beta5 [ 376 ] | New: Blue Ocean 1.2 [ 326 ] |
Rank | New: Ranked lower |