Skip to content

[JENKINS-2543] lastSuccessful symbolic link is updated before artifact archiving is complete #24371

Closed

Description

@jenkins-infra-bot

I have a hudson task that produces about 1Gb of files, that are archived. The
archiving step takes quite a long time (>10min).

During this time the data in lastSuccessful appears not to point to the last
successful build, but to the "soon to be completed" build.

Since I use the lastSuccessful link to publish the build result with an rsync
daemon this behavior gives me problems. If I access the rsync server during the
"archiving time", I will get inconsistent data (partially copied data).

I would suggest that the lastSuccessful link should be updated as the very last
step of the build, or at least after the archiving step is complete.

(I am quite new to hudson, so I might have missed something obvious, in which
case I humbly apologize.)


Originally reported by m95lah, imported from: lastSuccessful symbolic link is updated before artifact archiving is complete
  • assignee: mindless
  • status: Closed
  • priority: Major
  • component(s): other
  • resolution: Fixed
  • resolved: 2010-01-18T09:14:18+00:00
  • votes: 0
  • watchers: 2
  • imported: 2025-12-08
Raw content of original issue

I have a hudson task that produces about 1Gb of files, that are archived. The archiving step takes quite a long time (>10min).

During this time the data in lastSuccessful appears not to point to the last successful build, but to the "soon to be completed" build.

Since I use the lastSuccessful link to publish the build result with an rsync daemon this behavior gives me problems. If I access the rsync server during the "archiving time", I will get inconsistent data (partially copied data).

I would suggest that the lastSuccessful link should be updated as the very last step of the build, or at least after the archiving step is complete.

(I am quite new to hudson, so I might have missed something obvious, in which case I humbly apologize.)

  • environment: Platform: PC, OS: Linux

Activity

  1. jenkins-infra-bot commented on Jan 17, 2010

    @jenkins-infra-bot
    Author
    mindless:
    • Original comment link
    • Raw content of original comment:

      sorry this wasn't looked at for so long.. I just checked the code and the bug still exists. Another problem with this ordering: if the build is successful up to the point where it makes those symlinks then it updates them.. but a post-build action may change the build status, so you may end up with a "lastStable" symlink but Hudson shows the build as failed.

    sorry this wasn't looked at for so long.. I just checked the code and the bug still exists. Another problem with this ordering: if the build is successful up to the point where it makes those symlinks then it updates them.. but a post-build action may change the build status, so you may end up with a "lastStable" symlink but Hudson shows the build as failed.

  2. jenkins-infra-bot commented on Jan 18, 2010

    @jenkins-infra-bot
    Author
    scm_issue_link:
    • Original comment link
    • Raw content of original comment:

      Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/model/AbstractBuild.java trunk/hudson/main/test/src/test/java/hudson/model/AbstractProjectTest.java trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=26069 Log: [FIXED JENKINS-2543] don't update lastStable/lastSuccessful symlinks until final build result is known (after post-build actions).

    Code changed in hudson
    User: : mindless
    Path:
    trunk/hudson/main/core/src/main/java/hudson/model/AbstractBuild.java
    trunk/hudson/main/test/src/test/java/hudson/model/AbstractProjectTest.java
    trunk/www/changelog.html
    http://fisheye4.cenqua.com/changelog/hudson/?cs=26069
    Log:
    [FIXED JENKINS-2543] don't update lastStable/lastSuccessful symlinks until final
    build result is known (after post-build actions).

  3. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions