-
Notifications
You must be signed in to change notification settings - Fork 21
Deploy on SCP failed #18
Comments
Seems to be related to #16 There are already some pull requests for resolving this issue: SAP/jenkins-library#632 There is a commit combining basically these three commit (... well at the moment with some additional troubleshooting code): This commit is here: Please try this commit and report if that works for you. The solution we think about right now will be similar. |
Hi Marcus, thanks for the quick response. But I am already using an older commit - 0e7ef41fabce50fcb2c62a16e3bfb3e0c22bdcaa which supports config.properties file. I tried running Piper by replacing config.properties file with config.yml file but it did not work. Can we stick to 0e7ef41fabce50fcb2c62a16e3bfb3e0c22bdcaa commit or do we need to switch to the marcusholl/fixNeoDeploy commit, if so will it support config.properties file. |
Also, in case marcusholl/fixNeoDeploy commit supports only config.yml file, will the Jenkinsfile be the same or we need to make some changes. |
Now it is good time for switching to the new config.yml approach, I suppose. Should not be that hard to do this move: E.g.:
goes to:
This file should be a good starting point (don't be afraid, your file will be much, much smaller, please provide only the delta, do not repeat the full file ...)
Why?
Dont know how your pipeline script (aka Jenkinsfile) does look like. I would expect something like
|
Hi Marcus , here I have attached the Jenkinsfile and config.yml files. Please have a look at them and let me know if its ok or some changes need to be made.Thanks. |
The Jenkinsfile is ways to complicated. When we started the Jenkinsfile looked basically like this - and the example which you can find here still does (that we should change, by the way ...). But the configuration handling improved a lot in the meantime, so the pipelines could look much more straight-forward. Basically what you are doing is
From having a look on your pipeline I suggest to strip that down to:
Regarding the config file. For backward compatibility reasons it is still supported to provide the location of the mta.jar file. Please use
The neo toolset (if not used via docker (https://hub.docker.com/r/ppiper/neo-cli)) is expected to be configured via |
By the way: here is the up-to-date documentation: https://sap.github.io/jenkins-library/scenarios/ui5-sap-cp/Readme/ Would also be possible to switch to the step described there. It depends on your needs wrt to including further steps. In case you would like to put more steps around |
Fixed with #632 in SAP/jenkins-Library. Please switch back to master branch and come back if it does not work. Otherwise close this issue, |
Hi Marcus. Just one query, is this solution stable or we are still working to improve it. |
Also, initially we didn't require Docker images to implement the solution, but now it seems necessary to have Docker images. Please confirm on the same. |
It is not required to use the Docker images but we recommend it. |
Thanks for the response, but let me rephrase myself, as already mentioned "https://github.com/SAP/jenkins-pipelines" repository had prepared Jenkinsfile and config.properties which has now been deprecated. Since we are new to groovy structure we were just wondering if you could provide us with the updated Jenkinsfile and config.properties(now config.yml) files for the same scenario. |
You just need to copy this in your Jenkinsfile:
And copy this in your configuration file in .pipeline/config.yml
If you want to use the Docker images, just remove mtaJarLocation and neoHome from your config. |
We have changed the Jenkinsfile and config.yml files as you suggested but we are getting an error. Please help us with an analysis of the issue. PFA of the console output. |
Hi Team, can someone please help us analyze the above attached error details. |
Hi, sorry for the late response. We had public holidays for easter. |
Hi, thanks for the reply. Yes some of the plugins were actually missing , the issue has been fixed now . But it seems there is some issue with the deployment to the cloud Neo environment . Please help us with the analysis of the same. |
Sorry my fault, I messed up the config. The correct syntax is:
Best regards |
Hi there, we have changed the config.yml file as per your suggestion but we are still getting the same issue. Are we missing something? |
Sorry for the inconvenience. I had to try it out and I have a running config.yml now. |
Thanks for the response. We tried with mentioned config.yml file but its still giving the same error, not sure what we are missing. Please have a look into our project and help us analyse the issue. |
Ok, your .pipeline folder is at the wrong level. You have to move it into the root level next to the Jenkinsfile. |
Corrected the folder structure , thanks for pointing it out. However we are still getting an issue with the deployment. The error details mentions "wrong credentials" which should not be the case . Please help us if we are misiing something here. |
I see two issues in the log. The more important issue is:
Verify your credentials by emitting e.g. a The second thing is:
I guess |
Hi Marcus, thanks for the response. We are not getting the second issue anymore. But the credentials issue still persists.
Can you please explain the same in more details. Also find the latest error log. |
Congratulations, what did you change?
You have apparently maintained invalid credentials. Be careful! Using the wrong credentials again and again will end up in a locked account after 5 consecutive calls with a wrong password. The most easy thing in this case is to emit a call which only reads, but does not write. -> Try in a command line (bash) on your Jenkins instance or on any other suitable machine having the neo toolset installed:
With regards to the call: check also the help: You will be asked for the password: If your call succeeds you know you have the right credentials. If the call does not successed (e.g. ending with something like
you know your credentials are really wrong. In case is works on the command line: check the Maybe there are users not working with user/password authentification (but maybe with a certificate based authentification). Maybe you should also clarify the details in that direction. But wrt authentification modes I'm not an expert. |
I have no idea how I can help here. The message is clear: we are dealing with wrong credentials. I would like to suggest to clarify this with some kind of a admin for your cloud account. I guess it is basically about permissions. Maybe the user is only valid for UI, but not for the endpoint used by the neo toolset, but the message is blurry, but this is only a wild guess. My problem here is: I'm not familiar with the details here (permission setup in SCP), so I guess I'm the wrong contact for resolving the details with regards to that user/account management story here. |
Hi Marcus, sorry was on leave so could not respond. The credentials issue has been resolved now but we are still not able to deploy it on SCP. Please help us with the analysis of the same. |
Thanks for the update. In the log we can read:
This indicates that the user you are using does not have the permission to perform the deployment. I fear this is something I cannot help. I would like to suggest to clarify the details with the admins of your account (ask them to adjust the permission or to provide you with another user having the appropriate permissions). |
Hi Marcus, the issue has been resolved . Thanks for all your support. |
Hi Team,
I am getting an error during the MTA deployment to the SCP. The error is something like below:
#Test 1
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /home/jenkins/NEO_HOME/tools/log/console_deploy-mta_1554185390887.log (Permission denied)
#Test 2
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /home/jenkins/NEO_HOME/tools/log/console_deploy-mta_1553752313264.log (Permission denied)
P.S. /home/jenkins/NEO_HOME/tools/log/ is present in the server.
The text was updated successfully, but these errors were encountered: