Azure DevOps
1386 TopicsSign in to Azure DevOps
The https://dev.azure.com URL redirects to the landing page for the Azure DevOps product. I used to promote this as an URL to use to login to the product. Since this year the page is missing the "Already have an account? Sing in to Azure DevOps" link. As far as I can see there is no way to login to Azure DevOps trough this interface now. There is the usual "sing in" in the top right, which will redirect you to the azure portal (or at least for me it does). How are we supposed to login to Azure DevOps? Old login:Solved379KViews4likes10CommentsAzure DevOps - How to modify files during a Build Pipeline execution based on PowerShell
Azure DevOps Build Pipeline can provide several option, but sometime we need to change a part of content extracted from Source code management (e.g. Git) before execute another task. In my case, this case is to comment one specific declaration (#include) placed in couple of JavaScript files. These lines are understood well by the application server using this code, but not by generic JavaScript parser used for example into SonarQube. So into the Pipeline process, it's only a PowerShell task could be used to do that like following. In Yaml mode: steps: - powershell: | Write-Host "------------------------------------------------------------" Write-Host "Get JS File content containing #include line", $(Agent.WorkFolder) Write-Host "------------------------------------------------------------" $AllJSFIleToManage = Get-ChildItem -Path $(Agent.WorkFolder)\*.js -Recurse -Force | Select-String -Pattern "#include " -AllMatches | Foreach {$_.Path} | Select-Object -Unique foreach ($MyFile in $AllJSFIleToManage) { Write-Host "JS File to change -", $MyFile (Get-Content $MyFile -Encoding UTF8) -replace '#include ', '//#include ' | Set-Content $MyFile Write-Host "JS File changed -", $MyFile Write-Host " -----------------------------------" } displayName: 'PowerShell Script remove specific #Include lines from JS files for Sonar' In Visual Editor mode: When the pipeline is running, it will get the source code from Git and change dynamically only the JS files replacing the blocks found with this "#include" by "//#include" to comment the concerned lines in JavaScript. The result of this execution in Pipeline log is like following: Into SonarQube the result is visible via the Source Code navigation option: You can adapt this code with your specific case and need, but PowerShell tasks are really powerful when you need to change something before a specific step only during the Pipeline execution. Fabrice Romelard61KViews2likes2CommentsAzure Devops error-Some recent issues detected related to pipeline trigger
I am getting below trigger error on all the pipelines to the repo- Some recent issues detected related to pipeline trigger. This issue comes even when we create new fresh pipeline and the error is pointing to the latest commit. Can anyone suggest any solutions for that. When reattech ymal file or add default value in my yml file i am not getting error. I dont want to provide default value in my ymal file and also it was working fine before. i am started getting this error from last week of december,Solved54KViews1like4CommentsHow do I change the date format in all areas of Azure DevOps web interface?
Hello. I'm fairly new to Azure DevOps and I've just started setting up some projects ready to migrate away from JIRA. However, something I cannot figure out is how to change the date formats in the DevOps web interface. We are in the UK and want UK format dates everywhere (dd/mm/yyyy). I have found that I can change this in my User Settings but it hasn't changed what I see in various screens. For example, dashboard widgets still show American dates. Burndown Trends still show American dates. This is really frustrating. How do I configure UK dates for all areas for all users? All of our projects will be the same, we will never ever use American dates. I've gone through project settings and organisation settings but can't find it anywhere, and Googling returned nothing useful. Thanks in advance.53KViews2likes8CommentsHow to grant Service Principle access right to Azure Repos
In Azure Pipelines, we need to get source code of another organization's Azure Repos. Currently we use personal access token, but it links to a user who might leave the organization. Can we use a service principle to authenticate? How to grant the service principle access right to the other organization's Azure Repos?44KViews1like14CommentsCompletely migrate DevOps Organisation to new Tenant and Subscription
Hi, hope this question besides here. Can anyone confirm the steps needed to completely migrate a DevOps Organisation to a new Tenant and Subscription. The first steps are obvious: Prepare new AD Tenant Switch AD Connection (Switch to another Azure Active Directory - Azure DevOps Services | Microsoft Learn) Currently there is a MPN Subscription in use (also for DevOps billing) even with that i don't see problems, as we could change the billing Sub to f.e. a PAYG Sub during Migration. The main concern is about whats "inside" our projects: We use ServicePrincipals for deploying into AppServives and others We have some service connections to GitBucket and other Even if the change to the new AD Tenant and billing Subscription goes smooth We would need to recreate all ServicePrincipels at the point we would migrate our AppServices and other services in to a subscription within the new tenant? Even if we migrate out MPN Subscription (via support case) we would need to create all needed SP in the new tenant and modify the pipelines which use them. Are we correct? Did anyone else a migration like this on? Appreciate all your feedbacks Regards, BenSolved41KViews0likes8CommentsError downloading Github Artifacts - Cannot prompt because user interactivity has been disabled
When using artifacts from a repo(private) that resides in a Github Org Azure DevOps agent fails to download artifacts. Below is the error and screenshot 2021-09-01T17:36:41.9511533Z ##[command]git checkout --progress --force xxd0d3f8cxxxx33436e4f01ecff7895xxx 2021-09-01T17:36:43.1284580Z fatal: Cannot prompt because user interactivity has been disabled. 2021-09-01T17:36:43.6925848Z fatal: Cannot prompt because user interactivity has been disabled. 2021-09-01T17:36:43.7050349Z fatal: could not read Username for 'https://github.com': terminal prompts disabled 2021-09-01T17:36:43.7131005Z Downloading docs/Architecture-xxxxxxxx/xxxxxxxxxxxStructure.pdf (98 KB) 2021-09-01T17:36:44.3089607Z fatal: Cannot prompt because user interactivity has been disabled. 2021-09-01T17:36:44.8791694Z fatal: Cannot prompt because user interactivity has been disabled. 2021-09-01T17:36:44.8911672Z fatal: could not read Username for 'https://github.com': terminal prompts disabled 2021-09-01T17:36:44.8985234Z Error downloading object: docs/Architecturexxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx-structure.pdf (7xxxxxe): Smudge error: Error downloading docs/Architecturexxxxxxxxxx/xxxxxxxxxxxxxxx-structure.pdf (xxxxx08e47fccd1e1c71e1ee50d9exxxxxcceead15a3d4b8cxxxxx): batch response: Git credentials for https://github.com/xxxxxxx/xxxxxxxxxxxxxxxxxx-infra.git not found. 2021-09-01T17:36:44.9443385Z 2021-09-01T17:36:44.9444319Z Errors logged to D:\a\r1\a\_xxxxxxxxxxxxxxxxxxxxxxxx-infra\.git\lfs\logs\20210901T173644.8975147.log 2021-09-01T17:36:44.9445350Z Use `git lfs logs last` to view the log. 2021-09-01T17:36:44.9477463Z error: external filter 'git-lfs filter-process' failed 2021-09-01T17:36:44.9506366Z fatal: docs/Architecturexxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx-structure.pdf: smudge filter lfs failed 2021-09-01T17:36:44.9597171Z ##[error]Downloading artifacts failed: System.InvalidOperationException: Git checkout failed with exit code: 128 at Microsoft.VisualStudio.Services.Agent.Worker.Build.GitSourceProvider.GetSourceAsync(IExecutionContext executionContext, ServiceEndpoint endpoint, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.GitHubArtifact.DownloadAsync(IExecutionContext executionContext, ArtifactDefinition artifactDefinition, String localFolderPath) at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.<>c__DisplayClass39_2.<<DownloadArtifacts>b__2>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Services.Agent.Worker.Release.RetryExecutor.ExecuteAsync(Func`1 action) at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifacts(IExecutionContext executionContext, IList`1 agentArtifactDefinitions, String artifactsWorkingFolder) at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifactsAndCommitsAsync(IExecutionContext executionContext, Object data) 2021-09-01T17:36:44.9639747Z ##[error]Git checkout failed with exit code: 128 2021-09-01T17:36:44.9647436Z ##[section]Finishing: Download Artifacts However if I use the same code from personal github repo (also private) it works fine on same release pipelineSolved39KViews0likes2CommentsAzure DevOps Integration with Project Online
I am looking into ways to integrate the work being in Azure DevOps with project management level tracking in MS Project online to avoid the duplication of work when creating timeline views & portfolio management presentations. From what I understand, you must purchase a third party app to accomplish this. Has anyone found one that they like and can speak to why? Or am I missing a way to integrate the two without purchasing a solution?38KViews1like6CommentsYou do not have permission to view this directory or page.
Hello All, Whenerver I use the "Archive Files" task in the Azure DevOps build pipeline, upon release, I get the following error on my azurewebsite: You do not have permission to view this directory or page. However, when I use the Copy Files" task as a workaround, the website works just fine. The problem is that this task takes almost 10x as long as the Archive Files task. Any help will be appreciated in resolving this issue.Solved36KViews1like5CommentsHow to connect GitLab repository for Azure devops CI/CD pipeline
My source code is present in Gitlab repository and I want to setup a CI/CD pipeline using Azure Devops, However I don't find any option there to establish connection between Gitlab repository and Azure devops. I just want to know is there any way to achieve this.31KViews1like4Comments