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

Plot plugin configuration in pipeline script - run job on remote node - graph not shown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: plot-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.138.1
      Plot plugin 2.1.0
      Jenkins server runs on Windows Server 2008
      Agent runs on Window 10
    • Similar Issues:

      Description

      Hi,

      We run JUnit automation using Jenkins Job pipline script. The automation is running on remote computer (agent) and updates csv file in D:/Jenkins/workspace. The file IS updated every run. The data format of the file 

      Date,Down,Up
      20181007 16:03,7.70,3.10
      20181007 16:12,7.69,2.99
      20181008 08:05,7.62,3.58
      20181008 08:13,7.72,3.62
      20181008 08:26,7.72,3.48

      In pipeline script we added the following plot configuration to the section that runs the test

       

      stage ('Test') {
       agent {node <remote node>}
       steps {
           //here we run scenario using maven - scv file updated
       }
      post {
      success{
       plot csvFileName: 'plot-2e2a99a0-2354-42a5-a308-664cfedeac47.csv', 
       csvSeries: [[
       displayTableFlag: false, 
       exclusionValues: 'Date', 
       file: "../SpeedResults.csv", 
       inclusionFlag: 'EXCLUDE_BY_STRING', 
       url: '']], 
       group: 'InternetSpeedTestGroup', 
       numBuilds: '10', 
       style: 'line', 
       title: 'InternetSpeedTest', 
       yaxis: 'Speed(mbps)', 
       yaxisMaximum: '20'
       }
       }
      }
      

      Plot is empty 

      What is wrong with the configuration? It's the first time we try to use plot-plugin, so need your help. Should something special be configured if the workspace is located on remote?

        Attachments

          Activity

          Hide
          lubov Lubov Shilin added a comment -

          We made it to work:

          1. It cleared the file should be located in workspace/<project> folder, so configured as
            file: "SpeedResults.csv",
          2.  In addition plot creation should be the separate stage with its own step. It worked when we configured as follows:
                 stage ('Building plot') {
                      agent {node <remote node>}           
                      steps {
                              plot csvFileName: 'plot-041d39c5-d0b5-46b4-8465-55c5f2a48b2d.csv', 
                                  csvSeries: [[
                                      width: 1600,
                                      height: 1600,
                                  	displayTableFlag: false, 
                                  	exclusionValues: '', 
                                  	file: 'SpeedResults.csv', 
                                  	inclusionFlag: 'OFF', 
                                  	url: '']], 
                                  	group: 'InternetSpeedTestGroup', 
                                  	keepRecords: true,
                                          numBuilds: '50', 
                                  	style: 'lineSimple', 
                                  	title: 'Cellact COM Internet Speed Test',
                                  	yaxis: 'Speed(mbps)'
                          }          
                  }
          

           

          Show
          lubov Lubov Shilin added a comment - We made it to work: It cleared the file should be located in workspace/<project> folder, so configured as file: "SpeedResults.csv",  In addition plot creation should be the separate stage with its own step. It worked when we configured as follows: stage ( 'Building plot' ) { agent {node <remote node>} steps { plot csvFileName: 'plot-041d39c5-d0b5-46b4-8465-55c5f2a48b2d.csv' , csvSeries: [[ width: 1600, height: 1600, displayTableFlag: false , exclusionValues: '', file: 'SpeedResults.csv' , inclusionFlag: 'OFF' , url: '']], group: 'InternetSpeedTestGroup' , keepRecords: true , numBuilds: '50' , style: 'lineSimple' , title: 'Cellact COM Internet Speed Test' , yaxis: 'Speed(mbps)' } }  

            People

            • Assignee:
              vgaidarji Veaceslav Gaidarji
              Reporter:
              lubov Lubov Shilin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: