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

Job fails E03020028: File Agent error but runs from Windows command line ok

      When i run this command from terminal / CMD on windows it completes ok

      but when I run it from a job in Jenkins it fails

      "C:\Program Files\CA\AllFusion Harvest Change Manager\hco.exe" -b BROKEID -usr UserID -pw UserPW -en "Tasks 290" -st Development -vp \ -cp "C:\Jenkins\jobs\Tasks\workspace" -pn "Version Internal" -s "*" -sy -nt -r

      The error in Jenkins is:
      E03020028: File Agent error for item C:\Jenkins\jobs\Tasks\workspace\harvest.sig : The file is writable

      I looked up the error code and it usually means a file name has invalid characters - so I ran it from the cmd line but it runs ok.

      Thanks

      Damien

          [JENKINS-16134] Job fails E03020028: File Agent error but runs from Windows command line ok

          Discovered the issue goes away if you disable synchcronise.

          What is probably happening is that files are locked as part of checkout and when you run the job a second time, the checkout fails (file is writable) because it already 'exists' on the workspace.

          Damien Saunders added a comment - Discovered the issue goes away if you disable synchcronise. What is probably happening is that files are locked as part of checkout and when you run the job a second time, the checkout fails (file is writable) because it already 'exists' on the workspace.

            gliptak gliptak
            damiensaunders Damien Saunders
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: