I'm building a Jenkins setup to automate the our iOS (Xcode) builds.
The flow right now is as follows:
- Build is triggered remotely. Passing the app's name, bundle ID, provisioning profile URL (among other data).
- Jenkins fetches the latest codebase version from git.
- A Python script is run to edit the app's Info.plist file based on the data provided in the trigger. This Python script also installs the provisioning profile using this approach.
- Jenkins uses the Xcode Plugin to build the project.
The Xcode Plugin allows you to specify the provisioning profile UUID to use to build the app. The Python file in step 3 gets this UUID. So now what I need is to save that UUID so it's accessible in a normal text form for the Xcode Plugin to use.
I've used the EnvInject Plugin to create and set an environment variable, which works and is usable in the Xcode Plugin's. But I cannot set this environment variable from any script (Python or Shell) while the job is running, it can only be hard-set in the job's configuration page.
Hope someone can help. Thanks!