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

RTC 5.0.2 with Stash integration

Hi,

I have configured the Git (STASH )repository in RTC and then applied the hook in GIT repository too. I have pre-condition set in RTC as well. When I do git push then receiving the error as

C:\GITWorkspace\jazzgit>git push
Password for 'https://OThamsetty@stashdev.domain:7993':
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 313 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: 'Push Operation' failed. Preconditions have not been met: "Owner of the
remote: it is null or does not match the Git user."

 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://OThamsetty@stashdev.domain:7993
/scm/rat/jazzgit.git'

C:\GITWorkspace\jazzgit>

JAZZ LOGS
2016-08-09 11:56:15,881 [WebContainer : 6 @@ 15:18 <unauthenticated> <Initial Page Load@10f4582b-2d06-4e02-96fc-b4baf3a966c6> /ccm/auth/authrequired] ERROR com.ibm.team.git                                    - AbstractGitInvokeService.perform_POST(): exception
com.ibm.team.repository.common.TeamRepositoryException: 'Push Operation' failed. Preconditions have not been met: "Owner of the Git commit is null or does not match the Git user."
    at com.ibm.team.git.auth.internal.GitOAuthHelper.getError(GitOAuthHelper.java:200)

GIT Logs

2016-08-09 11:56:15,933 WARN  [http-nio-7993-exec-3] OThamsetty @1PE58L6x716x9892x0 10.90.11.51 "POST /scm/rat/jazzgit.git/git-receive-pack HTTP/1.1" c.a.s.i.s.g.p.http.HttpReceivePack RAT/jazzgit[64]: Git hooks have not been called. Please verify that the hooks are configured correctly - see https://confluence.atlassian.com/display/STASHKB/Git+hook+scripts+are+not+executing for details

Does anyone have any clue where I am missing the configuration.

Thanks,

0 votes



One answer

Permanent link
Hi,

I did the integration success with stash and RTC. I may missing adding the stash URL for integration. I just added proper git URL and then settings mentioned the commit URL as well as passed my password over there to test it and also modified the precondition hook and merged with already default one.


0 votes

Comments

 Hi Naveen,


Can you please send me the steps which you have followed to do the RTC integration with STASH.

I tried integrating RTC 6.0.3 with BITBUCKET latest version but was not able to do it and later I found that RTC won't support BITBUCKET.

Also, please let me know the version of RTC and stash which you have used for this integration.


Thanks & Regards,
Arun

 Please remember to comment on an answer by clicking on "comment", rather than typing your comment into the "your answer" box.

Your answer

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: Aug 09 '16, 12:12 p.m.

Question was seen: 1,695 times

Last updated: Oct 16 '17, 5:43 p.m.

Confirmation Cancel Confirm