Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18783

CLI: Using --username and --password for appc CLI login gives a keystore error when building for Android

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.0.0
    • Fix Version/s: Release 4.0.0
    • Component/s: CLI
    • Labels:
    • Environment:

      Titanium SDK: 4.0.0.Beta2
      Appc NPM: 0.3.37
      Appc CLI: 0.2.230
      Titanium CLI: 3.4.2

    • Sprint:
      2015 Sprint 07 Tooling

      Description

      When using the username and password arguments as a way to log on to the appc CLI when using appc run to run an app for Android, the password argument is passed through to ti build, which then gives a keystore error.

      $ appc run --username nboxhallburnett@appcelerator.com --password *********
      Appcelerator Command-Line Interface, version 0.2.230
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
      ? Into which organization would you like to login? ONEOK-for-testing-Org
      ? Into which organization would you like to login? ONEOK-for-testing-Org
      Titanium Command-Line Interface, CLI version 4.0.0-beta3, Titanium SDK version 4.0.0.Beta2
      Copyright (c) 2012-2015, Appcelerator, Inc.  All Rights Reserved.
       
      Please report bugs to http://jira.appcelerator.org/
       
      Target platform to build for:
       1)  android
       2)  ios
       3)  mobileweb
      Enter # or platform name: 1
       
      [INFO]  tiapp.xml <sdk-version> set to 3.5.0.v20150106102524, but current Titanium SDK set to 4.0.0.Beta2
      [INFO]  Forking correct SDK command: "/usr/local/Cellar/node/0.10.32/bin/node" "/Users/nboxhallburnett/.appcelerator/install/0.2.230/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium" "build" "--sdk" "3.5.0.v20150106102524" "--config-file" "/var/folders/v6/rswq9vb91k5399p6kvvvdqp40000gp/T/build-1428367059493.json" "--platform" "android" "--project-dir" "/Users/nboxhallburnett/Documents/Git/360_qe/DashboardUIAutomation/utils/assets/mobile_app" "--log-level" "info" "--android-sdk" "/Users/nboxhallburnett/Library/Android-SDK-macOSX" "--store-password" "*******" "--target" "emulator" "--password" "*******"
       
      [ERROR] Please specify the path to your keystore file
       
      What is the keystore's password?:
      

      This can also be reproduced by using the ti build command on its own:

      $ ti build --username nboxhallburnett@appcelerator.com --password *********
      Titanium Command-Line Interface, CLI version 3.4.2, Titanium SDK version 4.0.0.Beta2
      Copyright (c) 2012-2015, Appcelerator, Inc.  All Rights Reserved.
       
      Please report bugs to http://jira.appcelerator.org/
       
      Target platform to build for:
       1)  android
       2)  ios
       3)  mobileweb
      Enter # or platform name: 1
       
      [ERROR] Please specify the path to your keystore file
       
      What is the keystore's password?:
      

      Steps to reproduce:
      1. Navigate to, or create a new titanium application
      2. Run appc run --username (username) --password (password)
      3. When prompted, select Android as the target platform
      Actual results:

      You will be shown an error asking you to state the path to your keystore, and be prompted for the keystore password.

      Expected results:

      The build will continue as expected, not requesting a keystore path or password.

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              nboxhallburnett Nathan Boxhall-Burnett
              Reviewer:
              Ingo Muschenetz
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-19847
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code