Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56311

github-coverage-reporter-plugin missing pipeline instructions

    Details

    • Similar Issues:

      Description

      The GitHub Coverage Reporter plug-in instructions are missing instructions on how to use it in multi-branch pipelines / in a Jenkinsfile.

       

      https://github.com/jenkinsci/github-coverage-reporter-plugin/

        Attachments

          Activity

          Hide
          idanadar Idan Adar added a comment -

          Jack Newcombe would love to help with the documentation, but for that to happen I need to know if it is at all possible to use this plug-in in a Pipeline. What is the Step that needs to be added into the Jenkinsfile?

          Show
          idanadar Idan Adar added a comment - Jack Newcombe would love to help with the documentation, but for that to happen I need to know if it is at all possible to use this plug-in in a Pipeline. What is the Step that needs to be added into the Jenkinsfile?
          Hide
          jnewc Jack Newcombe added a comment -

          Hi Idan Adar

          There isn't built in support for the DSL yet, but you can use the step syntax to setup the step:

          https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#understanding-syntax-1

          I'm afraid I haven't tried yet, but if you get it working please post back, and also feel free to submit a PR with documentation!

          Cheers,

          Jack

          Show
          jnewc Jack Newcombe added a comment - Hi Idan Adar There isn't built in support for the DSL yet, but you can use the step syntax to setup the step: https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#understanding-syntax-1 I'm afraid I haven't tried yet, but if you get it working please post back, and also feel free to submit a PR with documentation! Cheers, Jack
          Hide
          idanadar Idan Adar added a comment -

          Thanks, but this is still not enough to go on with.

          What do I need to use as part of the step syntax? Any key words? Command name?

          Show
          idanadar Idan Adar added a comment - Thanks, but this is still not enough to go on with. What do I need to use as part of the step syntax? Any key words? Command name?
          Hide
          nzin Nicolas Zin added a comment -

          In it actual form github-coverage-reporter-plugin cannot be used in Jenkinsfile, because it cannot get environment variable dynamically. 
          I created a PR to add Jenkinsfile support: https://github.com/jenkinsci/github-coverage-reporter-plugin/pull/6/files

          Show
          nzin Nicolas Zin added a comment - In it actual form github-coverage-reporter-plugin cannot be used in Jenkinsfile, because it cannot get environment variable dynamically.  I created a PR to add Jenkinsfile support:  https://github.com/jenkinsci/github-coverage-reporter-plugin/pull/6/files
          Hide
          jnewc Jack Newcombe added a comment -

          The above PR has now been merged.

          Show
          jnewc Jack Newcombe added a comment - The above PR has now been merged.

            People

            • Assignee:
              jnewc Jack Newcombe
              Reporter:
              idanadar Idan Adar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: