I’m trying to copy the artifacts from an upstream job using the “Copy Artifact” Jenkins plugin but I’m getting this error message:
Failed to copy [upstream_dir]\Generated_Code\XX.XX.g.cs to [downstream_dir]\XX.XX.g.cs due to java.io.FileNotFoundException [downstream_dir]\Generated_Code\XX.XX.g.cs (Access is denied)
It occurs only while trying to copy this file, which is auto generated by WCF RIA Services.
I’m using the “Upstream build that triggered this job” option for the “Which build” setting, copying all artifacts by using the “**” wildcards.
Jenkins: ver. 1.436
Copy Artifact Plugin: ver. 1.19
After months…
I decided to by pass the death star (@BlessedGeek reference) locking schema, so this bat file runs before all other steps: