QT-DevOps / DevOpsIssues

This Repo will be used to demonstrate the Skills & Questions in DevOps
Apache License 2.0
27 stars 131 forks source link

error in upstream and downstream #38

Closed manikantadevopss closed 6 years ago

manikantadevopss commented 6 years ago

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

shaikkhajaibrahim commented 6 years ago

Please share your job configuration screenshot of your build steps in Jenkins

manikantadevopss commented 6 years ago

thank you for response sir,

1 2 3 4 5 6 7

vijaybhaskarreddyy commented 6 years ago

Where did you specified tomcat_ip, have you passed any parameter?

manikantadevopss commented 6 years ago

4

i gave tomcat macnins's private ip of aws machin

shaikkhajaibrahim commented 6 years ago

The highlighted section is showing error why? do you have jenkins job with the name cdex?

image

manikantadevopss commented 6 years ago

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

shaikkhajaibrahim commented 6 years ago

I suspect quotes image

what is need for quotes "". Remove them

manikantadevopss commented 6 years ago

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

shaikkhajaibrahim commented 6 years ago

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

manikantagaddam commented 6 years ago

please check webapps folder permissions and if u dont have permissions give permissions using chmod 777 webapps/ and try it

manikantagaddam commented 6 years ago

is this resolved?