in Education by
I tried the following approach in my build script: git -c http.extraheader="AUTHORIZATION: bearer %SYSTEM_ACCESSTOKEN%" pull ... It seemed to work for commands like pull, etc. But when I was trying to push the changes, I got the below error: fatal: unable to access 'https://example.visualstudio.com/SampleTeam/_git/SampleRepo/': SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054 Thoughts? Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Hey, here are some key steps that you should follow: Grant version control permissions to the build service Are you interested in learning Azure from basics! Here's the right video for you on Azure provided by Intellipaat: Go to the Version Control control panel tab Team Services: https://{your-account}.visualstudio.com/DefaultCollection/{your-team-project}/_admin/_versioncontrol On-premises: https://{your-server}:8080/tfs/DefaultCollection/{your-team-project}/_admin/_versioncontrol On the Version Control tab, select the repository in which you want to run Git commands, and then select Project Collection Build Service (account_name). Grant permissions needed for the Git commands you want to run. Typically you'll want to grant: Branch creation: Allow Contribute: Allow Read: Inherited allow Tag creation: Inherited allow When you're done granting the permissions, make sure to click Save changes. Enable your build definition to run Git.exe On the variables tab set this variable: system.prefergit = true On the options tab select Allow scripts to access OAuth token. Also, make sure to follow this document: https://www.visualstudio.com/en-us/docs/build/scripts/git-commands

Related questions

0 votes
    I am unable to run any commands against my remote repository at Visual Studio Team Services (VSTS) because ... like SourceTree. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I have a Visual Studio online Team Project with a repository. I have been using this with VS 2013 for a ... and doing clone again? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I'm trying to put an existing project under Git source control, but I'm unclear on several things. I have ... the online repository? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I am using Visual Studio 2017 Community Edition (CE), and I have signed into my Microsoft account and I am ... to resolve this issue. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Microsoft now has support for Git repositories on their Team Foundation Service. I have an account on Team ... to TFService. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I am using Team Services on domain visualstudio.com and I need to delete one project, I found out that I ... don't have privileges. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I've just joined my friend's Team Services account (free for the first 5 users account). If I visit the home ... how to resolve this? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    we are using git in Team Foundation Service, and we are trying to find a way to delete a remote ... /DefaultCollection/_git/Xxxxxx' Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I have created a branch named dev. I have done a pull request to send dev code to master, when I do ... to resolve these conflicts. Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    Steps In Visual Studio Pulled from remote repo 1 merge conflict. Merged manually, clicked 'Accept merge' Result ... with all updates Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I just performed a clean install of Visual Studio 2015 SP3, and I'm getting this in the Output window at ... to VSTS at startup. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I'm trying to implement continuous integration and continuous deployment to my DEV Azure App Service. I'm ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    What does a Git Commit object contain?...
asked Nov 4, 2020 in General by JackTerrance
0 votes
    I am a complete beginner in allegro and i just installed allegro correctly and this is my code(my first ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 22, 2022 in Education by JackTerrance
0 votes
    I would like create a Flat list of work items query in TFS in which the results contain all of the specified PBI ... are. Any ideas? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
...