Avoid duplication between platform and sdk jobs
Since the sdk jobs had to deal with multiple artifacts/branches (Sdk, Sdk.Debug and Sdk.Sources), both the build and publish jobs got completely duplicated from the platform jobs.
Refactor things so that it's sufficient to customize a variable and any duplication is avoided.