Does XCode plugin read environment vars?

80 views
Skip to first unread message

David Clark

unread,
May 7, 2013, 10:27:06 PM5/7/13
to jenkins...@googlegroups.com
Hello,

Should the XCode plugin be able to read environment vars for its configuration?

E.g. I have set and environment with the EnvInject plugin, so I have Environment=Stage, then in the XCode "Configuration" item I have specified, ${Environment} - the build seems to work, choosing the correct configuration and creating the build dir, but when it comes to delete all the *.ipa files (is this before the archiving?) it fails with an error:

Cannot remove *.ipa files from a non-existing directory: /Users/Shared/Jenkins/Home/jobs/HotelSearch_iPhone_stage/workspace/build/${Environment}-iphoneos
Packaging IPA
FATAL: null
java.lang.NullPointerException
at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:421)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
at hudson.model.Run.execute(Run.java:1575)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:241)

Which makes it look to me like the ${Environment} has just not been expanded for this task.


Thanks

--
David

Stephen Connolly

unread,
May 8, 2013, 2:39:58 AM5/8/13
to jenkins...@googlegroups.com
If the Xcode plugin does not depend on token-macro then it is 99% certan to not support expansion...

Now I am 99.5% certain that supporting expansion is a good and desirable thing for this plugin

Hope that let's you find your answer
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
Sent from my phone

David Clark

unread,
May 8, 2013, 3:35:36 AM5/8/13
to jenkins...@googlegroups.com
Yeah, just looked, it does depend on token-macro.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jerome Lacoste

unread,
May 22, 2013, 12:19:16 PM5/22/13
to jenkins...@googlegroups.com
On Wednesday, May 8, 2013 9:35:36 AM UTC+2, David Clark wrote:
Yeah, just looked, it does depend on token-macro.

David

Sorry for the late answer, I batch my readings of this group...

Keyword expansion had been implemented but not released. The plugin version that supports this feature was released on the 16th of May. If I recall this should also contain the fix for the NPE you had.


Please report any issue you encounter. I am done improving the testflight plugin for now so my development effort will come back to the xcode one.

Jerome
Reply all
Reply to author
Forward
0 new messages