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

Accurev populate fails if latest transaction contains defunct files

    XMLWordPrintable

Details

    Description

      When the jenkins job is configured to build from a Stream, without specifying a workspace.
      If files have been defunct in the stream used in the build, accurev pop will fail with exit code 1.
      In the portion of the build out put below, the 'No element named' are the defunct files.
      The jenkins workspace needed to be removed to get this job to build again without the error.

      [chkpnt_workstation] $ accurev pop -H accurevserver:5050 -v accurevstream -L jenkinsworkspacepath -l jenkinsjobpath/PopulateFiles.txt -O -R .
       FATAL: No element named accurevprojectpath/component.info
       No element named accurevprojectpath/Service.desktop
       No element named accurevprojectpath/install.sh
       FATAL : Populate from stream command (accurev pop -H scorpio01:5050 -v AT3D -L /var/lib/jenkins/workspace/chkpnt_workstation -l /var/lib/jenkins/jobs/chkpnt_workstation/PopulateFiles.txt -O -R .) failed with exit code 1
       Checkout failed

      Attachments

        Issue Links

          Activity

            Problem could be that someone had promoted multiple transaction where you edit in the file but also defunct-ed them. So the filter is not so advanced to consider defunct-ed should always be removed from list.

            casz Joseph Petersen (old) added a comment - Problem could be that someone had promoted multiple transaction where you edit in the file but also defunct-ed them. So the filter is not so advanced to consider defunct-ed should always be removed from list.
            casz Joseph Petersen (old) added a comment - - edited

            My attempt to correct the underlying issue PR 56

            casz Joseph Petersen (old) added a comment - - edited My attempt to correct the underlying issue PR 56

            Code changed in jenkins
            User: Joseph
            Path:
            pom.xml
            src/main/java/hudson/plugins/accurev/AccurevSCM.java
            src/main/java/hudson/plugins/accurev/ParseChangeLog.java
            src/main/java/hudson/plugins/accurev/cmd/FilesCmd.java
            src/main/java/hudson/plugins/accurev/cmd/GetAccuRevVersion.java
            src/main/java/hudson/plugins/accurev/cmd/PopulateCmd.java
            src/main/java/hudson/plugins/accurev/delegates/AbstractModeDelegate.java
            src/main/java/hudson/plugins/accurev/parsers/xml/ParseHistory.java
            src/main/java/hudson/plugins/accurev/parsers/xml/ParseUpdate.java
            src/main/kotlin/hudson/plugins/accurev/AccurevElement.kt
            src/main/kotlin/hudson/plugins/accurev/AccurevUtils.kt
            src/main/kotlin/hudson/plugins/accurev/parsers/xml/ParseFiles.kt
            src/main/webapp/help/project/stream.html
            http://jenkins-ci.org/commit/accurev-plugin/2214e2f0a57ba9d3091bb97c58d6d34303fb13cf
            Log:
            JENKINS-44748 Ensure defunct files are removed from populating files (#56)

            • Ensure defunct files are removed from populating files
            • kotlin support
            • Files Command, with some kotlin
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Joseph Path: pom.xml src/main/java/hudson/plugins/accurev/AccurevSCM.java src/main/java/hudson/plugins/accurev/ParseChangeLog.java src/main/java/hudson/plugins/accurev/cmd/FilesCmd.java src/main/java/hudson/plugins/accurev/cmd/GetAccuRevVersion.java src/main/java/hudson/plugins/accurev/cmd/PopulateCmd.java src/main/java/hudson/plugins/accurev/delegates/AbstractModeDelegate.java src/main/java/hudson/plugins/accurev/parsers/xml/ParseHistory.java src/main/java/hudson/plugins/accurev/parsers/xml/ParseUpdate.java src/main/kotlin/hudson/plugins/accurev/AccurevElement.kt src/main/kotlin/hudson/plugins/accurev/AccurevUtils.kt src/main/kotlin/hudson/plugins/accurev/parsers/xml/ParseFiles.kt src/main/webapp/help/project/stream.html http://jenkins-ci.org/commit/accurev-plugin/2214e2f0a57ba9d3091bb97c58d6d34303fb13cf Log: JENKINS-44748 Ensure defunct files are removed from populating files (#56) Ensure defunct files are removed from populating files kotlin support Files Command, with some kotlin

            Released as 0.7.14

            casz Joseph Petersen (old) added a comment - Released as 0.7.14

            People

              jetersen Joseph Petersen
              mhadwen Mark Hadwen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: