Blue Ocean Editor modifies a declarative Jenkinsfile without warning

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      @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.

            Assignee:
            Unassigned
            Reporter:
            Manuel Cardenas
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: