-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.89.1 + Recommended plugins + Blue Ocean 1.3.5
On Blue Ocean 1.3.5, on the Blue Ocean Editor,, when you load a Jenkinsfile (declarative sytax) containing the new "libraries" syntax, the argument passed to the "lib()" function is cleared.
Reproduction:
- Clone this repository: https://github.com/oufti-playground/lab-vm
- Go to "docker" folder and start the stack with "docker-compose up -d"
- Once started, open http://localhost:10000 (user / password are always butler / butler )
- On the "demoapp" project on the local Gitea server (http://localhost:10000/gitserver/butler/demoapp), create a new Jenkinsfile with the following content:
pipeline { agent any libraries { lib('deploy') } stages { stage('Hello') { steps { echo 'Hello' } } } }
- Note that a shared library is already configured on jenkins, and named "deploy" (cf. https://github.com/oufti-playground/lab-vm/blob/master/docker/jenkins/ref/init.groovy.d/addSharedLibrary.groovy)
- Load the project on Blue Ocean Editor (need to add the project as "Git" repo, with the SSH URL + add the SSH public key generated by Jenkins)
Expected Result:
I can load the pipeline, and save it without change. It should be idempotent.
Current result:
the pipeline is changed to (while we did not changed anything outside loading/saving on the editor):
pipeline { agent any libraries { lib('') } stages { stage('Hello') { steps { echo 'Hello' } } } }