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

Subversion postcommit hook dont take last revision

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • subversion-plugin
    • None

      I have

      'http://localhost/jenkins/subversion/${uuid}/notifyCommit?rev=$REV'

      in my postcommit hook code, but my $REV is empty and when hooks execute the jenkins update but the penultimate revision. ¿Why dont update the last one?

      If anyone could help me...

      Thanks

          [JENKINS-20623] Subversion postcommit hook dont take last revision

          er gt added a comment - - edited

          I'm using jenkins 1.541 and Subversion plugin 1.54. After a commit I see in my access_log file:"POST /subversion/59afc25a-023e-49db-8281-8e3da18f2001/notifyCommit HTTP/1.0" 200 0 "-" "Wget/1.11.4 Red Hat modified".

          Yes there is no revision number, but I think it's not the issue here. I tried out with other jenkins versions where the revision number was visible but the behaviour is still the same. No job get's triggered.

          When I remove the authentication from the post commit hook I get the following warning:
          hudson.scm.SubversionRepositoryStatus doNotifyCommit
          WARNING: No subversion jobs found
          So i guess the authentication works with the original post commit hook.

          The question is: Why doesn't the job get triggered although everything looks ok?
          By the way, the PollSCM is checked!

          er gt added a comment - - edited I'm using jenkins 1.541 and Subversion plugin 1.54. After a commit I see in my access_log file:"POST /subversion/59afc25a-023e-49db-8281-8e3da18f2001/notifyCommit HTTP/1.0" 200 0 "-" "Wget/1.11.4 Red Hat modified". Yes there is no revision number, but I think it's not the issue here. I tried out with other jenkins versions where the revision number was visible but the behaviour is still the same. No job get's triggered. When I remove the authentication from the post commit hook I get the following warning: hudson.scm.SubversionRepositoryStatus doNotifyCommit WARNING: No subversion jobs found So i guess the authentication works with the original post commit hook. The question is: Why doesn't the job get triggered although everything looks ok? By the way, the PollSCM is checked!

          I got some post commit hook issues with latest version as well ( https://issues.jenkins-ci.org/browse/JENKINS-20898 ) - going back to 1.539 and SVN-PI 1.53 solved this for me.

          André Schramm added a comment - I got some post commit hook issues with latest version as well ( https://issues.jenkins-ci.org/browse/JENKINS-20898 ) - going back to 1.539 and SVN-PI 1.53 solved this for me.

          monica,
          Does your post-commit script assign $2 to $REV (as the example in https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin)?

          Yoichi Nakayama added a comment - monica, Does your post-commit script assign $2 to $REV (as the example in https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin)?

            Unassigned Unassigned
            monicadiez monica diez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: