As part of the countinues integration process of my iPhone application, I want to create a process that will automatically upload the app (.ipa) file to the apple app store.
The previous reply does not work with the new iTunes Connect any more.
You need to use the iTunes Transporter
to upload your app to iTunes Connect. Check out the source code of deliver on GitHub: https://github.com/fastlane/fastlane/blob/master/fastlane_core/lib/fastlane_core/itunes_transporter.rb
You can use deliver to automatically upload new updates to the App Store: https://fastlane.tools/deliver