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

«by build results» shortcut link cannot be added

      I tried to change the failed shortcut link to select both failed and unstable builds but it did not work (might be another bug).

      So I deleted this shortcut link and then wanted to add separate ones for failed and unstable, but selecting «Add shortcut link>By build result» does nothing.

      Adding links by combination filters works fine.

          [JENKINS-42626] «by build results» shortcut link cannot be added

          Côme Chilliet created issue -
          ikedam made changes -
          Assignee New: ikedam [ ikedam ]

          ikedam added a comment -

          This is caused for the following exception:

          Caused by: java.lang.NullPointerException: Cannot get property 'resultsToCheck' on null object
                  at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60)
                  at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:172)
                  at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:47)
                  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296)
                  at config$_run_closure3.doCall(config.groovy:39)
                  at config$_run_closure3.doCall(config.groovy)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:498)
                  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
                  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
                  at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
                  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
                  at groovy.lang.Closure.call(Closure.java:414)
                  at groovy.lang.Closure.call(Closure.java:408)
                  at org.kohsuke.stapler.jelly.groovy.JellyBuilder$1.run(JellyBuilder.java:264)
                  at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
                  at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
                  at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
                  ... 99 more
          

          (config.groovy is https://github.com/jenkinsci/matrix-combinations-plugin/blob/matrix-combinations-parameter-1.1.0/src/main/resources/hudson/plugins/matrix_configuration_parameter/shortcut/ResultShortcut/config.groovy )

          ikedam added a comment - This is caused for the following exception: Caused by: java.lang.NullPointerException: Cannot get property 'resultsToCheck' on null object at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60) at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:172) at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296) at config$_run_closure3.doCall(config.groovy:39) at config$_run_closure3.doCall(config.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024) at groovy.lang.Closure.call(Closure.java:414) at groovy.lang.Closure.call(Closure.java:408) at org.kohsuke.stapler.jelly.groovy.JellyBuilder$1.run(JellyBuilder.java:264) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) ... 99 more (config.groovy is https://github.com/jenkinsci/matrix-combinations-plugin/blob/matrix-combinations-parameter-1.1.0/src/main/resources/hudson/plugins/matrix_configuration_parameter/shortcut/ResultShortcut/config.groovy )
          ikedam made changes -
          Environment New: matrix-combinations-parameter-1.1.0
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          ikedam made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          ikedam added a comment -

          ikedam added a comment - https://github.com/jenkinsci/matrix-combinations-plugin/pull/20

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/resources/hudson/plugins/matrix_configuration_parameter/shortcut/ResultShortcut/config.groovy
          http://jenkins-ci.org/commit/matrix-combinations-plugin/b5defc02dfb7ad6b8b3d098c0446fe716d1dbf6f
          Log:
          [FIXED JENKINS-42626] Avoid NPE when adding "By build result"

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/resources/hudson/plugins/matrix_configuration_parameter/shortcut/ResultShortcut/config.groovy http://jenkins-ci.org/commit/matrix-combinations-plugin/b5defc02dfb7ad6b8b3d098c0446fe716d1dbf6f Log: [FIXED JENKINS-42626] Avoid NPE when adding "By build result"
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/resources/hudson/plugins/matrix_configuration_parameter/shortcut/ResultShortcut/config.groovy
          http://jenkins-ci.org/commit/matrix-combinations-plugin/1f2359f2b40a22e6e36ed01df9fbab75faea8030
          Log:
          Merge pull request #20 from ikedam/feature/JENKINS-42626_NpeOnByBuildResults

          [FIXED JENKINS-42626] Avoid NPE when adding "By build result"

          Compare: https://github.com/jenkinsci/matrix-combinations-plugin/compare/e823701d5cb0...1f2359f2b40a

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/resources/hudson/plugins/matrix_configuration_parameter/shortcut/ResultShortcut/config.groovy http://jenkins-ci.org/commit/matrix-combinations-plugin/1f2359f2b40a22e6e36ed01df9fbab75faea8030 Log: Merge pull request #20 from ikedam/feature/ JENKINS-42626 _NpeOnByBuildResults [FIXED JENKINS-42626] Avoid NPE when adding "By build result" Compare: https://github.com/jenkinsci/matrix-combinations-plugin/compare/e823701d5cb0...1f2359f2b40a

          ikedam added a comment -

          Fixed in matrix-combinations-parameter-1.1.1.
          It will be available in the update center in a day.
          Please try that.

          ikedam added a comment - Fixed in matrix-combinations-parameter-1.1.1. It will be available in the update center in a day. Please try that.
          ikedam made changes -
          Assignee Original: ikedam [ ikedam ] New: Côme Chilliet [ mcmic ]

            mcmic Côme Chilliet
            mcmic Côme Chilliet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: