Skip to content

Commit cf69e3d

Browse files
committed
ci: raise error in Fastlane side if unexpected or not suitable OUDS version for app
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
1 parent 4c689a2 commit cf69e3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DesignToolbox/fastlane/Fastfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ platform :ios do
319319
set_info_plist_value(path: "#{Dir.pwd}/../#{OUDS_PROJECT_NAME}/Info.plist", key: "OUDSSDKVersion", value: "#{sdk_version}")
320320
rescue => error
321321
puts "❌ Error: Not possible to get branch and revision or version and revision for OUDS iOS Swift Package in Package.resolved for beta build"
322+
raise Exception.new "Undefined OUDS SDK package version"
322323
end
323324

324325
# Beta app must point to OUDS iOS develop branch
@@ -327,6 +328,7 @@ platform :ios do
327328
else
328329
puts "❌ Error: The beta code base of the app does not point to an OUDS iOS Swfit Package develop branch"
329330
publish_mattermost_notification("📦 🚨 @channel The beta code base of the app does not point to an OUDS iOS Swfit Package develop branch (:beta)")
331+
raise Exception.new "Not suitable OUDS SDK package version"
330332
end
331333
end
332334

@@ -351,6 +353,7 @@ platform :ios do
351353
set_info_plist_value(path: "#{Dir.pwd}/../#{OUDS_PROJECT_NAME}/Info.plist", key: "OUDSSDKVersion", value: "#{sdk_version}")
352354
rescue => error
353355
puts "❌ Error: Not possible to get branch and revision or version and revision for OUDS iOS Swift Package in Package.resolved for stable build"
356+
raise Exception.new "Undefined OUDS SDK package version"
354357
end
355358

356359
# Stable app must point to OUDS iOS version
@@ -366,6 +369,7 @@ platform :ios do
366369
else
367370
puts "❌ Error: The stable code base of the app does not point to an OUDS iOS Swfit Package version tag"
368371
publish_mattermost_notification("📦 🚨 @channel The stable code base of the app does not point to an OUDS iOS Swfit Package version tag (:stable)")
372+
raise Exception.new "Not suitable OUDS SDK package version"
369373
end
370374
end
371375

0 commit comments

Comments
 (0)