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

Expose loaded LibraryRecords for internally reporting

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      And the end of our pipeline we report some metrics about the run to a Elasticsearch stack.

      The code for accessing the loaded pipelines is kinda ugly.

      Run rawBuild = currentBuild.rawBuild
      def result
      def action = rawBuild.getAction(org.jenkinsci.plugins.workflow.libs.LibrariesAction.class)
      if (action != null) {
          result = [:]
          for (library in action.libraries) {
              result[library.name] = library.version
          }
      }

       

      An easier way to access these information would be nice

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            xaseron Michael Werner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: