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

Add Copy Artefacts info to the xml Rest API

    XMLWordPrintable

Details

    Description

      add the info from
      COPYARTIFACT_BUILD_NUMBER_[JOB]="BUILD_NUMBER"

      or the info that is contained in the console such as
      Copied 1 artifact from "Tests" build number 6

      to the Rest API xml
      http://jenkinsserver:8080/job/[jobname]/[buildnumber]/api/xml

      the info could look like

      <copyartefact>
      <jobname1>
      <buildnumber>6<buildnumber>
      <artefact>somefileA</artefact>
      </jobname1>
      <jobname2>
      <buildnumber>12<buildnumber>
      <artefact>somefileB</artefact>
      </jobname2>
      </copyartefact>

      Attachments

        Activity

          should be assigned to Alan Harder

          ggeorgea Gwen Georgeault added a comment - should be assigned to Alan Harder

          I'm interested in working on this issue if its not taken. 

          wimukthi Wimukthi Indeewara added a comment - I'm interested in working on this issue if its not taken. 
          wimukthi Wimukthi Indeewara added a comment - - edited

          oleg_nenashev  kwhetstone markewaite  I have gone through this issue and actually, this info can be retrieved using the depth parameter. For example, using the following URL we can get all the information about the copied artifacts including their details.

          http://jenkinsserver:8080/job/[jobname]/[buildnumber]/api/xml?depth=2

          So do we need to add it to the http://jenkinsserver:8080/job/[jobname]/[buildnumber]/api/xml ? (I guess this is similar to [http://jenkinsserver:8080/job/[jobname]/[buildnumber]/api/xml?depth=1]). But if it's needed I will try to add them to the REST API XML.

          wimukthi Wimukthi Indeewara added a comment - - edited oleg_nenashev   kwhetstone markewaite  I have gone through this issue and actually, this info can be retrieved using the depth parameter. For example, using the following URL we can get all the information about the copied artifacts including their details. http://jenkinsserver:8080/job/[jobname]/[buildnumber]/api/xml?depth=2 So do we need to add it to the http://jenkinsserver:8080/job/[jobname]/[buildnumber]/api/xml ? (I guess this is similar to [http://jenkinsserver:8080/job/[jobname]/[buildnumber]/api/xml?depth=1]). But if it's needed I will try to add them to the REST API XML.

          People

            wimukthi Wimukthi Indeewara
            ggeorgea Gwen Georgeault
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: