osx - Jenkins+fastlane fails with "Missing password for user" -


tl;dr

what's simplest, secure, step-by-step approach giving jenkins 2.x access credentials needed fastlane + sigh?

context

i inherited jenkins 1.x installation , decided upgrade 2.x. have several ios projects building , pushing hockeyapp/testflight without issues, had free time , figured it'd better upgrade 1.x 2.x rather having 1.x 3.x later.

not knowing how original installation had been done, seemed safest use packaged installer, downloaded binary 2.32.3 , stepped through wizard.

problem

in order test upgrade, logged web interface, navigated ios project managed fastlane, , clicked "rebuild last". build failed immediately:

missing password user devuser@example.com, , running in non-interactive shell  +------+-------------------------------------+-------------+ |                     fastlane summary                     | +------+-------------------------------------+-------------+ | step | action                              | time (in s) | +------+-------------------------------------+-------------+ | 1    | verifying required fastlane version | 0           | | 2    | default_platform                    | 0           | | 3    | xcversion                           | 0           | | 💥    | sigh                                | 0           | +------+-------------------------------------+-------------+  ...  /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-2.25.0/credentials_manager/lib/ credentials_manager/account_manager.rb:125:in `ask_for_login': [!] missing password user devuser@example.com, , running in non-interactive shell (runtimeerror)  ... 

after quite lot of googling, i've tried following few suggestions, no luck. @ point i'm concerned i'll end breaking things because of solutions i've encountered multi-step, across multiple domains (jenkins, keychain, shell commands), , lacking in what-could-go-wrong-when-trying-this-solution-and-how-to-recover context.

in short, i'm @ end of rope. or, saying goes, i've got enough rope hang myself…and i'd rather not. 😬

add variable called fastlane_password keep password user. in non interactive mode wont able write in console, that's reason need before.

also if have 2 step auth need keep fastlane_session


Comments