azure-pipelines-agent | Self-hosted GPU agent for Azure Piplines with Docker | Azure library
kandi X-RAY | azure-pipelines-agent Summary
kandi X-RAY | azure-pipelines-agent Summary
Self-hosted GPU agent for Azure Piplines with Docker
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Signal handler
- Cleanup running containers
- Checks if agents are running
- Relaunch agents on the system
- Launch an agent
- Clean up running containers
azure-pipelines-agent Key Features
azure-pipelines-agent Examples and Code Snippets
Community Discussions
Trending Discussions on azure-pipelines-agent
QUESTION
I'm trying to integrate Cobertura report generation in my azure pipeline. For that I've added coverlet.collector 3.0.3 in my .Net core test projects. Below is my yaml command for test run
...ANSWER
Answered 2021-Jul-01 at 17:41As I raised this question with Coverlet team, I got a quick response from them. They noticed something that I totally missed.
QUESTION
We have a self-hosted TFS build agent which has run out of space so I would like to delete as many of the folders under the agent\_work
and agent_dply\_work
folders as possible, where they are > 1 month old.
Is this safe to do?
I have found this post on setting up cleaning, which I will certainly do.
Also found this post on cleaning the _work
folder which recommends renaming, then deleting the whole folder, but not parts of it.
What I can't find is the maintenance settings
for the agent pool, as described in this post. I'm wondering if this is in some control panel on the actual agent, because it does not appear to be in our settings. I looks for it under Project > Project Settings > Agent pools, for example:
https://COMPANY.visualstudio.com/PROJECT/_settings/agentqueues
ANSWER
Answered 2020-Oct-20 at 11:52The 'agent_work' folder is used to build your project. If you publish your artifacts to another location --> used for example in the 'agent_dply_work' folder. Then it is save to delete the 'agent_work' folder.
Deleting the 'agent_dply_work' is risky in my opinion, because it contains the deployed code. So if you want to redeploy an old releases again, that is no more possible.
If I was you I should delete the 'agent_work' folder but I should not delete the 'agent_dply_work' folder
QUESTION
In a pipeline I have two different steps. The first one generates some files, the second should take these files as an input.
the Yaml for that pipeline is the following:
...ANSWER
Answered 2020-Oct-08 at 09:06This is because your report is written to Common.TestResultsDirectory
which is c:\agent_work\1\TestResults
(for Microsoft Hosted agents), and publish test task looks in System.DefaultWorkingDirectory
which is c:\agent_work\1\s
.
Please try:
QUESTION
I am running an azure pipeline as follows. I have set the timeout in minutes in 3 places: the job, the pool and the task however the step run acceptance tests always timeout after 60 minutes with the error message:
An error occurred while provisioning resources (Error Type: Timeout). The operation was canceled.
Otherwise, everything in the pipeline runs ok.
...ANSWER
Answered 2020-Jan-15 at 10:07In private projects, the maximum timeout that Microsoft gives in hosted agents is 60 minutes.
See the docs here:
To avoid taking up resources when your job is hung or waiting too long, it's a good idea to set a limit on how long your job is allowed to run. Use the job timeout setting to specify the limit in minutes for running the job. Setting the value to zero means that the job can run:
- Forever on self-hosted agents
- For 360 minutes (6 hours) on Microsoft-hosted agents with a public project and public repository
- For 60 minutes on Microsoft-hosted agents with a private project or private repository
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-pipelines-agent
The Azure pipelines agent runs inside Docker, to create a fresh environment for each job. The manager is written in python.
Install CUDA
Install Docker
Install nvidia-docker
Install python3. How you do this probably depends on your host system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page