[JIRA] (JENKINS-38631) NullPointerException when packaging IPA (XCode plugin 1.4.11 & Jenkins 2.23)

2 views
Skip to first unread message

susaninnezloy@gmail.com (JIRA)

unread,
Sep 30, 2016, 11:14:03 AM9/30/16
to jenkinsc...@googlegroups.com
Ivan Fedorov created an issue
 
Jenkins / Bug JENKINS-38631
NullPointerException when packaging IPA (XCode plugin 1.4.11 & Jenkins 2.23)
Issue Type: Bug Bug
Assignee: Unassigned
Components: xcode-plugin
Created: 2016/Sep/30 3:13 PM
Environment: XCode plugin 1.4.11
Jenkins 2.23
Xcode 7.3.1
Priority: Blocker Blocker
Reporter: Ivan Fedorov

When packaging an IPA file I get a NullPointerException
Packaging IPA
$ /usr/libexec/PlistBuddy -c "Print :CFBundleVersion" /Users/jenkins/workspace/...../<MyApp>.app/Info.plist
Packaging <MyApp>.app => /Users/jenkins/workspace/...../<MyApp>.ipa
ERROR: Build step failed with exception
java.lang.NullPointerException
at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:738)
at org.jenkinsci.plugins.conditionalbuildstep.BuilderChain.perform(BuilderChain.java:71)
at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154)
at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
at org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.perform(ConditionalBuilder.java:133)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.build(Build.java:205)
at hudson.model.Build$BuildExecution.doRun(Build.java:162)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1720)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

dpfeiffer@gowithfloat.com (JIRA)

unread,
Sep 30, 2016, 12:52:02 PM9/30/16
to jenkinsc...@googlegroups.com
Daniel Pfeiffer commented on Bug JENKINS-38631
 
Re: NullPointerException when packaging IPA (XCode plugin 1.4.11 & Jenkins 2.23)

Try editing the job then hitting save (without making any changes). I believe the NPE is caused by a new setting in 1.4.11 which provides no default value (specifically the signIpaOnXcrun option). Simply re-saving the job configuration should workaround the issue.

susaninnezloy@gmail.com (JIRA)

unread,
Oct 3, 2016, 5:23:01 AM10/3/16
to jenkinsc...@googlegroups.com

Yes, you are right. After re-saving the problem has gone.

susaninnezloy@gmail.com (JIRA)

unread,
Oct 3, 2016, 5:25:05 AM10/3/16
to jenkinsc...@googlegroups.com
Ivan Fedorov closed an issue as Cannot Reproduce
 
Change By: Ivan Fedorov
Status: Open Closed
Resolution: Cannot Reproduce

draltman@cisco.com (JIRA)

unread,
Nov 21, 2016, 5:45:01 AM11/21/16
to jenkinsc...@googlegroups.com
D A reopened an issue
 

Why should one resave all configurations on upgrade? And if there is no other solution is there such instruction upon upgrade?

Change By: D A
Resolution: Cannot Reproduce
Status: Closed Reopened
Reply all
Reply to author
Forward
0 new messages