fastlane: Missing password for user running in non-interactive shell
New Issue Checklist
- [-] Updated fastlane to the latest version
- [-] I have read the Contribution Guidelines
Issue Description
I am trying to use jenkins with a master/node config. The build is to happen on the node machine. Fastlane is installed on the node machine. I ran fastlane env and added details below from node machine. I have included the Keychains and Provisioning Profiles Plugin to jenkins and tried passing the keychain with credentials using that. I have added the path to the node config for provisioning profiles on master jenkins machine.
It always fails during sigh
Missing password for user email@email.ie, and running in non-interactive shell
When I run fastlane locally on the node machine it finds the details fine. It is only when through ssh with master / node jenkins setup that it fails.
I am unsure what steps to take next to resolves this
Complete output when running fastlane, including the stack trace and command used
shell commands in jenkins
- cd dpd/
- fastlane action setup_jenkins
- fastlane hockey_staging
+ cd dpd/
+ fastlane action setup_jenkins
/Users/jenkins/Jenkins/workspace/dpd-ios-staging/dpd/fastlane/actions/increment_build_number_from_hockey.rb:4: warning: already initialized constant Fastlane::Actions::SharedValues::BUILD_NUMBER
/usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/actions/increment_build_number.rb:4: warning: previous definition of BUILD_NUMBER was here
[32mLoading documentation for setup_jenkins:[0m
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| [32msetup_jenkins[0m |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Setup xcodebuild, gym and scan for easier Jenkins integration |
| |
| - Adds and unlocks keychains from Jenkins 'Keychains and Provisioning Profiles Plugin' |
| - Sets code signing identity from Jenkins 'Keychains and Provisioning Profiles Plugin' |
| - Sets output directory to './output' (gym, scan and backup_xcarchive). |
| - Sets derived data path to './derivedData' (xcodebuild, gym, scan and clear_derived_data, carthage). |
| - Produce result bundle (gym and scan). |
| |
| This action helps with Jenkins integration. Creates own derived data for each job. All build results like IPA files and archives will be stored in the `./output` directory. |
| The action also works with [Keychains and Provisioning Profiles Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Keychains+and+Provisioning+Profiles+Plugin), selected keychain |
| will be automatically unlocked and the selected code signing identity will be used. By default this action will only work when fastlane is executed on a CI system. |
| |
| Created by [32mbartoszj[0m |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-----------------------------+-------------------------------------------------------------------+----------------------------------------------+---------------+
| [32msetup_jenkins Options[0m |
+-----------------------------+-------------------------------------------------------------------+----------------------------------------------+---------------+
| Key | Description | Env Var | Default |
+-----------------------------+-------------------------------------------------------------------+----------------------------------------------+---------------+
| [33mforce[0m | Force setup, even if not executed by Jenkins | FL_SETUP_JENKINS_FORCE | false |
| [33munlock_keychain[0m | Unlocks keychain | FL_SETUP_JENKINS_UNLOCK_KEYCHAIN | true |
| [33madd_keychain_to_search_list[0m | Add to keychain search list | FL_SETUP_JENKINS_ADD_KEYCHAIN_TO_SEARCH_LIST | replace |
| [33mset_default_keychain[0m | Set keychain as default | FL_SETUP_JENKINS_SET_DEFAULT_KEYCHAIN | true |
| [33mkeychain_path[0m | Path to keychain | KEYCHAIN_PATH | |
| [33mkeychain_password[0m | Keychain password | KEYCHAIN_PASSWORD | |
| [33mset_code_signing_identity[0m | Set code signing identity from CODE_SIGNING_IDENTITY environment | FL_SETUP_JENKINS_SET_CODE_SIGNING_IDENTITY | true |
| [33mcode_signing_identity[0m | Code signing identity | CODE_SIGNING_IDENTITY | |
| [33moutput_directory[0m | The directory in which the ipa file should be stored in | FL_SETUP_JENKINS_OUTPUT_DIRECTORY | ./output |
| [33mderived_data_path[0m | The directory where build products and other derived data will go | FL_SETUP_JENKINS_DERIVED_DATA_PATH | ./derivedData |
| [33mresult_bundle[0m | Produce the result bundle describing what occurred will be placed | FL_SETUP_JENKINS_RESULT_BUNDLE | true |
+-----------------------------+-------------------------------------------------------------------+----------------------------------------------+---------------+
More information can be found on https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
+ fastlane hockey_staging
/Users/jenkins/Jenkins/workspace/dpd-ios-staging/dpd/fastlane/actions/increment_build_number_from_hockey.rb:4: warning: already initialized constant Fastlane::Actions::SharedValues::BUILD_NUMBER
/usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/actions/increment_build_number.rb:4: warning: previous definition of BUILD_NUMBER was here
[09:11:35]: [32m-------------------------------------------------[0m
[09:11:35]: [32m--- Step: Verifying required fastlane version ---[0m
[09:11:35]: [32m-------------------------------------------------[0m
[09:11:35]: Your fastlane version 1.106.2 matches the minimum requirement of 1.32.0 ✅
[09:11:35]: [32m------------------------------[0m
[09:11:35]: [32m--- Step: default_platform ---[0m
[09:11:35]: [32m------------------------------[0m
[09:11:35]: [32mDriving the lane 'ios hockey_staging' 🚀[0m
[09:11:35]: [4m[36m$ rm -fr ../Build[0m[0m
[09:11:35]: [4m[36m$ rm -fr ../Logs[0m[0m
[09:11:35]: [4m[36m$ rm -fr ../ModuleCache[0m[0m
[09:11:35]: [4m[36m$ rm -f ../compile_commands.json[0m[0m
[09:11:35]: [4m[36m$ rm -f ../info.plist[0m[0m
[09:11:35]: [32m-----------------------------------[0m
[09:11:35]: [32m--- Step: clean_build_artifacts ---[0m
[09:11:35]: [32m-----------------------------------[0m
[09:11:35]: [32mCleaned up build artifacts 🐙[0m
[09:11:35]: [32m-------------------------------------[0m
[09:11:35]: [32m--- Step: ensure_git_status_clean ---[0m
[09:11:35]: [32m-------------------------------------[0m
[09:11:36]: [32mGit status is clean, all good! 💪[0m
[09:11:36]: [32m----------------------------[0m
[09:11:36]: [32m--- Step: bundle_install ---[0m
[09:11:36]: [32m----------------------------[0m
[09:11:36]: Gemfile not found at: '/Users/jenkins/Jenkins/workspace/dpd-ios-staging/dpd/Gemfile'
[09:11:36]: Gemfile not found at: '/Users/jenkins/Jenkins/workspace/dpd-ios-staging/dpd/gemfile'
[09:11:36]: No Gemfile found
[09:11:36]: [32m-----------------------[0m
[09:11:36]: [32m--- Step: cocoapods ---[0m
[09:11:36]: [32m-----------------------[0m
[09:11:36]: [4m[36m$ pod install[0m[0m
[09:11:36]: ▸ [35m[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.[0m
[09:11:36]: ▸ [35mConsider adding the following to ~/.profile:[0m
[09:11:36]: ▸ [35mexport LANG=en_US.UTF-8[0m
[09:11:36]: ▸ [35m[0m[0m
[09:11:59]: ▸ [35mAnalyzing dependencies[0m
[09:11:59]: ▸ [35mDownloading dependencies[0m
[09:11:59]: ▸ [35mInstalling CardIO (5.4.1)[0m
[09:11:59]: ▸ [35mInstalling Crashlytics (3.8.3)[0m
[09:11:59]: ▸ [35mInstalling DTPickerPresenter (0.2.0)[0m
[09:11:59]: ▸ [35mInstalling DateTools (1.7.0)[0m
[09:11:59]: ▸ [35mInstalling Fabric (1.6.10)[0m
[09:11:59]: ▸ [35mInstalling FirebaseAnalytics (3.4.4)[0m
[09:11:59]: ▸ [35mInstalling FirebaseCore (3.4.3)[0m
[09:11:59]: ▸ [35mInstalling FirebaseInstanceID (1.0.8)[0m
[09:11:59]: ▸ [35mInstalling Google (3.0.3)[0m
[09:11:59]: ▸ [35mInstalling GoogleAnalytics (3.17.0)[0m
[09:11:59]: ▸ [35mInstalling GoogleInterchangeUtilities (1.2.2)[0m
[09:11:59]: ▸ [35mInstalling GoogleSymbolUtilities (1.1.2)[0m
[09:11:59]: ▸ [35mInstalling GoogleUtilities (1.3.2)[0m
[09:11:59]: ▸ [35mInstalling HockeySDK (4.1.2)[0m
[09:11:59]: ▸ [35mInstalling IQKeyboardManager (4.0.7)[0m
[09:11:59]: ▸ [35mInstalling MBProgressHUD (0.9.2)[0m
[09:11:59]: ▸ [35mInstalling OMGHTTPURLRQ (3.2.0)[0m
[09:11:59]: ▸ [35mInstalling Onboard (2.3.1)[0m
[09:11:59]: ▸ [35mInstalling PayPal-iOS-SDK (2.16.0)[0m
[09:11:59]: ▸ [35mInstalling PromiseKit (3.5.1)[0m
[09:11:59]: ▸ [35mInstalling PureLayout (3.0.2)[0m
[09:11:59]: ▸ [35mInstalling RESideMenu (4.0.7)[0m
[09:11:59]: ▸ [35mInstalling REValidation (0.1.4)[0m
[09:11:59]: ▸ [35mInstalling RSDayFlow (1.6.0)[0m
[09:11:59]: ▸ [35mInstalling Reachability (3.2)[0m
[09:11:59]: ▸ [35mInstalling Reveal-iOS-SDK (1.6.2)[0m
[09:11:59]: ▸ [35mInstalling SDWebImage (3.8.2)[0m
[09:11:59]: ▸ [35mGenerating Pods project[0m
[09:12:15]: ▸ [35mIntegrating client project[0m
[09:12:16]: ▸ [35mSending stats[0m
[09:12:16]: ▸ [35mPod installation complete! There are 18 dependencies from the Podfile and 27 total pods installed.[0m
[09:12:16]: [32m------------------------------------------------[0m
[09:12:16]: [32m--- Step: increment_build_number_from_hockey ---[0m
[09:12:16]: [32m------------------------------------------------[0m
[09:12:18]: [4m[36m$ cd /Users/jenkins/Jenkins/workspace/dpd-ios-staging/dpd && agvtool new-version -all 14[0m[0m
[09:12:18]: ▸ [35mSetting version of project dpd to:[0m
[09:12:18]: ▸ [35m14.[0m
[09:12:18]: ▸ [35mAlso setting CFBundleVersion key (assuming it exists)[0m
[09:12:18]: ▸ [35mUpdating CFBundleVersion in Info.plist(s)...[0m
[09:12:18]: ▸ [35m$(SRCROOT)/dpd-test-Info.plist[0m
[09:12:18]: ▸ [35mCannot find "$(SRCROOT)/dpd-test-Info.plist"[0m
[09:12:18]: ▸ [35mUpdated CFBundleVersion in "dpd.xcodeproj/../dpd/Info.plist" to 14[0m
[09:12:18]: ▸ [35mUpdated CFBundleVersion in "dpd.xcodeproj/../dpdTests/Info.plist" to 14[0m
[09:12:19]: [32m------------------[0m
[09:12:19]: [32m--- Step: sigh ---[0m
[09:12:19]: [32m------------------[0m
+-------------------------------------+--------------------------------+
| [32mSummary for sigh 1.11.2[0m |
+-------------------------------------+--------------------------------+
| adhoc | true |
| app_identifier | ie.appid.dpd |
| username | email@email.ie |
| cert_id | 1234567 |
| filename | adhoc.mobileprovision |
| development | false |
| skip_install | false |
| force | false |
| team_id | 1234567 |
| ignore_profiles_with_different_name | false |
| skip_fetch_profiles | false |
| skip_certificate_verification | false |
+-------------------------------------+--------------------------------+
[09:12:20]: Starting login with user 'email@email.ie'
[32m-------------------------------------------------------------------------------------[0m
[32mThe login information you enter will be stored in your Mac OS Keychain[0m
[32mYou can also pass the password using the `FASTLANE_PASSWORD` environment variable[0m
[32mMore information about it on GitHub: https://github.com/fastlane/fastlane/tree/master/credentials_manager[0m
[32m-------------------------------------------------------------------------------------[0m
[09:12:20]: [33m[33mVariable Dump:[0m[0m
[09:12:20]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios hockey_staging", :GIT_REPO_WAS_CLEAN_ON_START=>true, :BUILD_NUMBER=>"There does not seem to be a CURRENT_PROJECT_VERSION key set for this project. Add this key to your target's expert build settings."}
[09:12:20]: [31mMissing password for user email@email.ie, and running in non-interactive shell[0m
+------+-------------------------------------+-------------+
| [32mfastlane summary[0m |
+------+-------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+-------------------------------------+-------------+
| 1 | Verifying required fastlane version | 0 |
| 2 | default_platform | 0 |
| 3 | clean_build_artifacts | 0 |
| 4 | ensure_git_status_clean | 0 |
| 5 | bundle_install | 0 |
| 6 | cocoapods | 40 |
| 7 | increment_build_number_from_hockey | 2 |
| 💥 | [31msigh[0m | 1 |
+------+-------------------------------------+-------------+
[09:12:20]: [31mfastlane finished with errors[0m
Looking for related GitHub issues on fastlane/fastlane...
Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
/usr/local/lib/ruby/gems/2.3.0/gems/credentials_manager-0.16.2/lib/credentials_manager/account_manager.rb:88:in `ask_for_login': [31m[!] Missing password for user email@email.ie, and running in non-interactive shell[0m (RuntimeError)
from /usr/local/lib/ruby/gems/2.3.0/gems/credentials_manager-0.16.2/lib/credentials_manager/account_manager.rb:33:in `password'
from /usr/local/lib/ruby/gems/2.3.0/gems/spaceship-0.36.2/lib/spaceship/client.rb:220:in `login'
from /usr/local/lib/ruby/gems/2.3.0/gems/spaceship-0.36.2/lib/spaceship/client.rb:90:in `login'
from /usr/local/lib/ruby/gems/2.3.0/gems/spaceship-0.36.2/lib/spaceship/portal/spaceship.rb:22:in `login'
from /usr/local/lib/ruby/gems/2.3.0/gems/spaceship-0.36.2/lib/spaceship/portal/spaceship.rb:77:in `login'
from /usr/local/lib/ruby/gems/2.3.0/gems/sigh-1.11.2/lib/sigh/runner.rb:15:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/sigh-1.11.2/lib/sigh/manager.rb:7:in `start'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/actions/sigh.rb:20:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:202:in `block (2 levels) in execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:187:in `block in execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:186:in `chdir'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:186:in `execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:112:in `trigger_action_by_name'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/fast_file.rb:140:in `method_missing'
from Fastfile:73:in `build_and_deploy_to_hockey'
from Fastfile:186:in `block (2 levels) in parsing_binding'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/lane.rb:33:in `call'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:49:in `block in execute'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:45:in `chdir'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/runner.rb:45:in `execute'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/command_line_handler.rb:30:in `handle'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/commands_generator.rb:52:in `block (2 levels) in run'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/command.rb:153:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/runner.rb:444:in `run_active_command'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane_core-0.53.0/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-4.4.0/lib/commander/delegates.rb:15:in `run!'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/commands_generator.rb:246:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/commands_generator.rb:23:in `start'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/lib/fastlane/cli_tools_distributor.rb:58:in `take_off'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.106.2/bin/fastlane:5:in `<top (required)>'
from /usr/local/bin/fastlane:22:in `load'
from /usr/local/bin/fastlane:22:in `<main>'
Build step 'Execute shell' marked build as failure
Finished: FAILURE
Environment
Please run fastlane env
and copy the output below. This will help us help you 👍
🚫 fastlane environment 🚫
Stack
Key | Value |
---|---|
OS | 10.11.6 |
Ruby | 2.3.1 |
Bundler? | false |
Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
Xcode Version | 7.3.1 |
Git | git version 2.7.4 (Apple Git-66) |
Installation Source | /usr/local/bin/fastlane |
Host | Mac OS X 10.11.6 (15G1004) |
Ruby Lib Dir | /usr/local/Cellar/ruby/2.3.1_2/lib |
OpenSSL Version | OpenSSL 1.0.2j 26 Sep 2016 |
fastlane files:
`./fastlane/Fastfile`
require 'yaml'
# By default, fastlane will send which actions are used
# No personal data is shared, more information on https://github.com/fastlane/enhancer
# Uncomment the following line to opt out
# opt_out_usage
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.32.0"
class ::Hash
def deep_merge(second)
merger = proc { |key, v1, v2| Hash === v1 && Hash === v2 ? v1.merge!(v2, &merger) : v2 || v1 }
self.merge!(second, &merger)
end
end
def cleanup_tmp_files
Actions.sh "rm -fr ../Build"
Actions.sh "rm -fr ../Logs"
Actions.sh "rm -fr ../ModuleCache"
Actions.sh "rm -f ../compile_commands.json"
Actions.sh "rm -f ../info.plist"
end
def load_config(options)
config = YAML.load(open(File.join(File.dirname(__FILE__),"config/fastlane_config.yaml")))
brand_config = YAML.load(open(File.join(File.dirname(__FILE__),"config/#{options[:brand]}.yaml"))) unless not File.file?(File.join(File.dirname(__FILE__),"config/#{options[:brand]}.yaml"))
config.deep_merge(brand_config) unless not brand_config
# ENV["SLACK_URL"] = config['slack_url']
config.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
config
end
def xctool_config(buid_options)
xctool_config = [
'-workspace', buid_options['workspace'],
'-scheme', buid_options['scheme'],
'-configuration', buid_options['configuration'],
'-sdk', buid_options['sdk'],
'-derivedDataPath', '.']
xctool_config
end
def run_unit_test(buid_options)
# Test
xctool_config = xctool_config(buid_options)
xctool_config = xctool_config + (FastlaneCore::Helper.is_ci? ? ['-reporter', 'junit:tests-report.xml'] : [])
xctool :clean, :test, xctool_config.join(' ')
end
def run_analysis(buid_options)
# Test
xctool_config = xctool_config(buid_options)
xctool_config = xctool_config + ['-reporter json-compilation-database:compile_commands.json']
xctool :clean, :analyze, xctool_config.join(' ')
end
def build_and_deploy_to_hockey(config)
signing = config['signing']
build = config['build']
increment_build_number_from_hockey(
hockey_api_token: config['hockey_api_token'],
hockey_app_id: config['hockey_app_id']
)
sigh(
adhoc: signing['configuration'].eql?("adhoc"),
app_identifier: signing['app_identifier'],
username: signing['user_credentials'],
output_path: ".",
cert_id: signing['cert_id'],
filename: signing['configuration'] + ".mobileprovision"
)
gym(
clean: true,
workspace: build['workspace'],
scheme: build['scheme'],
sdk: build['sdk'],
configuration: build['configuration'],
output_directory: '.',
output_name: build['scheme'],
codesigning_identity: signing['codesigning_identity'],
provisioning_profile_path: signing['configuration'] + ".mobileprovision",
include_symbols: build['include_symbols']
)
commit_hash = Actions.sh "git rev-parse --short HEAD"
branch = Actions.sh "git rev-parse --abbrev-ref HEAD"
hockey(
api_token: config['hockey_api_token'],
public_identifier: config['hockey_app_id'],
ipa: build['scheme'] + ".ipa",
notes: "This is an automated build generated through Jenkins for branch '#{branch}' at commit hash '#{commit_hash}'",
commit_sha: commit_hash,
release_type: config['release_type'],
notify: '1',
status: '2' #config['download_enabled'] ? "2" : "1", # Download status: 1 = No user can download; 2 = Available for download
)
end
default_platform :ios
platform :ios do
#######################
### GENERAL DEFINITIONS
#######################
before_all do
cleanup_tmp_files
clean_build_artifacts
ensure_git_status_clean unless not FastlaneCore::Helper.is_ci?
bundle_install unless not FastlaneCore::Helper.is_ci?
cocoapods unless not FastlaneCore::Helper.is_ci?
end
after_all do |lane|
cleanup_tmp_files
end
error do |lane, exception|
if FastlaneCore::Helper.is_ci? then
# slack(
# message: exception.message,
# success: false
# )
end
end
###################
### LANE DEFINITION
###################
desc "Cleanup tmp files/folders"
desc ""
lane :cleanup do |options|
cleanup_tmp_files
end
desc "Analyze"
desc ""
lane :analyze do |options|
config = load_config(options)
config[:lane_name] = 'build'
run_analysis(config[config[:lane_name]])
oclint(
compile_commands: 'compile_commands.json',
select_reqex: /\/dpd\/Classes\//, # Select all files matching this reqex
report_type: FastlaneCore::Helper.is_ci? ? 'pmd' : 'html',
max_priority_1: 10, # The max allowed number of priority 1 violations
max_priority_2: 100, # The max allowed number of priority 2 violations
max_priority_3: 1000, # The max allowed number of priority 3 violations
rc: 'LONG_LINE=200' # Override the default behavior of rules
)
Actions.sh "open ./../oclint_report.html" if not FastlaneCore::Helper.is_ci?
end
desc "Analyze, build and run unit tests"
desc ""
lane :build do |options|
config = load_config(options)
config[:lane_name] = 'build'
analyze(options)
run_unit_test(config[config[:lane_name]])
end
desc "Deploy QA build to Hockey"
desc ""
lane :hockey_staging do |options|
config = load_config(options)
config[:lane_name] = 'hockey_staging'
build_and_deploy_to_hockey(config[config[:lane_name]])
end
desc "Deploy AppStore build to Hockey"
desc ""
lane :hockey_appstore do |options|
config = load_config(options)
config[:lane_name] = 'hockey_appstore'
build_and_deploy_to_hockey(config[config[:lane_name]])
end
end
# More information about multiple platforms in fastlane:
# https://github.com/KrauseFx/fastlane/blob/master/docs/Platforms.md
`./fastlane/Appfile`
app_identifier "ie.appid.dpd" # The bundle identifier of your app
apple_id "email@email.ie" # Your Apple email address
team_id "12345678" # Developer Portal Team ID
# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md
fastlane gems
Gem | Version | Update-Status |
---|---|---|
credentials_manager | 0.16.2 | ✅ Up-To-Date |
fastlane_core | 0.53.0 | ✅ Up-To-Date |
spaceship | 0.36.2 | ✅ Up-To-Date |
deliver | 1.14.5 | ✅ Up-To-Date |
snapshot | 1.16.2 | 🚫 Update availaible |
frameit | 3.0.0 | ✅ Up-To-Date |
pem | 1.3.2 | ✅ Up-To-Date |
cert | 1.4.3 | ✅ Up-To-Date |
sigh | 1.11.2 | ✅ Up-To-Date |
produce | 1.2.1 | ✅ Up-To-Date |
gym | 1.11.3 | ✅ Up-To-Date |
pilot | 1.11.1 | ✅ Up-To-Date |
scan | 0.13.1 | ✅ Up-To-Date |
supply | 0.7.1 | ✅ Up-To-Date |
match | 0.10.0 | ✅ Up-To-Date |
screengrab | 0.5.5 | ✅ Up-To-Date |
fastlane | 1.106.2 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded*
Loaded gems
Gem | Version |
---|---|
did_you_mean | 1.0.2 |
highline | 1.7.8 |
commander | 4.4.0 |
terminal-table | 1.4.5 |
json | 1.8.3 |
multipart-post | 2.0.0 |
faraday | 0.9.2 |
faraday_middleware | 0.10.0 |
dotenv | 2.1.1 |
net-ssh | 3.2.0 |
net-sftp | 2.1.2 |
plist | 3.1.0 |
security | 0.1.3 |
krausefx-shenzhen | 0.14.10 |
slack-notifier | 1.5.1 |
colored | 1.2 |
claide | 1.0.1 |
xcodeproj | 1.3.2 |
rouge | 1.11.1 |
xcpretty | 0.2.4 |
terminal-notifier | 1.7.1 |
xcode-install | 2.0.7 |
word_wrap | 1.0.0 |
multi_json | 1.12.1 |
babosa | 1.0.2 |
excon | 0.54.0 |
rubyzip | 1.1.7 |
gh_inspector | 1.0.2 |
credentials_manager | 0.16.2 |
fastlane_core | 0.53.0 |
bundler | 1.13.5 |
multi_xml | 0.5.5 |
unf_ext | 0.0.7.2 |
unf | 0.1.4 |
domain_name | 0.5.20160826 |
http-cookie | 1.0.3 |
faraday-cookie_jar | 0.0.6 |
fastimage | 1.6.8 |
mini_magick | 4.5.1 |
xcpretty-travis-formatter | 0.0.4 |
uber | 0.0.15 |
representable | 2.3.0 |
retriable | 2.1.0 |
mime-types-data | 3.2016.0521 |
mime-types | 3.1 |
hurley | 0.2 |
little-plugger | 1.1.4 |
logging | 2.1.0 |
jwt | 1.5.6 |
memoist | 0.15.0 |
os | 0.9.6 |
signet | 0.7.3 |
googleauth | 0.5.1 |
httpclient | 2.8.2.4 |
google-api-client | 0.9.18 |
i18n | 0.7.0 |
thread_safe | 0.3.5 |
tzinfo | 1.2.2 |
activesupport | 4.2.7.1 |
io-console | 0.4.5 |
generated on: 2016-11-01
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 28
@diidu @skyline00 I just had the same issue: worked when running fastlane from command line but not from Jenkins. I solved it by moving the password from
login
keychain toSystem
keychain in Keychain Access. Just drag the password to theSystem
in the Keychains list on the left side.I also needed to move the distribution certificate to
System
to make codesigning work.@GavinRooney @peterholcomb Have you tried setting the
FASTLANE_PASSWORD
enviromental variable at the top of your fastfile? Thanks!Hi, @TKBurner It worked after I run export FASTLANE_PASSWORD=“XXXXX”. But there is a problem. I can’t put password as plaintext in jenkins. Could I use the password that I have saved in keychain on the node computer by CredentialsManager ? Could you please give me a single example. Thank you very much.
@mojtabacazi Found solution. Go to the Keychain access -> Go to password category -> select the user that you are using for cert -> Right click -> Get Info -> Access Control -> Either “Allow all the application” -> Save. Now run the job. You will be good to go.
@TKBurner Setting FASTLANE_PASSWORD worked for me. Thank you so much.
@TKBurner I have the same problem.I use the CredentialsManager to add credentials instead of using FASTLANE_PASSWORD enviromental for the reason of security in jenkins . Then when I execute “sigh” with jenkins, it prompts the error:"Missing password for user xxx@xxx.com, and running in non-interactive shell[0m (RuntimeError) too.
Same problem here: `ask_for_login’: [!] Missing password for user xxx@xxx.xx, and running in non-interactive shell (RuntimeError)
This issue is still valid. I am seeing the same with the latest fastlane (2.19.3), does work when manually used in a shell but not when used by jenkins. Solution by @rushilshah does not work for me either and it seems a bit unsecure anyway. The password has “security” listed in “Always allow access” list and that is sufficient for shell and should be for jenkins.
Few experiments indicate that it also works fine with ruby 2.0.0 but has problems with ruby 2.3.1. However this could also be due to some other differences under those installations.
Hi! @jordanjun Can you run export FASTLANE_PASSWORD=“XXXXX” before you run sigh? Thanks!
@TKBurner I have checked it is stored in my login keychain. When I search “deliver”, I can see the keychain. And this error doesn’t occur every time. The error log is as below:
[16:10:58]: Starting login with user ‘xxx@xxx.com’ [32m-------------------------------------------------------------------------------------[0m [32mThe login information you enter will be stored in your Mac OS Keychain[0m [32mYou can also pass the password using the
FASTLANE_PASSWORD
environment variable[0m [32mMore information about it on GitHub: https://github.com/fastlane/fastlane/tree/master/credentials_manager[0m [32m-------------------------------------------------------------------------------------[0mLooking for related GitHub issues on fastlane/fastlane…
Found no similar issues. To create a new issue, please visit: https://github.com/fastlane/fastlane/issues/new Run
fastlane env
to append the fastlane environment to your issue /usr/local/lib/ruby/gems/2.3.0/gems/credentials_manager-0.16.2/lib/credentials_manager/account_manager.rb:88:in `ask_for_login’: [31m[!] Missing password for user xxx@xxx.com, and running in non-interactive shell[0m (RuntimeError)