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

[closed] How can I integrate a public GitHub repository with a trial RTC repository on jazz.net?

I am trying to do a proof of concept of the integration between RTC and GitHub where RTC uses the GitHub repo as its SCM repository.  


First of all, is this possible, can these two entities comunicate with each other?  I have validated that I can reach both using an SSL checker.

If a valid use case, then:

I have created a public GitHub repo and a trial RTC project area on Jazz.net.  I have configured the projects according to my understanding of the instructions:
I have created the GH repo and have created a webhook, which uses the payload URL of:


Content Type: application/json

Secret Key is the one that I specified in RTC when registering the GH repo.

SSL verification is enabled.

I have registered the GH repo with the RTC project area:


URL:  GitHub Repo

Key: "fee99ab174fa44b6a50a0ba4fb50e3ad"

GitHub Server Authorization Details:

Secret Key: defined

Git Server Authentication Details ( are both supposed to be defined or only one?)

GH username
GH "Personal Access Token" instead of password

Nothing under Advanced and nothing under Mapped Git References.

In the RTC Project Area the Everyone role has been given all Git permissions:

The "Require Work Item Hint Commit Comment"  pre-condition has been defined: Always, Everyone

GitHub requests are Authorized

When I look at the details of the attempted deliveries in the webhook section of the GH repo I see a Requests tab but no Response tab.

I only get: "Couldn't resolve host name"
 

0 votes

Comments

 I was able to get it to work, partially.  The Payload URL that I had copied from the IBM instructions was incorrect.  I was using: https://ccm/service/com.ibm.team.git.common.internal.IGitHubInvokeService?repoKey=xxxxxxxxxxxxxxxxxx and it was failing.  I changed it to include the URL of the RTC server: https://jazz.net/sandbox01-ccm/service/com.ibm.team.git.common.internal.IGitHubInvokeService?repoKey=xxxxxxxxxxxxxxxxxx  and it works.  Partially.  I enable the ""Require Work Item Hint Commit Comment"  pre-condition and if I include a WI number in the commit comments it links it to the WI.  HOWEVER, it does not fail the commit if a WI # is not included.  Thots?

Ryan, this question got duplicated somehow. See the second version.


The question has been closed for the following reason: "Duplicate Question" by rschoon Nov 07 '17, 5:03 a.m.


One answer

Permanent link

Hi Ryan


The Pre Conditions process enforcement might not work in the current version 6.0.4 and earlier. 
I see the documentation for 6.0.5 is updated regarding the process enforcement, if you are on a Release Candidate version of 6.0.5 on your jazz.net cloud, you could try the new configurations.

Best Regards
Shubjit

0 votes

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
× 1,700
× 20

Question asked: Nov 06 '17, 10:58 a.m.

Question was seen: 2,257 times

Last updated: Nov 07 '17, 7:06 a.m.

Confirmation Cancel Confirm