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

Blue ocean won't create or edit jenkinsfile when using git

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Environment:
    • Sprint:
      Blue Ocean 1.3
    • Similar Issues:

      Description

      Steps to recreate:

      open Blue Ocean and login if not already logged in.

      click New Pipeline

      Select Git for where you store your code

      follow prompts to give it the necessary credentials with access to the repository and name it and save.

       

      What happens:

      Message that states You don't have any branches that contain a Jenkinsfile.

       

      What should happen:

      A Jenkins file is created and the developer can now use the Pipeline editor within Blue Ocean to edit that file.

       

        Attachments

          Issue Links

            Activity

            paradoxicalgorm Ryan Taylor created issue -
            paradoxicalgorm Ryan Taylor made changes -
            Field Original Value New Value
            Epic Link JENKINS-33198 [ 168576 ]
            kzantow Keith Zantow made changes -
            Link This issue duplicates JENKINS-43148 [ JENKINS-43148 ]
            kzantow Keith Zantow made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            Hide
            zffocus focus zheng added a comment - - edited

            You don't have any branches that contain a Jenkinsfile

            A Jenkinsfile is defined in your repository and describes how your pipeline will work. this shows after I create a gitlab blueocean.

            Blue Ocean version 1.2.4 · Core 2.10 · e2b50bd · (no branch) · 19th September 2017 08:42 PM

            Show
            zffocus focus zheng added a comment - - edited You don't have any branches that contain a Jenkinsfile A Jenkinsfile is defined in your repository and describes how your pipeline will work. this shows after I create a gitlab blueocean. Blue Ocean version 1.2.4 · Core 2.10 · e2b50bd · (no branch) · 19th September 2017 08:42 PM
            jbriden Jenn Briden made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            Hide
            jxsl13 John Behm added a comment -

            Have likely the same issue:

            My setup: Gitea for code hosting, a fork of Gogs

            So I have an already existing repository that contains a c/c++ project where the default branch is not called master, but zCatch. 

            What I want to do is to create a simple pipeline in blue ocean that only executes some existing build scripts in a folder.

            What I want Blue ocean/jenkins to do is to simply add a jenkins file to the source's root folder and not to do anything else.

            What it actually does is to seemingly overwrite the branch or something for me not understandable, because after Blue ocean adds my pipeline, all I am left with is with my zCatch branch with only a jenkinsfile and the rest of the code is gone. The commit history only seems to show one commit that is the one Blue ocean created.

            Show
            jxsl13 John Behm added a comment - Have likely the same issue: My setup: Gitea for code hosting, a fork of Gogs So I have an already existing repository that contains a c/c++ project where the default branch is not called master, but zCatch.  What I want to do is to create a simple pipeline in blue ocean that only executes some existing build scripts in a folder. What I want Blue ocean/jenkins to do is to simply add a jenkins file to the source's root folder and not to do anything else. What it actually does is to seemingly overwrite the branch or something for me not understandable, because after Blue ocean adds my pipeline, all I am left with is with my zCatch branch with only a jenkinsfile and the rest of the code is gone. The commit history only seems to show one commit that is the one Blue ocean created.
            Hide
            jxsl13 John Behm added a comment -

            see my first comment

            Show
            jxsl13 John Behm added a comment - see my first comment
            jxsl13 John Behm made changes -
            Resolution Duplicate [ 3 ]
            Status Closed [ 6 ] Reopened [ 4 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                paradoxicalgorm Ryan Taylor
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: