Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54205

Blue Ocean Editor modifies a declarative Jenkinsfile without warning

    XMLWordPrintable

Details

    Description

      @Library('bitwiseman-shared@blog/declarative/notifications') _
      
      pipeline {
      ...
      

      If you open a BO editor page or you modify the pipeline using BO interface, the annotation gets removed. Is this an expected behavior?

      Interestingly, if you put that code directly in the GitHub repo, it will work, but if you edit the code using the BO UI the code gets removed.

      https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-editor/src/main/js/services/PipelineValidator.js#L83

       

      We should be able to warn users about this modification.

      That would happen not only with shared libraries but with anything outside the pipeline block.

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            Unassigned Unassigned
            mcardenasblanco Manuel Cardenas
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: