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

Accurev pop command isnt executed

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • accurev-plugin
    • None
    • Windows Server 2012 R2
      AccuRev 6.2.0
      Jenkins 2.46.1
      AccuRev Plugin 0.7.12

    Description

      After upgrading to AccuRev Plugin 0.7.12, the accurev pop is not being executed resulting in an empty Workspace. 

      Our setup is to poll the Accurev for SCM changes every 5 minutes. The poll is successfully finding the changes, unfortunately the subsequent build does not execute the Accurev pop commands

      We do not use Workspaces or reference trees. Nor do we create a snapshot at build time. Refer attached.

      Rolling back to AccuRev Plugin 0.7.11 fixes the issue. Also, manually removing the new AccurevLastTrans.txt file results in the pop command executing, but the issue recurs due to the file being recreated.

      Stream Structure is

       

      Depot
        |-Depot_Stream_1
            |- Depot_Stream_2 (Stream build occurs against)
      

       

      Console log is as follows.

       

       {{ [WS-CLEANUP] Deleting project workspace... }}
       {{ [WS-CLEANUP] Done }}
       {{ [job_example] $ accurev info -H accurev:5050 }}
       {{ Currently authenticated with Accurev server as 'User', not logging in again. }}
       {{ Getting a list of streams... }}
       {{ [job_example] $ accurev show -H accurev:5050 -fx -p Depot -s Depot_Stream_2 streams }}
       {{ [job_example] $ accurev show -H accurev:5050 -fx -p Depot -s Depot_Stream_1 streams }}
       {{ [job_example] $ accurev show -H accurev:5050 -fx -p Depot -s Depot streams }}
       {{ [job_example] $ accurev hist -H accurev:5050 -fx -p Depot -s Depot_Stream_2 -t now-906712 }}
       {{ [job_example] $ accurev hist -H accurev:5050 -fx -p Depot -s Depot_Stream_2 -t now.1 }}
       {{ [job_example] $ accurev hist -H accurev:5050 -fx -p Depot -s Depot_Stream_1 -t now.1 }}
       {{ [job_example] $ accurev hist -H accurev:5050 -fx -p Depot -s Depot -t now.1 }}
       {{ Latest Transaction ID: 906711 }}
       {{ Latest transaction Date: 2017/04/10 11:18:29 }}
       {{ Calculating changelog... }}
       {{ [job_example] $ accurev getconfig -H accurev:5050 -s -r settings.xml }}
       {{ Setting AC_SYNC to "IGNORE" }}
       {{ [job_example] $ accurev hist -H accurev:5050 -fx -a -s Depot_Stream_2 -t "2017/04/10 11:28:56-2017/04/10 11:22:30"}}
       {{ Changelog calculated successfully. }}
       {{ [job_example] $ accurev hist -H accurev:5050 -fx -a -s Depot_Stream_1 -t "2017/04/10 11:28:56-2017/04/10 11:22:30"}}
       {{ Changelog calculated successfully. }}
       {{ [job_example] $ accurev hist -H accurev:5050 -fx -a -s Depot -t "2017/04/10 11:28:56-2017/04/10 11:22:30" }}
       {{ Changelog calculated successfully. }}
       {{ Checkout done   }}

       

      Attachments

        Issue Links

          Activity

            casz Joseph Petersen (old) added a comment - - edited

            Hi

            Do you mind testing this pull request artifact, to see if it solved your issue
            https://github.com/jenkinsci/accurev-plugin/pull/53
            listed artifacts, grab the hpi file: https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Faccurev-plugin/detail/PR-53/4/artifacts
            direct link to hpi file: https://ci.jenkins.io/job/Plugins/job/accurev-plugin/job/PR-53/4/artifact/target/accurev.hpi

            here's how to install hpi

            casz Joseph Petersen (old) added a comment - - edited Hi Do you mind testing this pull request artifact, to see if it solved your issue https://github.com/jenkinsci/accurev-plugin/pull/53 listed artifacts, grab the hpi file: https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Faccurev-plugin/detail/PR-53/4/artifacts direct link to hpi file: https://ci.jenkins.io/job/Plugins/job/accurev-plugin/job/PR-53/4/artifact/target/accurev.hpi here's how to install hpi
            grillba Mark Grills added a comment -

            Nice work.

            I'm out of the office for a few days, but I'll get one of my colleagues to take a look.

            I'll be in touch.

            grillba Mark Grills added a comment - Nice work. I'm out of the office for a few days, but I'll get one of my colleagues to take a look. I'll be in touch.
            casz Joseph Petersen (old) added a comment - - edited

            Sorry for the delayed response, I had initially pushed it back to MicroFocus since 0.7.12 was mostly their work but lack of PR and response

            casz Joseph Petersen (old) added a comment - - edited Sorry for the delayed response, I had initially pushed it back to MicroFocus since 0.7.12 was mostly their work but lack of PR and response

            My own quick testing, shows that it does populate after a clean workspace
            In 0.7.12 it only populate changes when an transaction number is found. It did not check for empty workspace because it assumed nobody used Delete workspace before build starts

            casz Joseph Petersen (old) added a comment - My own quick testing, shows that it does populate after a clean workspace In 0.7.12 it only populate changes when an transaction number is found. It did not check for empty workspace because it assumed nobody used Delete workspace before build starts

            Please use the updated artifact https://ci.jenkins.io/job/Plugins/job/accurev-plugin/job/PR-53/4/artifact/target/accurev.hpi also updated the links above.
            Found an issue in my testing and it should fix it

            casz Joseph Petersen (old) added a comment - Please use the updated artifact https://ci.jenkins.io/job/Plugins/job/accurev-plugin/job/PR-53/4/artifact/target/accurev.hpi  also updated the links above. Found an issue in my testing and it should fix it

            Code changed in jenkins
            User: Joseph
            Path:
            src/main/java/hudson/plugins/accurev/delegates/AbstractModeDelegate.java
            src/main/java/hudson/plugins/accurev/delegates/WorkspaceDelegate.java
            http://jenkins-ci.org/commit/accurev-plugin/1e64bc12eb2735eb2ed5342f63eec3c4dd477d51
            Log:
            check if workspace is empty if so do a full populate (#53)

            fixes JENKINS-43457 JENKINS-43657 JENKINS-43695

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Joseph Path: src/main/java/hudson/plugins/accurev/delegates/AbstractModeDelegate.java src/main/java/hudson/plugins/accurev/delegates/WorkspaceDelegate.java http://jenkins-ci.org/commit/accurev-plugin/1e64bc12eb2735eb2ed5342f63eec3c4dd477d51 Log: check if workspace is empty if so do a full populate (#53) fixes JENKINS-43457 JENKINS-43657 JENKINS-43695
            bercma00 Mark Berchem added a comment -

            Version 0.7.13-SNAPSHOT seems to work just fine.

            bercma00 Mark Berchem added a comment - Version 0.7.13-SNAPSHOT seems to work just fine.

            Fixed in 0.7.13

            casz Joseph Petersen (old) added a comment - Fixed in 0.7.13

            People

              jetersen Joseph Petersen
              grillba Mark Grills
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: