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

[pipeline multibranch] Lost configuration using Single Source

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • scm-api-plugin
    • Jenkins 1.609-1.642
      SCM API 1.0
      Pipeline plugin 1.13
      git-client plugin 1.19.0-1.19.2
      git plugin 2.4.0-2.4.2

      In a multibranch job, if you configure "Single Source" as method to checkout source, after you save, if you open configuration seems like configuration's fields were lost.

      Configuring

      Review configuration

          [JENKINS-32768] [pipeline multibranch] Lost configuration using Single Source

          Jesse Glick added a comment -

          Rarely tested, since there is not much point in using this SCM source: you would need to manually configure every branch.

          The cause is obvious from code inspection: the fields have no public getters. Should be simple to fix, and demonstrate using a functional test calling configRoundTrip using a mock Builder which takes an SCMSource field.

          Jesse Glick added a comment - Rarely tested, since there is not much point in using this SCM source: you would need to manually configure every branch. The cause is obvious from code inspection: the fields have no public getters. Should be simple to fix, and demonstrate using a functional test calling configRoundTrip using a mock Builder which takes an SCMSource field.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          pom.xml
          src/main/java/jenkins/scm/impl/SingleSCMSource.java
          src/main/resources/jenkins/scm/impl/SingleSCMSource/config-detail.jelly
          src/test/java/jenkins/scm/impl/SingleSCMSourceTest.java
          src/test/resources/jenkins/scm/impl/SingleSCMSourceTest/SCMSourceBuilder/config.jelly
          http://jenkins-ci.org/commit/scm-api-plugin/6e86e962f6d2e51ef8d7d8e4aabc6b8617047f5d
          Log:
          [FIXED JENKINS-32768] Round-tripping SingleSCMSource did not work.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/jenkins/scm/impl/SingleSCMSource.java src/main/resources/jenkins/scm/impl/SingleSCMSource/config-detail.jelly src/test/java/jenkins/scm/impl/SingleSCMSourceTest.java src/test/resources/jenkins/scm/impl/SingleSCMSourceTest/SCMSourceBuilder/config.jelly http://jenkins-ci.org/commit/scm-api-plugin/6e86e962f6d2e51ef8d7d8e4aabc6b8617047f5d Log: [FIXED JENKINS-32768] Round-tripping SingleSCMSource did not work.

            jglick Jesse Glick
            ifernandezcalvo Ivan Fernandez Calvo
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: