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

Add support for additional output values (e.g nexus arifact links) besides a boolean value

    Details

    • Similar Issues:

      Description

      Currently, the function nexusArtifactUploader returns only a boolean value (i.e. java.lang.Boolean). It might be a good idea to return additional information from the function other than a boolean value:

      def result = nexusArtifactUploader(...)
      echo result.getOutputLinks() // --> https://my-nexus.com:443/repository/CoolRepo/com/my/platform/unstable_platform/161/unstable-release.zip
      echo result.getResult() // --> True if success
      

       

      Workaround

      To get these links I have to parse Jenkins log:

      while (!currentBuild.rawBuild.getLog(100).join("\n").contains("Uploaded:")) {
          echo "Waiting for NexusArtifactUploader ... \n"         
      }      
      

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              pskumar448 Suresh Kumar
              Reporter:
              amdokamal S. Panchenko
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: