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

Repository Browser URL not saved in Project Pipeline Configuration

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins ver. 2.11
      All plugins less than a week old (Git Plugin 2.5.0)
      Running on Ubuntu 14
      Java "IcedTea" 1.7.0_101
      Using Google Chrome 50

      1. given a Jenkins project of type "Pipeline with Parameters"
        Assuming project name "my-pipeline"
      2. go to the project Configuration (URI /job/my-pipeline/configure)
      3. in the Pipeline section,
        1. given settings Definition is "Pipeline script from SCM", SCM is "Git", sub-section Repositories has a valid Repository URL (I used a local path /tmp/repo to valid git repository), Credentials is correctly set, Branches to Build is value "master", Script Path is Jenkinsfile.groovy
        2. set input field Repository Browser to value "gitiles"
        3. enter in the URL input field to https://gerrit.mycompany.com/plugins/gitiles/bigproject
          Assuming git project "bigproject", using gitiles on gerrit server.
      4. click the bottom-left Save button
      5. Review the project configuration (URI /job/my-pipeline/configure)
        BUG: the saved Repository Browser information is not present. It appears it was not saved.

      There are no error messages in /var/log/jenkins/jenkins.log.
      This bug is similar to fixed bugs JENKINS-22064 JENKINS-22407 JENKINS-22271 .

          [JENKINS-36451] Repository Browser URL not saved in Project Pipeline Configuration

          Chris Russell added a comment -

          Jenkins 2.52, All plugins up to date

          Seeing this behavior on pipeline-from-scm jobs, but standard maven jobs save fine.

          In my case, GitLab is my repo browser.

          The config files does get updated on disk, but the configuration UI always shows "Auto" and the changelog does not link to GitLab as would be expected.

          Chris Russell added a comment - Jenkins 2.52, All plugins up to date Seeing this behavior on pipeline-from-scm jobs, but standard maven jobs save fine. In my case, GitLab is my repo browser. The config files does get updated on disk, but the configuration UI always shows "Auto" and the changelog does not link to GitLab as would be expected.

          As crussell52 mentioned, config file is updated but configuration page shows Auto. In my case, gogs link created under Changes of builds.

          • Jenkins: 2.46.2
          • Git plugin: 3.3.0
          • Gogs: 0.11.4.0405

          Ali Sadik Kumlali added a comment - As crussell52 mentioned, config file is updated but configuration page shows Auto. In my case, gogs link created under Changes of builds. Jenkins: 2.46.2 Git plugin: 3.3.0 Gogs: 0.11.4.0405

          I was worried about this issue too, so I have found a cause and fixed it. Please see PRs in Issue Links above.

          Tomonari Nakamura added a comment - I was worried about this issue too, so I have found a cause and fixed it. Please see PRs in Issue Links above.

          Code changed in jenkins
          User: ikikko
          Path:
          src/main/resources/hudson/plugins/git/GitSCM/config.jelly
          http://jenkins-ci.org/commit/git-plugin/df2131e13dcd1f30162d2ae4b18c838c64555ee4
          Log:
          JENKINS-36451 Set scm instance for showing current browser

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikikko Path: src/main/resources/hudson/plugins/git/GitSCM/config.jelly http://jenkins-ci.org/commit/git-plugin/df2131e13dcd1f30162d2ae4b18c838c64555ee4 Log: JENKINS-36451 Set scm instance for showing current browser

          Code changed in jenkins
          User: Mark Waite
          Path:
          src/main/resources/hudson/plugins/git/GitSCM/config.jelly
          http://jenkins-ci.org/commit/git-plugin/fab02abfd4d18bdd6c4a56cfb667a6deabb4be97
          Log:
          Merge pull request #586 from ikikko/JENKINS-36451/repository-browser-URL-not-saved-in-project-pipeline-configuration

          JENKINS-36451 Set scm instance for showing current browser

          Compare: https://github.com/jenkinsci/git-plugin/compare/6b91b4a56afc...fab02abfd4d1
          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/resources/hudson/plugins/git/GitSCM/config.jelly http://jenkins-ci.org/commit/git-plugin/fab02abfd4d18bdd6c4a56cfb667a6deabb4be97 Log: Merge pull request #586 from ikikko/ JENKINS-36451 /repository-browser-URL-not-saved-in-project-pipeline-configuration JENKINS-36451 Set scm instance for showing current browser Compare: https://github.com/jenkinsci/git-plugin/compare/6b91b4a56afc...fab02abfd4d1 * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.

          Code changed in jenkins
          User: ikikko
          Path:
          src/main/resources/hudson/scm/SubversionSCM/config.jelly
          http://jenkins-ci.org/commit/subversion-plugin/3c34c8322ed4e20e7774d0f4eb61a2e519efefa7
          Log:
          JENKINS-36451 Set scm instance for showing current browser (#217)

          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikikko Path: src/main/resources/hudson/scm/SubversionSCM/config.jelly http://jenkins-ci.org/commit/subversion-plugin/3c34c8322ed4e20e7774d0f4eb61a2e519efefa7 Log: JENKINS-36451 Set scm instance for showing current browser (#217) * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.

          Mark Waite added a comment -

          Included in git plugin 3.9.0 released 12 May 2018

          Mark Waite added a comment - Included in git plugin 3.9.0 released 12 May 2018

          Thanks a lot ikikko: looking forward to it (for our SVN repositories)...

          => markewaite or maybe presumably ifernandezcalvo: Would you mind considering a subversion plugin release with this fix too?

          Reinhold Füreder added a comment - Thanks a lot ikikko : looking forward to it (for our SVN repositories)... => markewaite or maybe presumably ifernandezcalvo : Would you mind considering a subversion plugin release with this fix too?

          In the SVN plugin, the change is merged on the master branch, it will be released in the next version.

          Ivan Fernandez Calvo added a comment - In the SVN plugin, the change is merged on the master branch, it will be released in the next version.

          Thanks a lot! (Considering the finally required change/fix: "That's one small [change] for a man...”)

          Reinhold Füreder added a comment - Thanks a lot! (Considering the finally required change/fix: "That's one small  [change] for a man...”)

            Unassigned Unassigned
            jtmoon James Moon
            Votes:
            16 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved: