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

API for fetching free style steps and their logs

      In scope

      • Similar to UX-387 so that we can provide the same collapsable log UI for freestyle projects

          [JENKINS-35850] API for fetching free style steps and their logs

          James Dumay created issue -
          James Dumay made changes -
          Link New: This issue relates to UX-387 [ UX-387 ]

          Vivek Pandey added a comment -

          jdumay Whats free style steps? Did you mean Pipeline job type where provide pipeline script during job creation as opposed to Jenkinsfile from git? If this is what you mean then yes it all works thru same backend implementation.

          Vivek Pandey added a comment - jdumay Whats free style steps? Did you mean Pipeline job type where provide pipeline script during job creation as opposed to Jenkinsfile from git? If this is what you mean then yes it all works thru same backend implementation.
          James Dumay made changes -
          Attachment New: Successful result.png [ 16708 ]

          James Dumay added a comment -

          vpandey FreeStyle projects allow you to define "build steps" and I'd like it if we could use the same UI for freestyle logs as we do for pipeline steps

          James Dumay added a comment - vpandey FreeStyle projects allow you to define "build steps" and I'd like it if we could use the same UI for freestyle logs as we do for pipeline steps

          James Dumay added a comment -

          Perhaps I am not explaining so well (help mneale?)

          James Dumay added a comment - Perhaps I am not explaining so well (help mneale ?)

          Vivek Pandey added a comment -

          jdumayI think I get it. mneale mentioned there other day during backend meeting. Basically what you are looking for is that for steps: /nodes/

          {nodeId}

          /steps will give list of build steps defined inside FreeStyleJob.

          Thing with FreeStyle build step is that there are all kind of build steps and there are plugins that add their own custom steps. The steps API will return any such steps that the user has added. I think this should be good enough assumption on this API?

          Vivek Pandey added a comment - jdumay I think I get it. mneale mentioned there other day during backend meeting. Basically what you are looking for is that for steps: /nodes/ {nodeId} /steps will give list of build steps defined inside FreeStyleJob. Thing with FreeStyle build step is that there are all kind of build steps and there are plugins that add their own custom steps. The steps API will return any such steps that the user has added. I think this should be good enough assumption on this API?

          Michael Neale added a comment -

          vpandey what sort of info would be in the /steps for freestyle?

          For example, the docker build and publish step (I think it is a build step) - I understand that you would see the log for that step, but for the non log data, it would just be metadata that may not be of much interest (all the UI would show is the type of step perhaps?)

          Michael Neale added a comment - vpandey what sort of info would be in the /steps for freestyle? For example, the docker build and publish step (I think it is a build step) - I understand that you would see the log for that step, but for the non log data, it would just be metadata that may not be of much interest (all the UI would show is the type of step perhaps?)

          Vivek Pandey added a comment -

          mneale UI can ignore what it doesn't want or care about. API returns BluePipelineStep, so fields like id, displayName, duration, stanrttime etc. will be present.

          Vivek Pandey added a comment - mneale UI can ignore what it doesn't want or care about. API returns BluePipelineStep, so fields like id, displayName, duration, stanrttime etc. will be present.

          Michael Neale added a comment -

          vpandey great

          Michael Neale added a comment - vpandey great

            Unassigned Unassigned
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: