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

Ignore Running Jobs does not report previous runs results

      When trying to show CI job results using this plugin we often see the status of Running. 

      However, we would like to see the previous runs results and noticed the feature of 'Ignore Running Jobs' which has the help text of 'If true then jobs are reported with the previous status and results. Moreover an asterisk at the side of status declares that the job is still running.'

       

      When setting this value to true, the running jobs are simply omitted from the resulting report and email.

       

      Expected: all jobs shown in report with last completed run results shown

       

      Actual:

      Ignore Running set to FALSE

      Ignore Running set to TRUE

          [JENKINS-71019] Ignore Running Jobs does not report previous runs results

          Hi, is the version of the plugin the latest 1.2.11? 

          I see that if you set "Ignore Running to TRUE" then the report should display all running jobs with the previous result and an asterisk, like : 

          Socrates Sidereas added a comment - Hi, is the version of the plugin the latest 1.2.11?  I see that if you set "Ignore Running to TRUE" then the report should display all running jobs with the previous result and an asterisk, like : 

          John added a comment -

          hi, yes, we are on latest version

          John added a comment - hi, yes, we are on latest version

          John added a comment -

          socrates any updates or ideas on what else to try? happy to have a chat

          John added a comment - socrates any updates or ideas on what else to try? happy to have a chat

          John added a comment -

          socrates pinging again after another week?  any other suggestions? I see you moved this to be no longer in-progress.

          John added a comment - socrates pinging again after another week?  any other suggestions? I see you moved this to be no longer in-progress.

          John added a comment -

          socrates trying to ping you again.  I would be happy to discuss further to understand why my instance isn't behaving as expected.

          John added a comment - socrates trying to ping you again.  I would be happy to discuss further to understand why my instance isn't behaving as expected.

          Hi John, sorry I didn't have the time to check it,

          It's a strange issue, I guess it's a 'mix' of configuration settings and somehow it doesn't work? I want to search in code,  hopefully, by the end of this week, I will have an outcome.

          Just one question, are you using the UI or a pipeline syntax? 

           

          Socrates Sidereas added a comment - Hi John, sorry I didn't have the time to check it, It's a strange issue, I guess it's a 'mix' of configuration settings and somehow it doesn't work? I want to search in code,  hopefully, by the end of this week, I will have an outcome. Just one question, are you using the UI or a pipeline syntax?   

          John added a comment -

          We are using the jenkins UI to configure the aggregator.

          John added a comment - We are using the jenkins UI to configure the aggregator.

          John added a comment -

          socrates any update?  what 'mix' of config settings are you thinking about.  I am happy to check into something or provide further insight if needed.  Thanks.

          John added a comment - socrates any update?  what 'mix' of config settings are you thinking about.  I am happy to check into something or provide further insight if needed.  Thanks.

          John added a comment -

          socrates another week has gone by.  looking for any feedback here.

          John added a comment - socrates another week has gone by.  looking for any feedback here.

          Hi, sorry for my late response again, too many things to take care of. 

          Is there any chance for the previous results of the jobs that were omitted to be in status aborted? 

          There is a case when "Ignore Running is set to true" and the plugin should check the previous status,

          but this previous status is aborted and the "Ignore Aborted" is set to true.

          Socrates Sidereas added a comment - Hi, sorry for my late response again, too many things to take care of.  Is there any chance for the previous results of the jobs that were omitted to be in status aborted?  There is a case when "Ignore Running is set to true" and the plugin should check the previous status, but this previous status is aborted and the "Ignore Aborted" is set to true.

          Fixed in latest release 1.2.12

          Socrates Sidereas added a comment - Fixed in latest release 1.2.12

          John added a comment -

          No. our previous runs do not have aborted status.  but per your message I will try to upgrade to 1.2.13 thanks

          John added a comment - No. our previous runs do not have aborted status.  but per your message I will try to upgrade to 1.2.13 thanks

          John added a comment -

          This appears to be working correctly now after the update.  Thanks

          John added a comment - This appears to be working correctly now after the update.  Thanks

          John added a comment -

          socrates after latest update, we again see 'running' jobs even though correct option is selected to show previous status.  please review.  

          John added a comment - socrates after latest update, we again see 'running' jobs even though correct option is selected to show previous status.  please review.  

          John added a comment -

          socrates any update?

          John added a comment - socrates  any update?

          John added a comment -

          socrates any update here please!?

          John added a comment - socrates any update here please!?

          Hello jvautour , you are seeing 'running' job instead of the previous status with an asterisk, right ? 

          can you please share also the rest of the configuration ? I appreciate any help you can provide. 

           

          Socrates Sidereas added a comment - Hello jvautour , you are seeing 'running' job instead of the previous status with an asterisk, right ?  can you please share also the rest of the configuration ? I appreciate any help you can provide.   

          John added a comment -

          socrates this is the same as before, many screen shots posted.  You have previously fixed it, or so I thought.  It was working agian until we upgraded to the latest.  Now only shows running again.  

          we are using Test Results Aggregator PluginVersion2.1 , and as before Ignore Running is set to True

          John added a comment - socrates this is the same as before, many screen shots posted.  You have previously fixed it, or so I thought.  It was working agian until we upgraded to the latest.  Now only shows running again.   we are using Test Results Aggregator PluginVersion2.1 , and as before Ignore Running is set to True

          Socrates Sidereas added a comment - - edited

          John, compare with previous run is set to true but you want to get the previous result when a job is running, that is the issue now, I will see what I can do 

           

          Socrates Sidereas added a comment - - edited John, compare with previous run is set to true but you want to get the previous result when a job is running, that is the issue now, I will see what I can do   

          John added a comment -

          socrates , no. from screen shot compare to previous is clearly set to FALSE.  I just want to report previous results if job is currently running, as it did before and seems to be broken again with latest release.  

          John added a comment - socrates , no. from screen shot compare to previous is clearly set to FALSE.  I just want to report previous results if job is currently running, as it did before and seems to be broken again with latest release.  

           Ignore running should always compare with the previous no matter the
          option compareWithPreviousRun

          Socrates Sidereas added a comment -  Ignore running should always compare with the previous no matter the option compareWithPreviousRun

          Hello , yes I meant false, compare with previous in your configuration is set to false but when a job is running you need the previous result. 

          I have already a fix prepared, its going to be in the next release as soon as I resolve another issue , thanks 

          Socrates Sidereas added a comment - Hello , yes I meant false, compare with previous in your configuration is set to false but when a job is running you need the previous result.  I have already a fix prepared, its going to be in the next release as soon as I resolve another issue , thanks 

            socrates Socrates Sidereas
            jvautour John
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: