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

Per step "View as plain text" not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: timestamper-plugin
    • Labels:
      None
    • Environment:
      Jenkins: 2.60.2
      "Pipeline: Job" 2.12.1

    • Similar Issues:
    • Released As:
      1.8.10

      Description

      The pipeline plugin allows me to see the console output for individual steps, e.g:

      http://myjenkins/jenkins/job/myjob/505/execution/node/161/log/?consoleFull

      This page shows a link "View as plain text", which works on the global per-job console log, but in the per-step log viewer I get this 404 error message if I follow that link:

      http://myjenkins/jenkins/job/myjob/505/execution/node/161/log/consoleText

      404 The requested resource is not available.

        Attachments

          Activity

          mkm Marko Mikulicic created issue -
          Hide
          abayer Andrew Bayer added a comment -

          I believe this is an inconsistency caused by reuse of Jenkins' traditional log display tooling. There's no plain text option actually available for Pipeline nodes like there is for builds, so ideally we wouldn't present that link at all. I'll see if I can get rid of the link.

          Show
          abayer Andrew Bayer added a comment - I believe this is an inconsistency caused by reuse of Jenkins' traditional log display tooling. There's no plain text option actually available for Pipeline nodes like there is for builds, so ideally we wouldn't present that link at all. I'll see if I can get rid of the link.
          Hide
          abayer Andrew Bayer added a comment -

          No, I tell a lie - the plain text option only shows up for me when I've got the Timestamper plugin installed, which should do some checking of the underlying object to see if it can actually get plaintext before providing the link. Moving to the Timestamper component.

          Show
          abayer Andrew Bayer added a comment - No, I tell a lie - the plain text option only shows up for me when I've got the Timestamper plugin installed, which should do some checking of the underlying object to see if it can actually get plaintext before providing the link. Moving to the Timestamper component.
          abayer Andrew Bayer made changes -
          Field Original Value New Value
          Component/s timestamper-plugin [ 15749 ]
          Component/s workflow-job-plugin [ 21716 ]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Steven Brown
          Path:
          src/main/java/hudson/plugins/timestamper/TimestampNote.java
          src/main/resources/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory2/usersettings.jelly
          http://jenkins-ci.org/commit/timestamper-plugin/b4311e8b36ebcaba57a0dd424bc798239db2ee2b
          Log:
          JENKINS-47051 Hide plain text link for pipeline steps

          Only instances of Run are capable of displaying the plain text or the
          /timestamps/ page, so hide the link if the context is of a different
          type.

          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Steven Brown Path: src/main/java/hudson/plugins/timestamper/TimestampNote.java src/main/resources/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory2/usersettings.jelly http://jenkins-ci.org/commit/timestamper-plugin/b4311e8b36ebcaba57a0dd424bc798239db2ee2b Log: JENKINS-47051 Hide plain text link for pipeline steps Only instances of Run are capable of displaying the plain text or the /timestamps/ page, so hide the link if the context is of a different type. * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
          stevengbrown Steven G Brown made changes -
          Assignee Steven G Brown [ stevengbrown ]
          Hide
          stevengbrown Steven G Brown added a comment -

          Fixed included in Timestamper 1.8.10 which will be available shortly.

          Show
          stevengbrown Steven G Brown added a comment - Fixed included in Timestamper 1.8.10 which will be available shortly.
          stevengbrown Steven G Brown made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Hide
          ksylvan Kayvan Sylvan added a comment -

          I still see this with Jenkins 2.182 and Timestamper 1.9

          Show
          ksylvan Kayvan Sylvan added a comment - I still see this with Jenkins 2.182 and Timestamper 1.9
          ksylvan Kayvan Sylvan made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          basil Basil Crow made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Fixed but Unreleased [ 10203 ]
          Hide
          basil Basil Crow added a comment -

          Per Steven's comment I am marking this as resolved in 1.8.10. Kayvan Sylvan, if you are still experiencing problems, could you please open a new issue with more details?

          Show
          basil Basil Crow added a comment - Per Steven's comment I am marking this as resolved in 1.8.10. Kayvan Sylvan , if you are still experiencing problems, could you please open a new issue with more details?
          basil Basil Crow made changes -
          Released As 1.8.10
          Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
          Hide
          ilatypov Ilguiz Latypov added a comment -

          Whoever comes to this ticket searching for a plain text output of a pipeline step, I see a work-around in using BlueOceans REST API,

          https://SERVER/blue/rest/organizations/jenkins/pipelines/FOLDER1/pipelines/FOLDER2/pipelines/FOLDER3/pipelines/FOLDER4/pipelines/JOB_BASE_NAME/runs/BUILD_ID/nodes/NODE_ID/steps/STEP_ID/log/

          The API call shows after clicking the "BlueOcean" link and finding the job. The NODE_ID parameter does not show in the original Jenkins Pipeline Steps rich-format console log,

          https://SERVER/job/FOLDER1/job/FOLDER2/job/FOLDER3/job/FOLDER4/job/JOB_BASE_NAME/BUILD_ID/execution/node/STEP_ID/log/

          Show
          ilatypov Ilguiz Latypov added a comment - Whoever comes to this ticket searching for a plain text output of a pipeline step, I see a work-around in using BlueOceans REST API, https://SERVER/blue/rest/organizations/jenkins/pipelines/FOLDER1/pipelines/FOLDER2/pipelines/FOLDER3/pipelines/FOLDER4/pipelines/JOB_BASE_NAME/runs/BUILD_ID/nodes/NODE_ID/steps/STEP_ID/log/ The API call shows after clicking the "BlueOcean" link and finding the job. The NODE_ID parameter does not show in the original Jenkins Pipeline Steps rich-format console log, https://SERVER/job/FOLDER1/job/FOLDER2/job/FOLDER3/job/FOLDER4/job/JOB_BASE_NAME/BUILD_ID/execution/node/STEP_ID/log/

            People

            Assignee:
            stevengbrown Steven G Brown
            Reporter:
            mkm Marko Mikulicic
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: