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

Accurev plugin won't update latest code from accurev

XMLWordPrintable

      I recently updated jenkins and the plugins.

      I am facing a problem where builds are not using the latest code in accurev anymore. What's happening is that the older code is still being built.

      I noticed that the earlier version purged the current workspace before using a populate command which would fetch the latest code. In the newer version I don't see the purge happening and the populate command fetches 0 files.

      Reverting to the previous version fixed the problem for me.

      The output from recent logs looks like this:
      ==========================================================================
      Started by user xyz
      Building in workspace /var/lib/jenkins/jobs/myproj/workspace
      Purging workspace...
      Workspace purged.
      Setting ACCUREV_HOME to "/var/lib/jenkins/jobs/myproj"
      [workspace] $ accurev info -H in-accurev:5050
      Currently authenticated with Accurev server as '(not', login required
      Authenticating with Accurev server...
      [workspace] $ accurev login -H in-accurev:5050 xyz ********
      Authentication completed successfully.
      Getting a list of streams...
      [workspace] $ accurev show -H in-accurev:5050 -fx -p my_depot streams
      Populating workspace...
      [workspace] $ accurev pop -H in-accurev:5050 -v myproj -L /var/lib/jenkins/jobs/myproj/workspace -R .
      Populated 151 elements in 11 directories.Populate completed successfully.

      But newer logs look like this:
      ==========================================================================
      Started by user xyz
      Building in workspace /var/lib/jenkins/jobs/myproj/workspace
      Setting ACCUREV_HOME to "/var/lib/jenkins/jobs/myproj"
      [workspace] $ accurev info -H in-accurev:5050
      Currently authenticated with Accurev server as 'xyz', not logging in again.
      Getting a list of streams...
      [workspace] $ accurev show -H in-accurev:5050 -fx -p my_depot streams
      Populating workspace...
      [workspace] $ accurev pop -H in-accurev:5050 -v myproj -L /var/lib/jenkins/jobs/myproj/workspace -R .
      Populated 0 elements in 0 directories.Populate completed successfully.

            jetersen Joseph Petersen
            prasun Prasun Ratn
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: