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

pipeline-editor always commit to default jenkinsfile

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      When we use more than one Jenkinsfile in different jobs, you can see screenshot 1, pipeline scans the right 'Jenkinsfile-prd' for example(screenshot2). And when execute the pipeline it also use the right 'Jenkinsfile-prd'(screenshot3).

      But when use http://<jenkins_url>/blue/organizations/jenkins/pipeline-editor/<jobname>/<branch> to edit pipeline, it always shows the default Jenkinsfile and only can commit to default Jenkinsfile.(screenshot4).

      It seems /blue/organizations/jenkins/pipeline-editor/ always read the default Jenkinsfile and ignored the Build Configuration--Script Path.

      The difference between 2 Jenkinsfiles are environment: env in this example.

        Attachments

        1. jenkinsBUG1.png
          jenkinsBUG1.png
          34 kB
        2. JenkinsBug2.png
          JenkinsBug2.png
          36 kB
        3. screenshot1.png
          screenshot1.png
          91 kB
        4. screenshot2.png
          screenshot2.png
          85 kB
        5. screenshot3.png
          screenshot3.png
          79 kB
        6. screenshot4.png
          screenshot4.png
          34 kB

          Issue Links

            Activity

            ms3cat Sam Zhao created issue -
            ms3cat Sam Zhao made changes -
            Field Original Value New Value
            Epic Link JENKINS-36291 [ 172300 ]
            ms3cat Sam Zhao made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            ms3cat Sam Zhao made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            yokeyword Wang You made changes -
            Attachment JenkinsBug2.png [ 43278 ]
            Attachment jenkinsBUG1.png [ 43279 ]
            Hide
            yokeyword Wang You added a comment -

            I have the same problem.
            And i found that it was EditorPage.jsx that did not specify the path parameter.

            ScmContentApi.js:

            EditorPage.jsx:

            Show
            yokeyword Wang You added a comment - I have the same problem. And i found that it was EditorPage.jsx that did not specify the path parameter. ScmContentApi.js: EditorPage.jsx:
            yokeyword Wang You made changes -
            Assignee Keith Zantow [ kzantow ]
            kzantow Keith Zantow made changes -
            Assignee Keith Zantow [ kzantow ]
            kzantow Keith Zantow made changes -
            Component/s blueocean-plugin [ 21481 ]
            yokeyword Wang You made changes -
            Priority Major [ 3 ] Blocker [ 1 ]
            yokeyword Wang You made changes -
            Assignee James Dumay [ jamesdumay ]
            yokeyword Wang You made changes -
            Priority Blocker [ 1 ] Major [ 3 ]
            Hide
            nblindov Nikolay Blindov added a comment -

            I've got the same issue

            Show
            nblindov Nikolay Blindov added a comment - I've got the same issue
            Hide
            kshultz Karl Shultz added a comment -

            This looks to be a more in-depth write up of the previously-existing JENKINS-50328, We should probably close one or the other of them.

            Show
            kshultz Karl Shultz added a comment - This looks to be a more in-depth write up of the previously-existing JENKINS-50328 , We should probably close one or the other of them.
            kshultz Karl Shultz made changes -
            Link This issue duplicates JENKINS-50328 [ JENKINS-50328 ]
            Hide
            jmpeters J P added a comment -

            Submitted PR with potential fix here: https://github.com/jenkinsci/blueocean-plugin/pull/2049

             

            Show
            jmpeters J P added a comment - Submitted PR with potential fix here: https://github.com/jenkinsci/blueocean-plugin/pull/2049  
            Hide
            jmpeters J P added a comment -

            Fixed in BlueOcean 1.22.0

            Show
            jmpeters J P added a comment - Fixed in BlueOcean 1.22.0
            jmpeters J P made changes -
            Released As https://github.com/jenkinsci/blueocean-plugin/releases/tag/blueocean-parent-1.22.0
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]

              People

              Assignee:
              jamesdumay James Dumay
              Reporter:
              ms3cat Sam Zhao
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: