fastlane-plugin-cordova
fastlane-plugin-cordova copied to clipboard
Output variable is not accessible
Documentation
fastlane actions cordova
+------------------------------------+----------------------------------------------------+
| cordova Output Variables |
+------------------------------------+----------------------------------------------------+
| Key | Description |
+------------------------------------+----------------------------------------------------+
| CORDOVA_ANDROID_RELEASE_BUILD_PATH | Path to the signed release APK if it was generated |
| CORDOVA_IOS_RELEASE_BUILD_PATH | Path to the signed release IPA if it was generated |
+------------------------------------+----------------------------------------------------+
Access the output values using `lane_context[SharedValues::VARIABLE_NAME]`
Fastfile
cordova(platform: 'ios', type: 'development', team_id: 'xxxxxxxxxx', release: false)
UI.message(['[Build Path]', lane_context[SharedValues::CORDOVA_IOS_RELEASE_BUILD_PATH]].join(': '))
UI.message(['[Build Path From ENV]', ENV['CORDOVA_IOS_RELEASE_BUILD_PATH']].join(': '))
Output
[08:03:54]: [Build Path]:
[08:03:54]: [Build Path From ENV]: ./platforms/ios/build/device/Example.ipa
Issue
As per documentation lane_context[SharedValues::CORDOVA_IOS_RELEASE_BUILD_PATH]
should work but it's returning blank, instead Output variables accessible over environment variables e.g. ENV['CORDOVA_IOS_RELEASE_BUILD_PATH']
Solution
Either to update documentation or make it accessible as per documentation over lane_context
Hi @jay2503, sorry for answering so late, and thanks for posting the issue!
I don't have the time right now to implement this, but you have the right idea in how to do this. Do you want to submit a PR? I'd be happy to help you out and merge :)