[JIRA] (JENKINS-42781) Load more than 100 steps in a node

1 view
Skip to first unread message

mneale@cloudbees.com (JIRA)

unread,
Mar 14, 2017, 7:45:01 PM3/14/17
to jenkinsc...@googlegroups.com
Michael Neale created an issue
 
Jenkins / Bug JENKINS-42781
Load more than 100 steps in a node
Issue Type: Bug Bug
Assignee: Thorsten Scherler
Components: blueocean-plugin
Created: 2017/Mar/14 11:44 PM
Priority: Major Major
Reporter: Michael Neale

The api to load steps is paginated. Currently only the first page is loaded. 

When a user clicks on a node, it should load and display the steps using this pagination (ie keep loading and appending until there are no more). 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

mneale@cloudbees.com (JIRA)

unread,
Mar 14, 2017, 7:46:01 PM3/14/17
to jenkinsc...@googlegroups.com
Michael Neale updated an issue
Change By: Michael Neale
The api to load steps is paginated. Currently only the first page is loaded. 


When a user clicks on a node, it should load and display the steps using this pagination (ie keep loading and appending until there are no more). 


 

This should be able to generate loads of steps I think: 

 

Using the following pipelineScript and [https://github.com/scherler/blueocean-shared-library/commit/43d5620a42d7795b43bc829d694c3cae2a3c3919]
{code:java}
@Library('test-writer') import writeTest
import longLog
node {
    stage 'fin'
    def xml = writeTest()
    sh "echo '$xml' > TEST-some.xml"
    step([$class: 'JUnitResultArchiver', testResults: 'TEST-*.xml'])
    sh 'echo `date` fin;sleep 3; echo `date` fin;'
    sh 'echo yeah > foo.txt'
    archiveArtifacts 'foo.txt'
    longLog(10000)
    stage 'NoSteps'
}{code}

tscherler@cloudbees.com (JIRA)

unread,
Mar 15, 2017, 9:51:02 AM3/15/17
to jenkinsc...@googlegroups.com
Thorsten Scherler updated an issue
Change By: Thorsten Scherler
The api to load steps is paginated. Currently only the first page is loaded. 

When a user clicks on a node, it should load and display the steps using this pagination (ie keep loading and appending until there are no more). 

 

This should be able to generate loads of steps I think: 

 

Using the following pipelineScript and [https://github.com/scherler/blueocean-shared-library/commit/43d5620a42d7795b43bc829d694c3cae2a3c3919]
{code:java}
@Library('test-writer') import writeTest
import longLog
node {
    stage 'fin'
    def xml = writeTest()
    sh "echo '$xml' > TEST-some.xml"
    step([$class: 'JUnitResultArchiver', testResults: 'TEST-*.xml'])
    sh 'echo `date` fin;sleep 3; echo `date` fin;'
    sh 'echo yeah > foo.txt'
    archiveArtifacts 'foo.txt'
    longLog(10000 , false )
    stage 'NoSteps'
}{code}

jdumay@cloudbees.com (JIRA)

unread,
Mar 27, 2017, 9:19:10 PM3/27/17
to jenkinsc...@googlegroups.com
James Dumay updated an issue
Change By: James Dumay
Sprint: Blue Ocean 1.0-rc3 , Blue Ocean 1.0-rc4

justbimlendu@gmail.com (JIRA)

unread,
Apr 23, 2018, 3:57:02 PM4/23/18
to jenkinsc...@googlegroups.com
Bimlendu Mishra commented on Improvement JENKINS-42781
 
Re: Load more than 100 steps in a node

Is this something still looked into?

I see the nodes api being called with a limit parameter of 10000, the steps api
does not have such parameter, and it maxes out at 100.

{code:title=test100StepsLimit.groovy|borderStyle=solid}
pipeline {
agent {
label any
}

stages {
stage('200 Steps'){
steps {
script {
def range = 1..200
range.each { n ->
println n
}
}
}
}
}
}
{code}

Call for nodes API: http://localhost:8080/blue/rest/organizations/jenkins/pipelines/test100Limit/runs/4/nodes/?limit=10000

Call for steps API: http://localhost:8080/blue/rest/organizations/jenkins/pipelines/test100Limit/runs/4/nodes/6/steps/

Is there a way I can send the limits parameter to the steps API too. Or, I need to change here: https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-dashboard/src/main/js/components/karaoke/services/Augmenter.js#L83

Also is there a reason why this limit is not being passed to steps/ endpoint ?

 

justbimlendu@gmail.com (JIRA)

unread,
Apr 23, 2018, 3:59:03 PM4/23/18
to jenkinsc...@googlegroups.com
Bimlendu Mishra edited a comment on Improvement JENKINS-42781

justbimlendu@gmail.com (JIRA)

unread,
Apr 23, 2018, 3:59:04 PM4/23/18
to jenkinsc...@googlegroups.com
Bimlendu Mishra edited a comment on Improvement JENKINS-42781
Is this something still looked into?

I see the nodes api being called with a limit parameter of 10000, the steps api
does not have such parameter, and it maxes out at 100.

\{code: title=test100StepsLimit.groovy|borderStyle=solid java }

pipeline \{
  agent \{
    label any
  }

  stages \{
    stage('200 Steps')\{
      steps \{
        script \{
          def range = 1..200
          range.each \{ n ->
          println n
        }
      }
    }
  }
}
}
\{code}

Call for nodes API: [http://localhost:8080/blue/rest/organizations/jenkins/pipelines/test100Limit/runs/4/nodes/?limit=10000]

Call for steps API: [http://localhost:8080/blue/rest/organizations/jenkins/pipelines/test100Limit/runs/4/nodes/6/steps/]

Is there a way I can send the limits parameter to the steps API too. Or, I need to change here: [https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-dashboard/src/main/js/components/karaoke/services/Augmenter.js#L83]

Also is there a reason why this limit is not being passed to steps/ endpoint ?

 

abram.hemphill@gmail.com (JIRA)

unread,
Oct 9, 2019, 2:15:03 PM10/9/19
to jenkinsc...@googlegroups.com

Is there any update on this?

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages