https://github.com/shadowmanpat/FastlaneJenkinsIosTest.git
Fastile
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
default_platform(:ios)
before_all do
Dotenv.load ".env.secret"
end
desc "Create on Developer Portal and App Store Connect"
lane :create_app do
create_app_online # produce
end
platform :ios do
before_all do
Dotenv.load ".env.ios"
end
desc "Sync signing"
lane :signing do
sync_code_signing # match
mapping = Actions.lane_context[
SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING
]
update_code_signing_settings(
profile_name: mapping[ENV['MATCH_APP_IDENTIFIER']]
)
puts(“ Fastlane Sync signing”)
end
desc "Build binary"
lane :build do
signing
build_ios_app #gym
puts(“ Hello Fastlane Build binary”)
end
desc "Release"
lane :release do
build
upload_to_app_store #deliver
puts(“ Hello Fastlane Release”)
end
end
.env file
#Apple Account
[email protected]
FASTLANE_TEAM_NAME=Nikolaos Agas
FASTLANE_ITC_TEAM_NAME=Nikolaos Agas
PRODUCE_APP_IDENTIFIER=com.nickagas.FastlaneJenkinsTest
PRODUCE_APP_NAME=Fastlane Jenkins Test Nagas
PRODUCE_VERSION=0.1.0
PRDUCE_SKU=NIKOLAOS_AGAS_JENKINS_TEST
PRODUCE_PLATFORMS=ios
[email protected]
[email protected]:shadowmanpat/fastlane_match_repo.git
MATCH_APP_IDENTIFIER=com.nickagas.FastlaneJenkinsTest
MATCH_TYPE=appstore
#Deliver
DELIVER_APP_IDENTIFIER=com.nickagas.FastlaneJenkinsTest
DELIVER_TEAM_NAME=Nikolaos Agas
DELIVER_DEV_PORTAL_TEAM_NAME=Nikolaos Agas
DELIVER_RUN_PRECHECK_BEFORE_SUBMIT=false
DELIVER_SKIP_SCREENSHOTS=true
DELIVER_SKIP_METADATA=true
#DELIVER - A
DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS=-t Aspera
.env.ios file
MATCH_PLATFORM=ios
FL_PROJECT_SIGNING_PROJECT_PATH=FastlaneJenkinsTest.xcodeproj
FL_PROJECT_SIGNING_TARGETS=FastlaneJenkinsTest
FL_PROJECT_SIGNING_BUILD_CONFIGURATIONS=Release
FL_PROJECT_USE_AUTOMATIC_SIGNING=false
FL_CODE_SIGN_IDENTITY=Apple Distribution
GYM_SCHEME=FastlaneJenkinsTest
GYM_EXPORT_METHOD=app-store
GYM_OUTPUT_DIRECTORY=build/ios
DELIVER_PLATFORM=ios