Closed manikantadevopss closed 6 years ago
Please share your job configuration screenshot of your build steps in Jenkins
thank you for response sir,
Where did you specified tomcat_ip, have you passed any parameter?
i gave tomcat macnins's private ip of aws machin
The highlighted section is showing error why? do you have jenkins job with the name cdex?
i resolved that one, yes i have job with that name.but getting below error
“echo Location is /var/lib/jenkins/workspace/gameoflife/gameoflife-web/target/gameoflife.war /tmp/jenkins8983592963623440870.sh: 2: /tmp/jenkins8983592963623440870.sh: “echo: not found Build step 'Execute shell' marked build as failure Finished: FAILURE
I suspect quotes
what is need for quotes "". Remove them
thank you,but after modify that, iam getting below error, can u help me
Building on master in workspace /var/lib/jenkins/workspace/cdex [cdex] $ /bin/sh -xe /tmp/jenkins3853121719139919905.sh
SCP Expects user input right?? how are you passing password then Can you execute the command manually & Check whether it is asking for user input. If the command is expecting user input, Jenkins will fail.
And one more thing why are using scp. Why not ansible/chef to copy the file
please check webapps folder permissions and if u dont have permissions give permissions using chmod 777 webapps/ and try it
is this resolved?
iam facing this below issue
Started by upstream project "gameoflife" build number 4 originally caused by: Started by user durga manikanta punnam Building in workspace /var/lib/jenkins/workspace/cdex [cdex] $ /bin/sh -xe /tmp/jenkins8983592963623440870.sh
“echo Location is /var/lib/jenkins/workspace/gameoflife/gameoflife-web/target/gameoflife.war /tmp/jenkins8983592963623440870.sh: 2: /tmp/jenkins8983592963623440870.sh: “echo: not found Build step 'Execute shell' marked build as failure Finished: FAILURE