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

Branch and commit fields are empty in BlueOcean UI Header-details element

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • blueocean-plugin

    Description

      We are using GitLab web hooks to trigger Jenkins Pipeline project builds on new commit push to GitLab. Build is triggered, CI commit status report is being sent back to gitlab, but can't see branch and commit field in Header-details element.

      Attachments

        Activity

          ifishman Igor Fishman added a comment - - edited

          Hi,

          We also face same problem.

          Are there any plans to resolve this issue in close future?

          Regards,

          Igor

          ifishman Igor Fishman added a comment - - edited Hi, We also face same problem. Are there any plans to resolve this issue in close future? Regards, Igor
          pauloneves Paulo Eduardo Neves added a comment - - edited

          Same here. I'd like to have it displaying branch and commit, and to be clickable so I can get to GitLab in the correct branch/commit. Here are the commands that I use to checkout from GitLab:

              checkout scm: [$class: 'GitSCM', 
                          userRemoteConfigs: [[url: repositorio]], 
                          branches: [[name: gitBranch]],
                          extensions: [
                             [$class: 'PreBuildMerge', options: [fastForwardMode: 'FF_ONLY', mergeRemote: 'origin', mergeTarget: branchTarget]],
                             [$class: 'LocalBranch',localBranch: branchTarget]
                          ],
                          clean: true], poll: false
          

          and also

              checkout scm: [$class: 'GitSCM', 
                           userRemoteConfigs: [[url: repositorio]], 
                           branches: [[name: gitBranch]],
                           extensions: [
                             [$class: 'LocalBranch',localBranch: gitBranch]
                           ],                  
                           clean: true], poll: false
          

          I don't believe it makes any difference, but I'm using declarative pipeline and the code is in another module in a helper function.

          pauloneves Paulo Eduardo Neves added a comment - - edited Same here. I'd like to have it displaying branch and commit, and to be clickable so I can get to GitLab in the correct branch/commit. Here are the commands that I use to checkout from GitLab: checkout scm: [$class: 'GitSCM' , userRemoteConfigs: [[url: repositorio]], branches: [[name: gitBranch]], extensions: [ [$class: 'PreBuildMerge' , options: [fastForwardMode: 'FF_ONLY' , mergeRemote: 'origin' , mergeTarget: branchTarget]], [$class: 'LocalBranch' ,localBranch: branchTarget] ], clean: true ], poll: false and also checkout scm: [$class: 'GitSCM' , userRemoteConfigs: [[url: repositorio]], branches: [[name: gitBranch]], extensions: [ [$class: 'LocalBranch' ,localBranch: gitBranch] ], clean: true ], poll: false I don't believe it makes any difference, but I'm using declarative pipeline and the code is in another module in a helper function.
          trenchrats Marcel Wilson added a comment -

          I've noticed this when I use a single pipeline.  Using a multi-pipeline appears to work ok.

          trenchrats Marcel Wilson added a comment - I've noticed this when I use a single pipeline.  Using a multi-pipeline appears to work ok.

          Me too. I just don't believe it should be that way... 

          dmitry512tr Dmitry Mihailov added a comment - Me too. I just don't believe it should be that way... 
          trenchrats Marcel Wilson added a comment -

          Agreed.  I point it out in hopes that it helps identify the issue.

          trenchrats Marcel Wilson added a comment - Agreed.  I point it out in hopes that it helps identify the issue.

          People

            Unassigned Unassigned
            dmitry512tr Dmitry Mihailov
            Votes:
            13 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated: