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

Log / document the plugin usage in the flow nodes

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Jenkins adds the plugin names and versions to the XML configuration, e.g. like plugin="groovy@1.27". Analyzing config.xml files it is possible to see what pluins are used by a job.

      With workflow this is not possible, since the information what plugin is used, is in the script file. It is probably difficult to analyze the script statically and extract plugin information.

      However, when a script is executed, workflow has the needed information. The steps are already logged to builds/<job-id>/workflow/<step-id>.xml.

      For a git checkout, via the generic SCM API it logs:

      <?xml version='1.0' encoding='UTF-8'?>
      <org.jenkinsci.plugins.workflow.support.storage.SimpleXStreamFlowNodeStorage_-Tag plugin="workflow-support@1.11">
        <node class="org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode" plugin="workflow-cps@1.11">
          <parents class="com.google.common.collect.ImmutableList">
            <org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode>5</org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode>
          </parents>
          <id>6</id>
          <descriptorId>org.jenkinsci.plugins.workflow.steps.scm.GenericSCMStep</descriptorId>
        </node>
      ...
      

      Improvement:

      Each step node contains also the used plugin(s) and version. In the above case it needs to log workflow-scm-step and git.

        Attachments

          Issue Links

            Activity

            cruftex Jens Wilke created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-33995 [ JENKINS-33995 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-34002 [ JENKINS-34002 ]
            jglick Jesse Glick made changes -
            Labels api
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-28293 [ JENKINS-28293 ]
            jglick Jesse Glick made changes -
            Epic Link JENKINS-35400 [ 171193 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-29922 [ JENKINS-29922 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 167007 ] JNJira + In-Review [ 182547 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Component/s workflow-api-plugin [ 21711 ]
            Component/s workflow-cps-plugin [ 21713 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-37324 [ JENKINS-37324 ]
            jamesdumay James Dumay made changes -
            Labels api api blueocean
            svanoort Sam Van Oort made changes -
            Assignee Jesse Glick [ jglick ] Sam Van Oort [ svanoort ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-45109 [ JENKINS-45109 ]
            jglick Jesse Glick made changes -
            Assignee Sam Van Oort [ svanoort ] Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-api PR 44 (Web Link)" [ 17189 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-cps PR 151 (Web Link)" [ 17190 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-35420 [ JENKINS-35420 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-47428 [ JENKINS-47428 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-47101 [ JENKINS-47101 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                cruftex Jens Wilke
              • Votes:
                4 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: