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

Timestamper scripting API doesn't work for Pipeline jobs since version 1.9

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: timestamper-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:
    • Released As:
      1.11.1

      Description

      Using the REST API of the timestamper pluging doesn't work since the last update (v1.9)

      With timestamper v1.8, accessing the job url "https://myjenkins/job/J18.windows/2260/timestamps/" returns the elapsed times, one per line.

      0.003
      0.005
      0.005
      0.010
      0.123
      0.139
      0.140
      0.163
      0.290
      0.587
      0.588
      0.598
      0.598
      0.598
      0.598
      0.598
      0.598
      0.598
      0.598
      0.598
      0.599
      0.599
      0.614
      1.179
      [...]
      

       

      Since timestamper v1.9, accessing the job url "https://myjenkins2/job/J18.windows/1/timestamps/" returns an empty page !

       

      Is there a possibility that the global option "enable timestamps for all Pipeline builds" introduce in the v1.9 of the plugin had inject this bug ? (this option is off in our instance).

      We are using the REST API timestamper to analyse the different steps duration of our builds (they have an average time build of ~2h). Using the datetime injected in the log of the builds is not really an option because we are using 4 different Jenkins instance (the older one is Jenkins v1.549 !) and we prefer not to maintain different analyse script when one do the job, and for now the simple timestamper REST API ".../timestamps/" was the only way to get the same result page for those different Jenkins versions.

       

        Attachments

          Issue Links

            Activity

            thoudayer T. Houdayer created issue -
            thoudayer T. Houdayer made changes -
            Field Original Value New Value
            Description Using the REST API of the timestamper pluging doesn't work since the last update (v1.9)

            With timestamper v1.8, accessing the job url "https://myjenkins/job/J18.windows/2260/timestamps/" returns the elapsed times, one per line.
            {noformat}
            0.003
            0.005
            0.005
            0.010
            0.123
            0.139
            0.140
            0.163
            0.290
            0.587
            0.588
            0.598
            0.598
            0.598
            0.598
            0.598
            0.598
            0.598
            0.598
            0.598
            0.599
            0.599
            0.614
            1.179
            1.179
            1.180
            1.180
            1.180
            1.180
            1.180
            1.182
            1.182
            1.189
            1.189
            1.189
            1.189
            1.189
            1.190
            1.190
            1.194
            1.194
            1.194
            1.206
            1.206
            1.215
            1.215
            1.217
            1.238
            1.361
            1.667
            1.668
            1.678
            [...]
            {noformat}
             

            Since timestamper v1.9, accessing the job url "https://myjenkins2/job/J18.windows/1/timestamps/" returns an empty page !

             

            Is there a possibility that the global option "enable timestamps for all Pipeline builds" introduce in the v1.9 of the plugin had inject this bug ? (this option is off in our instance).

            We are using the REST API timestamper to analyse the different steps duration of our builds (they have an average time build of ~2h). Using the datetime injected in the log of the builds is not really an option because we are using 4 different Jenkins instance (the older one is Jenkins v1.549 !) and we prefer not to maintain different analyse script when one do the job, and for now the simple timestamper REST API ".../timestamps/" was the only way to get the same result page for those different Jenkins versions.

             
            Using the REST API of the timestamper pluging doesn't work since the last update (v1.9)

            With timestamper v1.8, accessing the job url "https://myjenkins/job/J18.windows/2260/timestamps/" returns the elapsed times, one per line.
            {noformat}
            0.003
            0.005
            0.005
            0.010
            0.123
            0.139
            0.140
            0.163
            0.290
            0.587
            0.588
            0.598
            0.598
            0.598
            0.598
            0.598
            0.598
            0.598
            0.598
            0.598
            0.599
            0.599
            0.614
            1.179
            [...]
            {noformat}
             

            Since timestamper v1.9, accessing the job url "https://myjenkins2/job/J18.windows/1/timestamps/" returns an empty page !

             

            Is there a possibility that the global option "enable timestamps for all Pipeline builds" introduce in the v1.9 of the plugin had inject this bug ? (this option is off in our instance).

            We are using the REST API timestamper to analyse the different steps duration of our builds (they have an average time build of ~2h). Using the datetime injected in the log of the builds is not really an option because we are using 4 different Jenkins instance (the older one is Jenkins v1.549 !) and we prefer not to maintain different analyse script when one do the job, and for now the simple timestamper REST API ".../timestamps/" was the only way to get the same result page for those different Jenkins versions.

             
            basil Basil Crow made changes -
            Link This issue is caused by JENKINS-48344 [ JENKINS-48344 ]
            basil Basil Crow made changes -
            Summary Timestamper REST API doesn't work since version 1.9 Timestamper REST API doesn't work for Pipeline jobs since version 1.9
            basil Basil Crow made changes -
            Summary Timestamper REST API doesn't work for Pipeline jobs since version 1.9 Timestamper API doesn't work for Pipeline jobs since version 1.9
            basil Basil Crow made changes -
            Summary Timestamper API doesn't work for Pipeline jobs since version 1.9 Timestamper scripting API doesn't work for Pipeline jobs since version 1.9
            basil Basil Crow made changes -
            Assignee Steven G Brown [ stevengbrown ] Basil Crow [ basil ]
            basil Basil Crow made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            basil Basil Crow made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            basil Basil Crow made changes -
            Remote Link This issue links to "jenkinsci/timestamper-plugin#47 (Web Link)" [ 24509 ]
            basil Basil Crow made changes -
            Status In Review [ 10005 ] Fixed but Unreleased [ 10203 ]
            Resolution Fixed [ 1 ]
            basil Basil Crow made changes -
            Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]
            Released As 1.11.1

              People

              • Assignee:
                basil Basil Crow
                Reporter:
                thoudayer T. Houdayer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: