Skip to content

Commit

Permalink
TeamID&TeamName parameter check (#22)
Browse files Browse the repository at this point in the history
* TeamID paramter check

* code clean-up

* code clean-up
  • Loading branch information
trapacska authored and godrei committed Jan 25, 2017
1 parent 5525278 commit 3b5430e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git

app:
envs:
- STEP_VERSION: 2.8.1
- STEP_VERSION: 2.8.2

- SAMPLE_APP_URL: https://gitlab.com/bitrise/Bitrise-iTunesConnectBetaTest.git
- BITRISE_PROJECT_PATH: ./Bitrise-iTunesConnectBetaTest/Bitrise-iTunesConnectBetaTest.xcodeproj
Expand Down
11 changes: 7 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,15 @@ This means that when the API changes
"--app", configs.AppID,
}

if configs.TeamID != "" {
args = append(args, "--team_id", configs.TeamID)
}

if configs.TeamName != "" {
args = append(args, "--team_name", configs.TeamName)

//warn user if TeamID is also set
if configs.TeamID != "" {
log.Warnf("TeamName parameter specified, TeamID will be ignored")
}
} else if configs.TeamID != "" {
args = append(args, "--team_id", configs.TeamID)
}

if configs.IpaPath != "" {
Expand Down

0 comments on commit 3b5430e

Please sign in to comment.