powershell - Visual Studio Build Agent scripted setup -


i´m trying automate vsts build agent setup (https://www.visualstudio.com/en-us/docs/build/actions/agents/v2-windows).

however there's interactive step in process. it´s cmd script file requires user's input. tried generate txt file settings, , run script reading input file:

.\config < settings.txt 

but didn´t work. got message:

enter server url > enter authentication type (press enter pat) > enter perso nal access token > cannot read keys when either application not have cons ole or when console input has been redirected. try console.read. 

is possible set build agent script? there way "redirect" console input in such way config.cmd works perfectly?

did try passing --help config.cmd

there number of examples below snippet of examples:

unattended configure , unconfigure examples:

remember check return code when using unattended configuration unattend configuration vsts pat authentication win : .\config.cmd --unattended --url https://myaccount.visualstudio.com --auth pat --token --pool default --ag ent myagent unix : ./config.sh --unattended --acceptteeeula --url https://myaccount.visualstudio.com --auth pat --token --po ol default --agent myagent

unattend configuration on-premise tfs integrated (windows) , (linux/osx) negotiate authentication win : .\config.cmd --unattended --url http://mylocaltfsserver:8080/tfs --auth integrated --pool default --agent myagent unix : ./config.sh --unattended --acceptteeeula --url http://mylocaltfsserver:8080/tfs --auth negotiate --username domai n\user_name --password mypassword --pool default --agent myagent


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -