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

jira-trigger-plugin used in a pipeline job is giving NullPointerException upon restart

    Details

    • Similar Issues:

      Description

      I would like to use plugin https://wiki.jenkins-ci.org/display/JENKINS/JIRA+Trigger+Plugin in a pipeline job  
      but I get following error after restart of jenkins and as a result the job is not added to the dashboard(disappear from the view )

       Failed Loading item abt-pipe-jira java.lang.NullPointerException: Cannot get property 'fullName' on null object at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60) at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:174) at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296) at com.ceilfors.jenkins.plugins.jiratrigger.JiraTrigger$JiraTriggerDescriptor.removeTrigger(JiraTrigger.groovy:144) 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.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:71) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) at com.ceilfors.jenkins.plugins.jiratrigger.JiraTrigger.stop(JiraTrigger.groovy:72) at org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty.stopTriggers(PipelineTriggersJobProperty.java:97) at org.jenkinsci.plugins.workflow.job.WorkflowJob.onLoad(WorkflowJob.java:150) at hudson.model.Items.load(Items.java:372) at jenkins.model.Jenkins$17.run(Jenkins.java:3062) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:1064) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 
      
      

        Attachments

          Issue Links

            Activity

            Hide
            pete Pete added a comment -

            Same issue here when saving Pipeline jobs with JIRA Triggers.

            Show
            pete Pete added a comment - Same issue here when saving Pipeline jobs with JIRA Triggers.
            Hide
            akashsoni1992 Akash Soni added a comment -

            Same issue here when saving Pipeline jobs with JIRA Triggers

            Show
            akashsoni1992 Akash Soni added a comment - Same issue here when saving Pipeline jobs with JIRA Triggers
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Wisen Tanasa
            Path:
            src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerTest.groovy
            http://jenkins-ci.org/commit/jira-trigger-plugin/a9544730e87943f8fb5322f243daa0565a7d7864
            Log:
            JENKINS-43642 Add failing test.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wisen Tanasa Path: src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerTest.groovy http://jenkins-ci.org/commit/jira-trigger-plugin/a9544730e87943f8fb5322f243daa0565a7d7864 Log: JENKINS-43642 Add failing test.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Wisen Tanasa
            Path:
            src/main/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTrigger.groovy
            http://jenkins-ci.org/commit/jira-trigger-plugin/9555dfb6e376a3694241863664008cb513b5fa1e
            Log:
            JENKINS-43642 Fix NPE thrown in pipeline job during restart and reconfiguration.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wisen Tanasa Path: src/main/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTrigger.groovy http://jenkins-ci.org/commit/jira-trigger-plugin/9555dfb6e376a3694241863664008cb513b5fa1e Log: JENKINS-43642 Fix NPE thrown in pipeline job during restart and reconfiguration.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Wisen Tanasa
            Path:
            build.gradle
            src/integrationTest/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerIntegrationTest.groovy
            http://jenkins-ci.org/commit/jira-trigger-plugin/8948655fc1ea35de5a7d6c07c6f9d67e46ba47c7
            Log:
            JENKINS-43642 Add Pipeline round trip integration test.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wisen Tanasa Path: build.gradle src/integrationTest/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerIntegrationTest.groovy http://jenkins-ci.org/commit/jira-trigger-plugin/8948655fc1ea35de5a7d6c07c6f9d67e46ba47c7 Log: JENKINS-43642 Add Pipeline round trip integration test.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Wisen Tanasa
            Path:
            src/integrationTest/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerIntegrationTest.groovy
            src/main/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTrigger.groovy
            src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerTest.groovy
            http://jenkins-ci.org/commit/jira-trigger-plugin/60250581ae1400a7482e3d5159285422fd0545f1
            Log:
            JENKINS-43642 Move the fix from Trigger to Descriptor.

            Updated unit test to cover the new scenario.

            Compare: https://github.com/jenkinsci/jira-trigger-plugin/compare/6dc0f8b219b3...60250581ae14

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wisen Tanasa Path: src/integrationTest/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerIntegrationTest.groovy src/main/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTrigger.groovy src/test/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerTest.groovy http://jenkins-ci.org/commit/jira-trigger-plugin/60250581ae1400a7482e3d5159285422fd0545f1 Log: JENKINS-43642 Move the fix from Trigger to Descriptor. Updated unit test to cover the new scenario. Compare: https://github.com/jenkinsci/jira-trigger-plugin/compare/6dc0f8b219b3...60250581ae14
            Hide
            ceilfors Wisen Tanasa added a comment -

            Fix is released at 0.4.2.

            Show
            ceilfors Wisen Tanasa added a comment - Fix is released at 0.4.2.

              People

              • Assignee:
                ceilfors Wisen Tanasa
                Reporter:
                kafeto Ivan Kafedzhiev
              • Votes:
                3 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: