-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding http proxy environment variables to Azure CLI V2 #18295
Conversation
Adding http proxy environment variables (http_proxy and https_proxy) to azureclitask.ts when proxy configuration is present.
@microsoft-github-policy-service agree |
@rvairavelu / @manolerazvan could one of you please review and approve this PR? |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Commenter does not have sufficient privileges for PR 18295 in repo microsoft/azure-pipelines-tasks |
Hi @ycamargo , firstly thanks for contributing here. If you have cloned this repo locally, navigate to the root directory (ie C:...\azure-pipelines-tasks>) Execute this build command " node make.js build --task AzureCLIV2 " //ensure to use node 8/10, else the command fails. |
Build failure detail: 2023-07-28T05:21:34.6058540Z Building: AzureCLIV2 |
Hi @v-mohithgc, I've fixed it and built locally without any issues (see evidence below). C:\git\github\azure-pipelines-tasks>node make.js build --task AzureCLIV2
> prepending PATH C:\git\github\azure-pipelines-tasks\node_modules\.bin
tsc tool:
Version 4.0.2
C:\GIT\GITHUB\AZURE-PIPELINES-TASKS\NODE_MODULES\.BIN\TSC.CMD
npm tool:
6.14.12
C:\PROGRAM FILES\NODEJS\NPM.CMD
------------------------------------------------------------
Building: AzureCLIV2
------------------------------------------------------------
> cd Tasks\AzureCLIV2
Detected Typescript version: 4.0.2
> npm install
> cd Tests
> npm install
> cd ..
> node C:\git\github\azure-pipelines-tasks\Tasks\AzureCLIV2\node_modules\typescript\bin\tsc --outDir "C:\git\github\azure-pipelines-tasks\_build\Tasks\AzureCLIV2" --rootDir "C:\git\github\azure-pipelines-tasks\Tasks\AzureCLIV2"
> cd ..\..
> copying task resources
copying *.ps1
copying *.psd1
copying *.psm1
copying *.sh
copying *.txt
copying icon.png
copying icon.svg
copying module.json
copying node_modules
copying package.json
copying Strings
copying task.json
copying task.loc.json
copying Tests
Build successful |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
This reverts commit d2cd595.
) * Revert "Adding http proxy environment variables to Azure CLIV2 (#18295)" This reverts commit d2cd595. * Update task.json * Update task.loc.json * CI * reset root package-lock.json --------- Co-authored-by: Mohith <97882857+v-mohithgc@users.noreply.github.com> Co-authored-by: Ozan AYDIN <ozanaydin@microsoft.com>
Task name: Azure CLI V2
Description: Adding http proxy environment variables (http_proxy and https_proxy) to azureclitask.ts when proxy configuration is present.
Documentation changes required: (Y/N) N
Added unit tests: (Y/N) N
Attached related issue: (Y/N) Azure CLI Extension V2 is not respecting the .proxy file...
Checklist: