-
Bug
-
Resolution: Not A Defect
-
Major
-
windows xp
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
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.