jenkins pipeline script deploy error

0 votes
C:\Program Files (x86)\Jenkins\workspace\app>del "C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\gamutkart.war	"   && xcopy "C:\Program Files (x86)\Jenkins\workspace\app\target\gamutkart.war" "C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps" 
The filename, directory name, or volume label syntax is incorrect.
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 123
Finished: FAILURE
Nov 28, 2019 in Jenkins by Rajendra
• 520 points
951 views
"The filename, directory name, or volume label syntax is incorrect" is quite clear. It could not open such file so my suggestion is to shorten the path.
Hey @Rajendra, The problem is that Windows has file name limitations and yours might have gone beyond this limit. I'm talking about paths such as C:\\Program Files (x86)\\Jenkin... Try to shorten it so that your files can be found and analysed!

Hope this helps!

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Jenkins

0 votes
5 answers
0 votes
1 answer

Error: ‘Jenkins pipeline: No such DSL method'

This is a simple mistake, just remove ...READ MORE

answered Aug 17, 2018 in Jenkins by Sophie may
• 10,550 points
15,568 views
0 votes
3 answers

Error: ‘Jenkins: Cannot define variable in pipeline stage’

https://stackoverflow.com/questions/39832862/jenkins-cannot-define-var ...READ MORE

answered Mar 13, 2019 in Jenkins by Charles Wu
2,995 views
0 votes
1 answer
0 votes
1 answer

How to setup which trigger email notification to email id's in Jenkins pipeline script at every stage?

Hi@Shashi, You need to install some plugins in ...READ MORE

answered Sep 18, 2020 in Jenkins by MD
• 95,160 points
1,111 views
0 votes
1 answer

How to deploy the war file in Tomcat Server with Jenkins pipeline job on an windows machine?

Use deploy to container plugin. Go to the ...READ MORE

answered Sep 30, 2020 in Jenkins by Adil Abdullah Khan
1,664 views
0 votes
1 answer

Error while communicating with remote Oracle DB through Jenkins-CI

I was also facing the same problem. ...READ MORE

answered Apr 25, 2018 in Jenkins by shubham
• 7,320 points
223 views
0 votes
1 answer

Error while talking to remote Oracle DB using Jenkins-CI

I installed Oracle XE to talk to ...READ MORE

answered May 1, 2018 in Jenkins by shubham
• 7,320 points
723 views
0 votes
2 answers