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

editing the existing declarative jenkinsfile in pipeline editor

    • Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 1

      Hello,

      I have created jenkinsfile ( declarative pipeline) and no issues with the stages /build is running- but I have not created this via the blue ocean editor.

      But I want to edit it via the blue ocean editor and I cannot do it.
      I can see the pipeline in the blue ocean and when I click on edit option - I see a blank screen.

      so is this not possible to edit the declarative pipeline ( which is not created in editor ) in blue ocean pipeline editor?

      Regards,
      Ashwin

          [JENKINS-48119] editing the existing declarative jenkinsfile in pipeline editor

          Ashwin Y created issue -
          Ashwin Y made changes -
          Summary Original: edit declarative jenkinsfile New: editing the existing declarative jenkinsfile in pipeline editor

          James Dumay added a comment -

          ashsy_009 could you please provide reproduction steps? Not sure if you are using a declarative pipeline with multibranch or the single pipeline type.

          James Dumay added a comment - ashsy_009 could you please provide reproduction steps? Not sure if you are using a declarative pipeline with multibranch or the single pipeline type.
          James Dumay made changes -
          Assignee New: James Dumay [ jamesdumay ]
          James Dumay made changes -
          Sprint New: Blue Ocean 1.4 - beta 3 [ 416 ]

          Ashwin Y added a comment -

          Hello James,

          I have added our github organization and our repo consists of Jenkinsfile . Not directly used the multibranch or the pipeline type for declarative pipeline

          Ashwin Y added a comment - Hello James, I have added our github organization and our repo consists of Jenkinsfile . Not directly used the multibranch or the pipeline type for declarative pipeline

          Karl Shultz added a comment -

          ashsy_009 - a few questions.

          1. Which style of Pipeline syntax are you using - Declarative, or Scripted? The way to tell is, if your Pipeline code is wrapped with

          pipeline {
              // Pipeline setup, stages, and other stuff here
          }
          

          Then you're using Declarative. But if your pipeline does not have the {{pipeline { ... }}} block wrapped around it, you're using Scripted pipeline. The reason I ask is, the only style of Pipeline supported by the editor is Declarative.

          2. If you're using Declarative, are you able to provide us with a sample Jenkinsfile to try and recreate the issue with? If it's only a Jenkinsfile, and has no need for external libraries or anything else, we might be able to recreate the issue with only the Jenkinsfile. If your repo is public, we could fork it and try to recreate the issue that way.

          3. Is your Jenkinsfile stored somewhere other than the root directory of your repository?

          Karl Shultz added a comment - ashsy_009 - a few questions. 1. Which style of Pipeline syntax are you using - Declarative, or Scripted? The way to tell is, if your Pipeline code is wrapped with pipeline { // Pipeline setup, stages, and other stuff here } Then you're using Declarative. But if your pipeline does not have the {{pipeline { ... }}} block wrapped around it, you're using Scripted pipeline. The reason I ask is, the only style of Pipeline supported by the editor is Declarative. 2. If you're using Declarative, are you able to provide us with a sample Jenkinsfile to try and recreate the issue with? If it's only a Jenkinsfile, and has no need for external libraries or anything else, we might be able to recreate the issue with only the Jenkinsfile. If your repo is public, we could fork it and try to recreate the issue that way. 3. Is your Jenkinsfile stored somewhere other than the root directory of your repository?
          James Dumay made changes -
          Sprint Original: Blue Ocean 1.4 - beta 3 [ 416 ] New: Blue Ocean 1.4 - beta 3, Blue Ocean 1.4 - beta 5 [ 416, 451 ]
          Vivek Pandey made changes -
          Sprint Original: Blue Ocean 1.4 - beta 3, Blue Ocean 1.4 - beta 5 [ 416, 451 ] New: Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 1 [ 416, 456 ]
          Vivek Pandey made changes -
          Rank New: Ranked higher

            vivek Vivek Pandey
            ashsy_009 Ashwin Y
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: