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

AccuRev v0.7.12 fails with IOException during history command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • accurev-plugin
    • None

      Jenkins: v2.55

      AccuRev Plugin: v0.7.12

       

      After upgrading from AccuRev v0.7.6 to v0.7.12 (via the Jenkins Plugin Manager) all builds fail with the following stacktrace.

      I have verified that the following settings were present and were not lost in the upgrade:

      • username
      • password
      • server
      • depot
      • stream
      • workspace

       

      Rolling back to our previous version v0.7.6 caused us to lose some settings, but after restoring those settings, the builds work again.

       

      (logs modified to use mock usernames/passwords/servernames/email addresses where found)

       

      v0.7.12 (FAIL)

       

       

      Started by user Sutton, Skylar
      Building in workspace E:\tomcat\Jenkins\jobs\Nightly Build\workspace
      Authenticating with Accurev server...
      [workspace] $ accurev login -H accurev-prd:5050 my-username ********
      Authentication completed successfully.
      Getting a list of streams...
      [workspace] $ accurev show -H accurev-prd:5050 -fx -p CommonApps streams
      Getting a list of workspaces...
      [workspace] $ accurev show -H accurev-prd:5050 -fx -p CommonApps wspaces
      [workspace] $ accurev show -H accurev-prd:5050 -fx -p CommonApps streams
      [workspace] $ accurev update -H accurev-prd:5050 -fx
      [workspace] $ accurev hist -H accurev-prd:5050 -fx -p CommonApps -s -t now-3139504
      FATAL: Unknown stream or ver spec: -t
      FATAL: History command (accurev hist -H accurev-prd:5050 -fx -p CommonApps -s -t now-3139504) failed with exit code 1
      java.io.IOException: History command failed when trying to get all the transactionse 
      	at hudson.plugins.accurev.cmd.History.getTransactionsAfterLastTransaction(History.java:123)
      	at hudson.plugins.accurev.delegates.AbstractModeDelegate.getFileRevisionsTobePopulated(AbstractModeDelegate.java:417)
      	at hudson.plugins.accurev.delegates.AbstractModeDelegate.populate(AbstractModeDelegate.java:293)
      	at hudson.plugins.accurev.delegates.AbstractModeDelegate.populate(AbstractModeDelegate.java:314)
      	at hudson.plugins.accurev.delegates.AbstractModeDelegate.checkout(AbstractModeDelegate.java:145)
      	at hudson.plugins.accurev.AccurevSCM.checkout(AccurevSCM.java:346)
      	at hudson.scm.SCM.checkout(SCM.java:495)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1280)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      	at hudson.model.Run.execute(Run.java:1730)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:405)
      SSH: Current build result is [FAILURE], not going to run.
      Email was triggered for: Failure - Any
      Sending email for trigger: Failure - Any
      Sending email to: my-mailing-list@mycompany.com
      Finished: FAILURE
      

       

       

      v0.7.6 (SUCCESS)

       

      Started by user Sutton, Skylar
      Building in workspace E:\tomcat\Jenkins\jobs\Nightly Build\workspace
      Authenticating with Accurev server...
      [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" login -H accurev-prd:5050 my-username ********
      Authentication completed successfully.
      Getting a list of streams...
      [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" show -H accurev-prd:5050 -fx -p CommonApps streams
      Getting a list of workspaces...
      [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" show -H accurev-prd:5050 -fx -p CommonApps wspaces
      [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" show -H accurev-prd:5050 -fx -p CommonApps streams
      [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" update -H accurev-prd:5050 -fx
      Populating from workspace...
      [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" pop -H accurev-prd:5050 -L "E:\tomcat\Jenkins\jobs\Nightly Build\workspace" -O -R .
      Populated 1441 elements and 0 directories.Populate completed successfully.
      [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" hist -H accurev-prd:5050 -fx -p CommonApps -s CommonApps-my_stream-my-username -t now.1
      [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" hist -H accurev-prd:5050 -fx -p CommonApps -s CommonApps-my_stream -t now.1
      [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" hist -H accurev-prd:5050 -fx -p CommonApps -s CommonApps -t now.1
      Latest Transaction ID: 3139640
      Latest transaction Date: 2017/04/18 10:10:13
      Calculating changelog...
      [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" getconfig -H accurev-prd:5050 -s -r settings.xml
      Setting AC_SYNC to "IGNORE"
      [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" hist -H accurev-prd:5050 -fx -a -s CommonApps -t "2017/04/18 10:09:05-2017/04/18 09:44:06"
      Changelog calculated successfully.
      No emails were triggered.
      Parsing POMs
      Modules changed, recalculating dependency graph
      Established TCP socket on 61261
      ...
      maven build starts and runs 
      ...

       

       

        1. screenshot-1.png
          48 kB
          Joseph Petersen (old)

            jetersen Joseph Petersen
            skylarsutton Skylar Sutton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: