Support #3573

Getting user data in deployment project

Added by Vadim about 1 month ago. Updated about 1 month ago.

Status:FeedbackStart date:06/17/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.

Am not sure if I didn't ask this question in our conversations, but faced again and don't get answer in manuals. Is it possible to get out the user data (name, e-mail, etc.) inside the task? I mean the user that triggered task execution. It could be great to get it during task execution to be able to inform user about the task fail for example. At this time I have to pass user e-mail from the outside.

Best regards,
Vadim.


Related issues

Related to RapidDeploy-Community - Support #3561: Getting error information in job Failure branch Feedback 06/02/2020

History

#1 Updated by Rafael about 1 month ago

  • Assignee set to Rafael
  • Target version set to 5.0-FIX

#2 Updated by Rafael about 1 month ago

  • Status changed from New to Feedback
  • Assignee changed from Rafael to Vadim

Hi Vadim,

This is indeed related to #3561 as the best approach would be to use one of our web services.

You can retrieve the information of a certain user with a GET request to the following URL:

http://HOSTNAME:PORT/MidVision/ws/user/USER_NAME

There's some more information here:

http://docs.midvision.com/LATEST/reference/api/ws/user/listUser.html

And a full list of web services here:

http://docs.midvision.com/LATEST/reference/api/web-services-api.html

The limitation here comes to where you can get the user name from. You can obviously send it from Jenkins to RapidDeploy, but it would be much more elegant to have it already in the RapidDeploy orchestration.

We already provide a list of built-in variables you can use in your deployments:

http://docs.midvision.com/LATEST/project/built-in-variables.html

But the RapidDeploy user name is not one of them - don't mix it with "${USER_NAME}" that's the OS user.

Mariano is now investigating if there's an easy way of retrieving this information and making it available in the orchestration. If so, we will implement this new feature, although I can't confirm you yet.

I'll keep you posted with any update on this, although you can already call the web service with a user name sent from Jenkins.

Cheers!

Rafa

Also available in: Atom PDF