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

Class hudson.scm.SVNRevisionState should be public

XMLWordPrintable

      I'm developing a Jenkins plugin that scans existing builds for the Subversion revisions being used. This information is stored in SVNRevisionState actions (https://github.com/jenkinsci/subversion-plugin/blob/master/src/main/java/hudson/scm/SVNRevisionState.java).

      Unfortunately, SVNRevisionState is not public, but has default (=package private) visibility only, so other plugins can't use this class. I would suggest raising visibility for this class and its member to public.

      This has been done successfully a long time ago in the Hudson fork ;O) of the Subversion plugin (https://github.com/eclipse/hudson.plugins.subversion/blob/master/src/main/java/hudson/scm/SVNRevisionState.java) and also in the corresponding action of the Git plugin (https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/util/BuildData.java).

      Pull request with suggested code change is at https://github.com/jenkinsci/subversion-plugin/pull/68.

            Unassigned Unassigned
            swiest Simon Wiest
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: