java.lang.IllegalStateException: /local/opt/jenkins/8060/jenkins_home/jobs/full-SC-w2012-vc12-x86/builds/833 already existed; will not overwite with full-SC-w2012-vc12-x86 #833

Jenkins JIRA | Tony Wallace | 1 year ago
  1. 0

    Jenkins 1.609.2 LTS with view-job-filters plugin 1.27 (plugin includes build filter (wrapper) column). Other plugins are up-to-date w.r.t. LTS versions. Oracle Java 7u75. See also JENKINS-21862 1. Add a new list view (in "My Views") Select "filter build queue" and "filter build executors" "job filters" - All selected jobs. Do not select projects by checkbox. Do select "Use regex to include jobs into the view" and enter regex. Add new column "build parameters", showing value of parameter GERRIT_BRANCH. Result: (a) The view includes the expected list of projects selected by job name, with GERRIT_BRANCH column showing different values depending on the last completed build of each project. Good. 2. Edit view and add a new "parameterized jobs filter" - parameter name is "GERRIT_BRANCH", matching value is "RB12.34", all options un-checked, match type is "exclude unmatched" Result: (a) The view's project list includes fewer projects, only those where GERRIT_BRANCH matched RB12.34 in the last completed build. Good. (b) The Build History only includes builds where GERRIT_BRANCH matched. Good. 3. Edit view, go to parameterized jobs filter, select "match against this many previous builds", blank or zero for all Result: (a) The view's project list includes more projects, with GERRIT_BRANCH column showing different values depending on the last completed build of each project. Good. (b) The Build History now includes builds that should have been filtered by the parameterized jobs filter. {color:red}*Bad.*{color} 4. Edit view and add a new build filter (wrapper) column, select "build parameters", show the single parameter GERRIT_BRANCH. This is the same as the column we added before, except this is inside the build filter wrapper. Result: (a) the new filtered build parameters column is empty, when it should show the same GERRIT_BRANCH as the unfiltered Build Parameters column. {color:red}*Bad.*{color} (b) The jenkins server log shows exceptions like below, one for each project in the View's project list: Aug 25, 2015 9:35:10 AM WARNING hudson.ExpressionFactory2$JexlExpression evaluate Caught exception evaluating: it.getBuildParameters(job) in /user/haha/my-views/view/hoho/. Reason: java.lang.IllegalStateException: /local/opt/jenkins/8060/jenkins_home/jobs/full-SC-w2012-vc12-x86/builds/833 already existed; will not overwite with full-SC-w2012-vc12-x86 #833 java.lang.IllegalStateException: /local/opt/jenkins/8060/jenkins_home/jobs/full-SC-w2012-vc12-x86/builds/833 already existed; will not overwite with full-SC-w2012-vc12-x86 #833 at hudson.model.RunMap.put(RunMap.java:187) at hudson.views.BuildFilterColumn$JobWrapper._getRuns(BuildFilterColumn.java:125) at hudson.model.Job.getLastBuild(Job.java:858) at jenkins.plugins.extracolumns.BuildParametersColumn.getBuildParameters(BuildParametersColumn.java:63) ... much more traceback

    Jenkins JIRA | 1 year ago | Tony Wallace
    java.lang.IllegalStateException: /local/opt/jenkins/8060/jenkins_home/jobs/full-SC-w2012-vc12-x86/builds/833 already existed; will not overwite with full-SC-w2012-vc12-x86 #833
  2. 0

    [JIRA] [view-job-filters-plugin] (JENKINS-30182) view-job-filters plugin, parameterized jobs filter, does not work. exceptions thrown from build filter (wrapper) column

    Google Groups | 1 year ago | anthonyle...@gmail.com (JIRA)
    java.lang.IllegalStateException: /local/opt/jenkins/8060/jenkins_home/jobs/full-SC-w2012-vc12-x86/builds/833 already existed; will not overwite with full-SC-w2012-vc12-x86 #833
  3. 0

    Jenkins 1.609.2 LTS with view-job-filters plugin 1.27 (plugin includes build filter (wrapper) column). Other plugins are up-to-date w.r.t. LTS versions. Oracle Java 7u75. See also JENKINS-21862 1. Add a new list view (in "My Views") Select "filter build queue" and "filter build executors" "job filters" - All selected jobs. Do not select projects by checkbox. Do select "Use regex to include jobs into the view" and enter regex. Add new column "build parameters", showing value of parameter GERRIT_BRANCH. Result: (a) The view includes the expected list of projects selected by job name, with GERRIT_BRANCH column showing different values depending on the last completed build of each project. Good. 2. Edit view and add a new "parameterized jobs filter" - parameter name is "GERRIT_BRANCH", matching value is "RB12.34", all options un-checked, match type is "exclude unmatched" Result: (a) The view's project list includes fewer projects, only those where GERRIT_BRANCH matched RB12.34 in the last completed build. Good. (b) The Build History only includes builds where GERRIT_BRANCH matched. Good. 3. Edit view, go to parameterized jobs filter, select "match against this many previous builds", blank or zero for all Result: (a) The view's project list includes more projects, with GERRIT_BRANCH column showing different values depending on the last completed build of each project. Good. (b) The Build History now includes builds that should have been filtered by the parameterized jobs filter. {color:red}*Bad.*{color} 4. Edit view and add a new build filter (wrapper) column, select "build parameters", show the single parameter GERRIT_BRANCH. This is the same as the column we added before, except this is inside the build filter wrapper. Result: (a) the new filtered build parameters column is empty, when it should show the same GERRIT_BRANCH as the unfiltered Build Parameters column. {color:red}*Bad.*{color} (b) The jenkins server log shows exceptions like below, one for each project in the View's project list: Aug 25, 2015 9:35:10 AM WARNING hudson.ExpressionFactory2$JexlExpression evaluate Caught exception evaluating: it.getBuildParameters(job) in /user/haha/my-views/view/hoho/. Reason: java.lang.IllegalStateException: /local/opt/jenkins/8060/jenkins_home/jobs/full-SC-w2012-vc12-x86/builds/833 already existed; will not overwite with full-SC-w2012-vc12-x86 #833 java.lang.IllegalStateException: /local/opt/jenkins/8060/jenkins_home/jobs/full-SC-w2012-vc12-x86/builds/833 already existed; will not overwite with full-SC-w2012-vc12-x86 #833 at hudson.model.RunMap.put(RunMap.java:187) at hudson.views.BuildFilterColumn$JobWrapper._getRuns(BuildFilterColumn.java:125) at hudson.model.Job.getLastBuild(Job.java:858) at jenkins.plugins.extracolumns.BuildParametersColumn.getBuildParameters(BuildParametersColumn.java:63) ... much more traceback

    Jenkins JIRA | 1 year ago | Tony Wallace
    java.lang.IllegalStateException: /local/opt/jenkins/8060/jenkins_home/jobs/full-SC-w2012-vc12-x86/builds/833 already existed; will not overwite with full-SC-w2012-vc12-x86 #833
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      /local/opt/jenkins/8060/jenkins_home/jobs/full-SC-w2012-vc12-x86/builds/833 already existed; will not overwite with full-SC-w2012-vc12-x86 #833

      at hudson.model.RunMap.put()
    2. Hudson
      Job.getLastBuild
      1. hudson.model.RunMap.put(RunMap.java:187)
      2. hudson.views.BuildFilterColumn$JobWrapper._getRuns(BuildFilterColumn.java:125)
      3. hudson.model.Job.getLastBuild(Job.java:858)
      3 frames
    3. jenkins.plugins.extracolumns
      BuildParametersColumn.getBuildParameters
      1. jenkins.plugins.extracolumns.BuildParametersColumn.getBuildParameters(BuildParametersColumn.java:63)
      1 frame