Skip to content

Commit

Permalink
Merge pull request #67 from Microsoft/users/lukillgo/sendbundle
Browse files Browse the repository at this point in the history
#871016 Mobile: Apple App Store asks for bundle ID TestFlight
  • Loading branch information
lkillgore authored Apr 7, 2017
2 parents f98eadd + 7abac0d commit 2808b3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tasks/app-store-release/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ describe('app-store-release L0 Suite', function () {
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

tr.run();
assert(tr.ran('fastlane pilot upload -u creds-username -i mypackage.ipa -q teamId'), 'fastlane pilot upload with teamId should have been run.');
assert(tr.ran('fastlane pilot upload -u creds-username -i mypackage.ipa -q teamId -a com.microsoft.test.appId'), 'fastlane pilot upload with teamId should have been run.');
assert(tr.invokedToolCount === 3, 'should have run gem install, gem update and fastlane pilot.');
assert(tr.stderr.length === 0, 'should not have written to stderr');
assert(tr.succeeded, 'task should have succeeded');
Expand Down
2 changes: 1 addition & 1 deletion Tasks/app-store-release/Tests/L0TestFlightTeamId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ let myAnswers: string = `{
"code": 0,
"stdout": "1 gem installed"
},
"fastlane pilot upload -u creds-username -i mypackage.ipa -q teamId": {
"fastlane pilot upload -u creds-username -i mypackage.ipa -q teamId -a com.microsoft.test.appId": {
"code": 0,
"stdout": "consider it uploaded!"
}
Expand Down
2 changes: 2 additions & 0 deletions Tasks/app-store-release/app-store-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,15 @@ async function run() {
if (releaseTrack === 'TestFlight') {
// Run pilot (via fastlane) to upload to testflight
let pilotCommand: ToolRunner = tl.tool('fastlane');
let bundleIdentifier: string = tl.getInput('appIdentifier', false);
pilotCommand.arg(['pilot', 'upload', '-u', credentials.username, '-i', ipaPath]);
let usingReleaseNotes: boolean = isValidFilePath(releaseNotes);
if (usingReleaseNotes) {
pilotCommand.arg(['--changelog', fs.readFileSync(releaseNotes).toString()]);
}
pilotCommand.argIf(teamId, ['-q', teamId]);
pilotCommand.argIf(teamName, ['-r', teamName]);
pilotCommand.argIf(bundleIdentifier, ['-a', bundleIdentifier]);
pilotCommand.argIf(shouldSkipSubmission, ['--skip_submission', 'true']);
pilotCommand.argIf(shouldSkipWaitingForProcessing, ['--skip_waiting_for_build_processing', 'true']);

Expand Down

0 comments on commit 2808b3d

Please sign in to comment.