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

github-coverage-reporter-plugin missing pipeline instructions

      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/

          [JENKINS-56311] github-coverage-reporter-plugin missing pipeline instructions

          Idan Adar added a comment -

          jnewc 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?

          Idan Adar added a comment - jnewc 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?

          Jack Newcombe added a comment -

          Hi idanadar

          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

          Jack Newcombe added a comment - Hi idanadar 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

          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?

          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?

          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

          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

          Jack Newcombe added a comment -

          The above PR has now been merged.

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

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

              Created:
              Updated:
              Resolved: