No commit information was pulled into JIRA

Issue #28 wontfix
TestUser created an issue

Hi,

I installed Jigit Plugin 1.2.2 on my JIRA Service 7.3.8, and config Github information in it successfully. But I can't get the commit information in JIRA related ticket.

I use "tail -f /var/atlassian/application-data/jira/log/atlassian-jira.log |grep jigit" to track the info when I debug Use the JIRA issue key in commit of Github There is no log info in atlassian-jira.log The commit info doesn't display in JIRA related ticket. Do you have any ideas what I was wrong? I try https://bitbucket.org/dmitry_apanasevich/jira-jigit-plugin/issues/14/why-couldnot-show-the-subbmit-imformation, but it won't work.

Thanks in advance!

-Maggie

Comments (13)

  1. TestUser reporter

    More details:

    Found some JIRA tickets can get the commit info, but some cann't! Every commit has a JIRA issue key, is there a format requirement in Github?

    And why the commit info delayed shows for a long time?

    Thanks

    -Maggie

  2. TestUser reporter

    Just get some error messages, hope it could help:

    2018-02-28 02:35:20,868 Caesium-1-3 ERROR ServiceRunner     [jigit.indexer.JigitIndexer] JigitIndexer::execute - ExecutionException. Cause: 
        at jigit.client.github.GitHubRepositoryAPI.getBranch(GitHubRepositoryAPI.java:42)
        at jigit.indexer.api.github.GithubAPIAdapter.getHeadCommitSha1(GithubAPIAdapter.java:42)
        at jigit.indexer.IndexingWorker.indexRepoBranch(IndexingWorker.java:90)
        at jigit.indexer.IndexingWorker.handleBranchMode(IndexingWorker.java:66)
        at jigit.indexer.IndexingWorker.call(IndexingWorker.java:52)
        at jigit.indexer.IndexingWorker.call(IndexingWorker.java:20)
    2018-02-28 02:37:21,066 Caesium-1-4 ERROR ServiceRunner     [jigit.indexer.JigitIndexer] JigitIndexer::execute - ExecutionException. Cause: 
        at jigit.client.github.GitHubRepositoryAPI.getBranch(GitHubRepositoryAPI.java:42)
        at jigit.indexer.api.github.GithubAPIAdapter.getHeadCommitSha1(GithubAPIAdapter.java:42)
        at jigit.indexer.IndexingWorker.indexRepoBranch(IndexingWorker.java:90)
        at jigit.indexer.IndexingWorker.handleBranchMode(IndexingWorker.java:66)
        at jigit.indexer.IndexingWorker.call(IndexingWorker.java:52)
        at jigit.indexer.IndexingWorker.call(IndexingWorker.java:20)
    
  3. Dmitrii Apanasevich repo owner

    Hi Maggie,

    Why did you decide that the commit from picture 3 have been already indexed? As I can see from picture 1, indexing is not completed. It have been stopped because of API calls limitation. Default branch ('develop') has not indexed at all. Number of commits is equal to zero. Wait, until this branch will be indexed.

  4. TestUser reporter

    @dmitry_apanasevich ,

    Thank you for your reply! Yes, you are right. Now the commits are indexed. But another branch like "master" still not be indexed, it already at least 8 hours. How can I set the time interval to indexing? I want to index it every half hour.

    Some logs in JIRA:

    2018-02-28 18:41:43,326 Caesium-1-3 ERROR ServiceRunner     [jigit.indexer.JigitIndexer] JigitIndexer::execute - ExecutionException. Cause: 
        at jigit.client.github.GitHubRepositoryAPI.getBranch(GitHubRepositoryAPI.java:42)
        at jigit.indexer.api.github.GithubAPIAdapter.getHeadCommitSha1(GithubAPIAdapter.java:42)
        at jigit.indexer.IndexingWorker.indexRepoBranch(IndexingWorker.java:90)
        at jigit.indexer.IndexingWorker.handleBranchMode(IndexingWorker.java:66)
        at jigit.indexer.IndexingWorker.call(IndexingWorker.java:52)
        at jigit.indexer.IndexingWorker.call(IndexingWorker.java:20)
    2018-02-28 18:43:43,485 Caesium-1-2 ERROR ServiceRunner     [jigit.indexer.JigitIndexer] JigitIndexer::execute - ExecutionException. Cause: 
        at jigit.client.github.GitHubRepositoryAPI.getBranch(GitHubRepositoryAPI.java:42)
        at jigit.indexer.api.github.GithubAPIAdapter.getHeadCommitSha1(GithubAPIAdapter.java:42)
        at jigit.indexer.IndexingWorker.indexRepoBranch(IndexingWorker.java:90)
        at jigit.indexer.IndexingWorker.handleBranchMode(IndexingWorker.java:66)
        at jigit.indexer.IndexingWorker.call(IndexingWorker.java:52)
        at jigit.indexer.IndexingWorker.call(IndexingWorker.java:20)
    2018-02-28 18:45:43,663 Caesium-1-1 ERROR ServiceRunner     [jigit.indexer.JigitIndexer] JigitIndexer::execute - ExecutionException. Cause: 
        at jigit.client.github.GitHubRepositoryAPI.getBranch(GitHubRepositoryAPI.java:42)
        at jigit.indexer.api.github.GithubAPIAdapter.getHeadCommitSha1(GithubAPIAdapter.java:42)
        at jigit.indexer.IndexingWorker.indexRepoBranch(IndexingWorker.java:90)
        at jigit.indexer.IndexingWorker.handleBranchMode(IndexingWorker.java:66)
        at jigit.indexer.IndexingWorker.call(IndexingWorker.java:52)
        at jigit.indexer.IndexingWorker.call(IndexingWorker.java:20)
    

    Thanks

    -Maggie 5.jpg

  5. Dmitrii Apanasevich repo owner

    But another branch like "master" still not be indexed, it already at least 8 hours.

    Have you tested this repo with "Test connection" button? Try to test it, if not. Also, check that the name of a repo is correct, please.

    How can I set the time interval to indexing? I want to index it every half hour.

    It's not possible. Indexing runs every two minutes, after the initial run.

  6. ameni

    Hi , please I have the same problem, how can I resolve it, should I add a configuration in gitlab, or the configuration in Jigit Plugin Configuration is sufficient !! thank you

  7. Dmitrii Apanasevich repo owner

    Hi ameni,

    We've found earlier that the original problem is not a problem at all, it's a normal behaviour. OP had to wait because of GitHub API call limits.

    Could you be more specific? I need more details about your problem. See also documention.

  8. ameni

    Thank you @dmitry_apanasevich for you response, I had a project in gitlab , I installed jgit plugin then I add the confiuration of this project, Now Why the project appear only in Add-ons (Jigit Plugin Configuration) , and didn't appear in list of project !! , Also, in Jigit Plugin Configuration : there are only the branch , there no list of commit, user, .... In addition, when I create a project in jira the jgit appear in appear, So , I should modify the configuration or I should add something , I really can't interstand !! , please any help thanks :)

  9. Dmitrii Apanasevich repo owner

    ameni, please, read the documention carefully. You are trying to get someting strange from the add-on. It doesn't create any project, it doesn't show you any list of users. What it does is display commits related to an issue at the issue tab. Look at the pictures here

    All you need are:

    1. Create a project in GitLab.
    2. Create a repository at the add-on config page. Get sure you've configured it correctly with Test connection button.
    3. Create an issue in JIRA.
    4. Make a commit to your GitLab project and mention the issue key in the commit message.
    5. Wait 5 minutes.
    6. Open the issue page in JIRA, click Jigit tab and you'll see the commit.
  10. TestUser reporter

    @dmitry_apanasevich thanks for your reminding. I checked the personal access tokens in GitHub, selected all of repo, it works now.

    But in the documentation, it said that "Note, that Jigit uses only repo:status scope to read commits.". So I only selected "repo:status" before.

    Thanks for your help, I will make this issue closed.

    -Maggie

    6.jpg

  11. Log in to comment