jenkins + sonar + github integration

后端 未结 2 762
盖世英雄少女心
盖世英雄少女心 2020-12-04 16:11

Problem: I am setting up jenkins + sonar + github integration for automatic pullrequest static code check through sonar.

My

2条回答
  •  难免孤独
    2020-12-04 16:44

    Too long for a comment so I'll have to write it here.

    After some research on the web I've found a question on SO from someone a few steps ahead of you in the process of trying to setup a similar system, here. They're trying to get this all working with Maven, I'm not sure if you are also, but either way you can then see the link they've been using to help them with their script:

    https://github.com/SonarSource/sonarqube/blob/master/travis.sh

    This shows they need to write a script that will retrieve the pull number dynamically for them. I think you may need to follow a similar approach and write a script that will retrieve the number for you, I believe one of the github conf files keeps track of the current pull request number for its own tracking purposes.

    Not really as straight forward an answer as you might have been hoping for, but hopefully this is new information that helps you get there.

提交回复
热议问题