unable to delete build completely - azure-devops

I have manually deleted a CI build that uses the MS Hosted ubuntu Agent as there was no Cancel option that was showing up. The elapsed time I think shows the build was deleted, but I see that the Hosted Agent continues to show that the build is in progress.
This is the first time I am running in to this situation. What is the best way to abort this build. I tried using the APIs here and here but that does not seem to help
Thanks

After investigation, there is a recently event of availability degradation of Azure DevOps, which affected these services and it has been resolved now.
If you want to know more information, please click here: https://status.dev.azure.com/_history.
Please check that your Cancel option is back to normal.

Related

Azure devops build stuck in queue when using sonarqube

I’m using SonarQube 8.8 on Azure DevOps.
It’s work just fine, I have analyzed severals applications. However i have a problem on some applications:
When I run the pipeline it get's stuck in queue indefinitely "The agent request is not running because all potential agents are running other requests. Current position in queue:"
But as soon as I remove the sonarqube tasks, the build works just fine. There is no error message so I have no clue about where the problem may come from.
Can you please help
In your current situation, we recommend you can check your agent pool and make sure your all agent is available. And please check your parallel jobs. Also, we recommend you can try to create more self-agent in your local machine and try to run this pipeline.
And you can refer Sourav's answer in the comment.
More details about this issue you can refer this doc: You don't have enough concurrency

Azure DevOps: Show Previous Attempts doesn’t work

I'm using Azure DevOps for deployment activities (releases in yaml way)
From time to time I have to re-run stages if it fails,
The problem is that when I click on Show Previous Attempts nothing happens and I can't see Attempt #1
Is anybody facing the same? or any ideas how to fix it?
After investigation, this issue has been confirmed as a bug and reported to the product group. Currently a fix for this issue has been prepared and the status is pending release.
You can keep track of this issue in our Develop Community forum. We'll update you when it’s available.

Azure DevOps Pipelines Release Copy Files step "The process cannot access the file because it is being used by another process"

I am using Azure DevOps pipelines releases to try to deploy a windows service on premise. Periodically, the windows copy files step will hang and try again every 30 seconds and output "The process cannot access the file because it is being used by another process" as it attempts to copy the build artifacts.
We've ruled out any kind of permission issue. We've tried all sorts of tools to see what might be locking these files up and they don't tell us much.
This has happened before in the past with some other projects I was also trying to release on premise. Sometimes, I am able to just wait an hour or two and redeploy successfully (not exactly a solution I'm satisfied with), but this one particular project, a windows service, seems to be experiencing the issue very, very frequently. Almost every time I try to deploy.
Has anyone else experienced this? Or any word from Microsoft on the issue?
Thanks in advance.
I experienced this issue while trying to create and deploy a release from an existing artifact. So I have a build pipeline on Azure Devops that generates artifacts to be used by the release pipeline. All I did was to make a commit that triggered the build pipeline which generated a new artifact and triggered the release and it worked fine.
It was the first time I experienced this and I had no clue on why it happened.
I'm going to be doing more research and share any thing I find helpful.

Manually delete workflows from YouTrack server

For whatever range of poor reasons...a user schedule workflow has been uploaded to our YouTrack server instance that now automatically generates seemingly hundreds of new issues a minute.
As you might imagine, the web server is totally unresponsive, meaning that we cannot disable or detach the workflow from the project. The workflow editor's attempts to remove the workflow fail with connection timeouts.
How can the workflow be disabled without accessing the usual admin pages? Is there a workflow file somewhere in the server's directory that can be deleted (I can't find one) while the service is stopped? Is there a "run in safe-mode" option for YouTrack?
We're running YouTrack 5 fwiw.
Thanks in advance.
In YouTrack 6.0 we've implemented special Java start parameter (-Djetbrains.youtrack.workflow.detachModified=true), it will work starting from next bug fix release.
This option will detach all the workflows from all the projects on start, except the unmodified supplied ones.
Please, consider https://youtrack.jetbrains.com/issue/JT-27785, the Fix version of this issue will be changes as soon as we release next bug fix.
Workflows are stored inside YT db, so the best variant for you is to contact YT support. It'll be able to modify the db.

Jenkins does not getting the latest commit

I have been trying to configure jenkins with github. Basically when there are no files in workspace (the first build) everything is going fine and jenkins fetches the latest changes. But when I trigger another build (after push into github) the latest change aren`t fetched.
Can you please give me some advice on this?
Thx in advance.
Check the clock on the machine that runs jenkins. I experienced a similar issue where my build server was 2 minutes time difference off the source repository server, latest changes were not picked up immediately but with delay.