Support #3561

Getting error information in job Failure branch

Added by Vadim 2 months ago. Updated 22 days ago.

Status:FeedbackStart date:06/02/2020
Priority:NormalDue date:
Assignee:Vadim% Done:

0%

Category:-
Target version:RapidDeploy - 5.0-FIX
Affects Version:5.0-FIX Additional version details:
Timesheet Code:

Description

Hello again.

Making automated deployment pipeline I added Failure branches to project job plan. Those branches call project that sends e-mail to inform about failed deployment. Is it possible to get out any information about the occurred error in job plan or project? It could be great to send informative error message.

Best regards,
Vadim.


Related issues

Related to RapidDeploy-Community - Support #3573: Getting user data in deployment project Feedback 06/17/2020

History

#1 Updated by Rafael 2 months ago

  • Status changed from New to In Progress
  • Assignee set to Rafael
  • Target version set to 5.0-FIX

#2 Updated by Rafael 2 months ago

Hi Vadim,

It is possible to retrieve the logs of a deployment by making a GET request to the following URL:

http://RD_HOSTNAME:RD_PORT/MidVision/ws/streamer/job/log/${JOB_ID}

I'm now trying to figure out how you can get the job ID from inside the orchestration.

I'll keep you posted with any update here.

Cheers!

Rafa

#3 Updated by Vadim about 1 month ago

Hello Rafael.

Any news regarding this issue?

Seems that I posted new one ticket that is slightly related to this one - ticket about how to get user info in a task.

Will be waiting for Your update. :)

Best regards,
Vadim.

#4 Updated by Rafael about 1 month ago

  • Status changed from In Progress to Feedback
  • Assignee changed from Rafael to Vadim

Hi Vadim,

This is indeed related to #3573.

We're now investigating the best way of retrieving the job ID during the orchestration execution. I'm not sure if this is even something feasible, but Mariano is now investigating all the possible options.

In the meanwhile, do you know about the automatic email notifications?

You can find some information here:

http://docs.midvision.com/LATEST/reference/administration/configure-email.html

And they are different automatic notifications if the deployment fails, is successful, halted, or some other situations. They are sent to the user that requested the deployment and contain some basic information and a link to the job log.

Maybe this is the solution for this and #3573! :-)

Let me know if you need any further help or better explanation.

Cheers!

Rafa

#5 Updated by Vadim 22 days ago

Hi Rafael,

Thank You for the reply. After Your message I configured e-mail settings on RapidDeploy server and everybody now get lots of mails about job execution. :) Not all are really happy. :) Therefore have question: maybe it's possible to reduce mail count for certain users? Our deployment pipeline consists of several intermediate deployments and package creations, so user gets several Success mails at once and only the last one is the final. :) It could be great to be able not to send some mails for some users.
And, by the way, question about getting some technical information inside the running job plan is still open. :) Of course, there is no need to have both standard RD information sending and custom one.

So resuming all written above. There is no need to get technical information inside a job plan when using standard RD information system. This question can be closed. But there is another question regarding possibility to switch off some mails to certain users. Is it possible?

I even could say better: is it possible to setup system so that some users (admins) get all e-mails (from all users) and some users (simple users, developers) get only one e-mail with deployment results (success, fail, details)? :)

Best regards,
Vadim.

#6 Updated by Rafael 22 days ago

  • Assignee changed from Vadim to Mariano

Hi Vadim,

Unfortunately this ticket and #3573 depend on #3574 (internal issue, you may not be able to see it), that is basically a new feature to obtain the RapidDeploy user that requested the job and the job ID from within the orchestration execution as built in variables (http://docs.midvision.com/LATEST/project/built-in-variables.html), something like ${JOB_ID} and ${RD_USER}.

This is definitely in our roadmap but we still need to study the feasibility of this new feature, as it could just be out of our scope to implement this.

Regarding the email notification system, I'd say there is no way of filtering the emails that you receive, but let's see if Mariano can give you a better answer as I'm not completely sure about this.

As a workaround you can always use the filtering system of your email client, but I'm aware that's not exactly what you are looking for. :-)

Anyway, let's see if Mariano can give us a finer explanation.

Cheers!

Rafa

#7 Updated by Mariano 22 days ago

  • Assignee changed from Mariano to Vadim

Hi, I think email notification system is quite simple, you set a valid email in each user and the SMTP server is configured correctly, all is send... otherwise it is not.

You have also a way to configure email by project, it sends a basic project finish job status. This settings are in the project details page, Orchestration tab -> Settings tab. There, you can configure separatelly by project the email notification.

I am afraid there in no mucho more options to do right now. So, depending on your needings, you can disable completely the emailing feature just not setting the RD smpt configuration in rapiddeploy.properties, or enable the smtp in RD properties but setting some user with the right emails and another users with a fake email or point at , or set an email listings alias like , where the user that need to be notified are included. Additionally you can set the project email notification.

Let me know if there is any doubt.

Regards,
MP

Also available in: Atom PDF