Hi Jan, sorry, should have added this stuff but I was hoping the user permission issue might have been a known problem :)
OS is Win7, Jenkins is running as a standalone service (default service as set up by the Jenkins .msi installer - http://jenkins-ci.org/content/windows-installers-are-now-available)
Snap shot of the batch files is a tad harder to show as we're working under NDA, but it generally looks like
cd "C:\Project\Asset_1\Export"
C:\Project\Repository\Builder.exe --a_lot_of_options_for_assets_1
cd "C:\Project\Asset_2\Export"
C:\Project\Repository\Builder.exe --a_lot_of_options_for_assets_2
Console output is simply the content of the batch file followed by failure
Started by user Lee Winder
Building in workspace C:\Program Files (x86)\Jenkins\jobs\02 - Daily Build\workspace
[workspace] $ cmd /c call C:\Windows\TEMP\hudson9141842775998444888.bat
C:\Program Files (x86)\Jenkins\jobs\02 - Daily Build\workspace>cd "C:\Project\Asset_1\Export"
C:\Project\Asset_1\Export>C:\Project\Repository\Builder.exe --a_lot_of_options_for_assets_1
C:\Program Files (x86)\Jenkins\jobs\02 - Daily Build\workspace>cd "C:\Project\Asset_2\Export"
C:\Project\Asset_2\Export>C:\Project\Repository\Builder.exe --a_lot_of_options_for_assets_2
Build step 'Execute Windows batch command' marked build as failure
Sending e-mails to: ...
Finished: FAILURE
The build step simply looks like
C:\Project\Build_Scripts\Build_All_Assets.bat
If I drop the commands into the Build Step directly I get the following failure message
C:\Project\Asset_2\Export>exit 255
Build step 'Execute Windows batch command' marked build as failure
Sending e-mails to: ...
Finished: FAILURE
BUILD SUCCESSFUL
Total time: 5 seconds
[Ant-tomcat] $ cmd /c call C:\WINDOWS\TEMP\hudson4425405522418561213.bat
C:\Program Files (x86)\Jenkins\workspace\Ant-tomcat>echo "Starting to copy the build"
"Starting to copy the build"
C:\Program Files (x86)\Jenkins\workspace\Ant-tomcat>copy C:\Program Files (x86)\Jenkins\workspace\Ant-tomcat\war\SampleAntProject.war D:\Devops_3rd\apache-tomcat-8.5.24\webapps\
The system cannot find the file specified.
C:\Program Files (x86)\Jenkins\workspace\Ant-tomcat>echo "Copied the build to tomcat"
"Copied the build to tomcat"
C:\Program Files (x86)\Jenkins\workspace\Ant-tomcat>exit 1
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
Kindly help me to solve this issue.
then i tried the same manually in command prompt using copy command but no use.
D:\>copy C:\Program Files \(x86)\Jenkins\workspace\Ant-tomcat\war\SampleAntProject.war D:\Devops_3rd\apache-tomcat-8.5.24\webapps\ The system cannot find the file specified.
anyone has a solution for this?