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

Pipeline editor not working if Script Path is set

      I have created a pipeline from a GitHub repository. Inside this repository, there is a subfolder called jenkins with a Jenkinsfile inside, just like in the example app: https://github.com/jenkins-docs/creating-a-pipeline-in-blue-ocean. Blue Ocean prompted me to design a new pipeline. Instead, I went to the settings and set the Script Path manually to 'jenkins/Jenkinsfile':

      It does work as intended. The hooks are activated and the pipeline is run properly, but if I try to edit the pipeline using pipeline editor, it shows an empty pipeline. If I do implement a pipeline in the editor and save it, a Jenkinsfile is created in the root of my repository.

      It seems the pipeline editor is not getting the Jenkinsfile path from 'Script Path' setting

          [JENKINS-50328] Pipeline editor not working if Script Path is set

          Vitor Durante created issue -
          Vitor Durante made changes -
          Description Original: I have created a pipeline from a GitHub repository. Inside this repository, there is a subfolder called jenkins with a Jenkinsfile inside, just like in the example app: [https://github.com/jenkins-docs/creating-a-pipeline-in-blue-ocean]. Blue Ocean prompted me to design a new pipeline. Instead, I went to the settings and set the Script Path manually to 'jenkins/Jenkinsfile':

          !image-2018-03-21-20-14-50-270.png!

          It does work as intended. The hooks are activated and the pipeline is run properly, but if I try to edit the pipeline using pipeline editor, it shows an empty pipeline. If I do implement a pipeline in the editor and save it, a Jenkinsfile is created in the root path of my repository.

          It seems the pipeline editor is not getting the Jenkinsfile path from 'Script Path' setting
          New: I have created a pipeline from a GitHub repository. Inside this repository, there is a subfolder called jenkins with a Jenkinsfile inside, just like in the example app: [https://github.com/jenkins-docs/creating-a-pipeline-in-blue-ocean]. Blue Ocean prompted me to design a new pipeline. Instead, I went to the settings and set the Script Path manually to 'jenkins/Jenkinsfile':

          !image-2018-03-21-20-14-50-270.png!

          It does work as intended. The hooks are activated and the pipeline is run properly, but if I try to edit the pipeline using pipeline editor, it shows an empty pipeline. If I do implement a pipeline in the editor and save it, a Jenkinsfile is created in the root of my repository.

          It seems the pipeline editor is not getting the Jenkinsfile path from 'Script Path' setting
          Karl Shultz made changes -
          Link New: This issue is duplicated by JENKINS-51066 [ JENKINS-51066 ]
          J P made changes -
          Released As New: https://github.com/jenkinsci/blueocean-plugin/releases/tag/blueocean-parent-1.22.0
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            lanwen Kirill Merkushev
            vitor Vitor Durante
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: