Expose loaded LibraryRecords for internally reporting

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

       

            Assignee:
            Unassigned
            Reporter:
            Michael Werner
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: