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

Allow check out of specific revision from Subversion via REVISION parameter

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Not A Defect
    • core
    • None
    • Platform: All, OS: All

    Description

      Modify hudson.scm.SubversionSCM.CheckOutTask to accept a value passed in as a
      build parameter with the name REVISION and checkout the specified revision for
      building. Check the following wiki page for modification requested:
      http://wiki.jenkins-ci.org/display/JENKINS/Subversion+Release+Manager

      Attachments

        Activity

          @msaxer:

          look at dodok1's comment. Instead of your current URL (http://.../trunk) you just need to add the revision number to it. The URL will then look like http;//.../trunk@${MYREVISION} where MYREVISION is a parameter of your job. You can also replace ${MYREVISION} with a revision number, but I don't think that will have a useful purpose at all.

          peter_schuetze peter_schuetze added a comment - @msaxer: look at dodok1's comment. Instead of your current URL ( http://.../trunk ) you just need to add the revision number to it. The URL will then look like http;//.../trunk@${MYREVISION} where MYREVISION is a parameter of your job. You can also replace ${MYREVISION} with a revision number, but I don't think that will have a useful purpose at all.
          dty Dean Yu added a comment -

          As mentioned on the thread on the wiki page, the Subversion plugin gets a RevisionParameterAction from the build which contains the Subversion revision of that build. No need to maintain a copy of the SubversionSCM code or modify CheckOutTask.

          dty Dean Yu added a comment - As mentioned on the thread on the wiki page, the Subversion plugin gets a RevisionParameterAction from the build which contains the Subversion revision of that build. No need to maintain a copy of the SubversionSCM code or modify CheckOutTask.
          kraxel Sven Keller added a comment -

          Hello,

          I'm not sure if my proeblem is related to this topic but perhaps, somebody is still istening to this thread and can give some guidance.
          I configured the job using SVNRM-plugin as described in the quick help and I can see my revision list in the "releases" menu.
          However all the time I start a job from this list
          (corresponding link looks like: http://myJenkins:8080/job/myJob/releases/build?revision=1934)
          it always takes HEAD instead of the given revision number.

          Where do I have to configure this in my job?
          adding @1934 or @${REVISION} to the release SCM configuration does not help.

          Sven

          kraxel Sven Keller added a comment - Hello, I'm not sure if my proeblem is related to this topic but perhaps, somebody is still istening to this thread and can give some guidance. I configured the job using SVNRM-plugin as described in the quick help and I can see my revision list in the "releases" menu. However all the time I start a job from this list (corresponding link looks like: http://myJenkins:8080/job/myJob/releases/build?revision=1934 ) it always takes HEAD instead of the given revision number. Where do I have to configure this in my job? adding @1934 or @${REVISION} to the release SCM configuration does not help. Sven
          angelfighter Helene W added a comment -

          I have the same problem as Sven Keller.
          When I add @${REVISION} at the end of the SVN url, than I don't see the revisions ("/trunk@$REVISION doesn't exist in the repository")

          angelfighter Helene W added a comment - I have the same problem as Sven Keller. When I add @${REVISION} at the end of the SVN url, than I don't see the revisions ("/trunk@$REVISION doesn't exist in the repository")
          anup_masurkar Anup Masurkar added a comment -

          Hi,

          Can you please provide me step by step solution for this issue even i am looking for "specific revision from Subversion via REVISION parameter" and the plugin "svn-release-mgr" which you have provided i am unable to find out.

          Thanks,

          Anup

          anup_masurkar Anup Masurkar added a comment - Hi, Can you please provide me step by step solution for this issue even i am looking for "specific revision from Subversion via REVISION parameter" and the plugin "svn-release-mgr" which you have provided i am unable to find out. Thanks, Anup

          People

            Unassigned Unassigned
            piascikj piascikj
            Votes:
            10 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: