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

Multibranch project or organization folder shows welcome screen immediately after configuration without refresh

      I have been creating multibranch workflow (version 1.11) projects in Linux and Windows Jenkins installations and I have found next issue. When I create a new Item I choose multibranch project, and I set a name. After that I configure the git project and I push save and next message is shown:

      This project scans branches in your SCM and generate a job for each of them, but you have no branches configured. Configure the project and then index branches to get started.

      But since I have already set a git repo, I went to Status screen and I could see that all my branches with Jenkinsfile file were being processed. So it seems some kind of refresh problem.

          [JENKINS-31601] Multibranch project or organization folder shows welcome screen immediately after configuration without refresh

          asotobueno, Could you provide a screenshot with the message? or the console output?

          Manuel Recena Soto added a comment - asotobueno , Could you provide a screenshot with the message? or the console output?

          Alex Soto added a comment -

          I send you here a link of a video recording of the error: https://youtu.be/coMicGsrYwM

          Alex Soto added a comment - I send you here a link of a video recording of the error: https://youtu.be/coMicGsrYwM

          asotobueno

          1. Does the latest release github-branch-source-1.4-beta-1 look fine for you?
          2. And...if you want to work with GitHub repositories, Why do not select a GitHub source instead of Git?

          Manuel Recena Soto added a comment - asotobueno Does the latest release github-branch-source-1.4-beta-1 look fine for you? And...if you want to work with GitHub repositories, Why do not select a GitHub source instead of Git?

          My proposal here is to redirect to the user to Branch indexing (or Folder indexing) >> log. In this way, the user knows perfectly what is happening after save the configuraciĆ³n. /cc jglick

          Manuel Recena Soto added a comment - My proposal here is to redirect to the user to Branch indexing (or Folder indexing ) >> log. In this way, the user knows perfectly what is happening after save the configuraciĆ³n. /cc jglick

          Jesse Glick added a comment -

          Doable, but not trivial, since this code would need to be changed to invoke a protected method to decide the URL to redirect to, and then branch-api would need to override that. Or the override in ComputedFolder could redirect to the indexing log, avoiding the need for a new public API and inter-plugin patch.

          Jesse Glick added a comment - Doable, but not trivial, since this code would need to be changed to invoke a protected method to decide the URL to redirect to, and then branch-api would need to override that. Or the override in ComputedFolder could redirect to the indexing log, avoiding the need for a new public API and inter-plugin patch.

          Jesse Glick added a comment -

          recena is this actually in progress? I see no PR link.

          Jesse Glick added a comment - recena is this actually in progress? I see no PR link.

          jglick If in progress means "writing code", it is not in progress.

          Manuel Recena Soto added a comment - jglick If in progress means "writing code", it is not in progress.

          Manuel Recena Soto added a comment - - edited

          This issue can be solved with JENKINS-34200.

          Manuel Recena Soto added a comment - - edited This issue can be solved with JENKINS-34200 .

          Code changed in jenkins
          User: recena
          Path:
          src/main/java/com/cloudbees/hudson/plugins/folder/AbstractFolder.java
          src/main/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder.java
          http://jenkins-ci.org/commit/cloudbees-folder-plugin/b895f08dfc84c769d9608a588cfa304d925e91b1
          Log:
          JENKINS-34200 Following the @jglick's suggestion described JENKINS-31601

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: recena Path: src/main/java/com/cloudbees/hudson/plugins/folder/AbstractFolder.java src/main/java/com/cloudbees/hudson/plugins/folder/computed/ComputedFolder.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/b895f08dfc84c769d9608a588cfa304d925e91b1 Log: JENKINS-34200 Following the @jglick's suggestion described JENKINS-31601

            recena Manuel Recena Soto
            asotobueno Alex Soto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: