Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC-Git integration with Node.js - how is REMOTE_USER env var set?

RTC 6.0.1. Server is Mint Linux. Client is windows with eclipse 4.2 RTC client.

As part of the node.js code called by the hooks, in ValidatePush.js, is this code

function computeData()
{
        var data = {};
        data.gitUser = thisProcess.env["REMOTE_USER"];

This results in gitUser being undefined which causes an Invalid input error.

REMOTE_USER is set in services/GitBackendService.js but that does not seem to be called. Looking at that code, I think it is supposed to be called by main.js which is the server running in the background. But that is not happening.

Could this be because I am using ssh to push with rather than http which would be going via the node.js server?

Does anyone have any more information on this?

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 28 '16, 5:51 a.m.

Question was seen: 1,218 times

Last updated: Apr 28 '16, 7:45 a.m.

Confirmation Cancel Confirm