AzurePipelines | single Repo to contain the source for ALL my Azure DevOps | Azure library
kandi X-RAY | AzurePipelines Summary
kandi X-RAY | AzurePipelines Summary
A single Repo to contain the source for ALL my Azure DevOps Build/Release Extensions. The packages can be found in the Azure DevOps Marketplace
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AzurePipelines
AzurePipelines Key Features
AzurePipelines Examples and Code Snippets
Community Discussions
Trending Discussions on AzurePipelines
QUESTION
what would be a recommended way to install your Python's package dependencies with poetry
for Azure Pipelines? I see people only downloading poetry
through pip
which is a big no-no.
ANSWER
Answered 2022-Mar-11 at 09:05From your description, I think the agent you are using is a Microsoft agent?
I checked the official document of the Microsoft agent, there is no poetry provided. Therefore, if you use Microsoft-host agent and you want to use poetry, install poetry during the pipeline run is inevitable
So I recommend you run your pipeline on a self-host agent.
You can use a VM or your local machine which already has the poetry and then set up a self-host agent on it.
After that, you can run your pipeline on it, this time you don't need to install the poetry anymore.
Detailed steps:
1, run the below command on a VM or local machine.
pip install poetry
2, Install configure, and run the agent in above VM or machine.
On my side, I set up an agent on VM:
Please refer to this official document, this document will tell you how to install and run the self-host agent on your side:
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops
3, Run your pipeline based on the agent that ran above.
QUESTION
I have a python application that has pytest unit tests running as part of a build on Azure DevOps. The tests have started failing this morning without any changes to the code.
Here's a minimal reproducible example. I have a file called test_a.py
with the following contents:
ANSWER
Answered 2022-Mar-14 at 11:53Looks like this was caused by a breaking change in the latest version of pytest
.
https://pypi.org/project/pytest/#history
Fixed it by specifying the previous version in the pipeline:
QUESTION
I'm trying to run a python test in Azure DevOps and the only error I'm receiving is this:
...ANSWER
Answered 2022-Feb-20 at 04:52In order to load hello_world
as a module, you need to first make it installable and install it. You can do this by simply creating a setup.py
file (see this thread for example), after which you can install your hellow_world
package by pip install -e .
, where -e
means "editable" so that you do not need to reinstall every time you make any change to the source code in hellow_world
.
QUESTION
Referring to the documentation: Microsft Guide
I'm using a Command Line task to be able to create git Tags were I want to target the System.PullRequest.SourceBranch. The problem is that is not letting me use this since is giving me the following error through the Azure pipeline:
...ANSWER
Answered 2021-Nov-23 at 10:17Your script works if you use it for a pull request validation:
It does not work if you trigger your build just for some branch:
I`ve tested only this line:
QUESTION
I am trying to pblish code coverage results on the pipeline run summary page. This is my pipeline.yaml file:
...ANSWER
Answered 2021-Oct-05 at 05:21I was able to get the correct code coverage using the following in my Azure pipeline "Test" stage:
QUESTION
I've a dotnet solution which consists of many .NET Framework 4.8 class library projects. Some projects have other packages installed, like log4net, Oracle.ManagedDataAccess, GraphQL.Client. In this solution file, I've a base NET Framework 4.8 class library project to which I've added all the other class libraries as dependencies.
Now I use azurepipelines.yml to build the whole solution and pack the base project and push it as nuget package. Now my nuget package has all the dlls plus it has dlls of log4net and other nuget packages that I installed to my projects. So the size of this package is very big. Instead of that, I want only my project dlls along with Microsoft dlls, and not the third party packages in my nuget package. And when I install this nuget package in my other solutions, I want the other libraries (log4net, Oracle.ManagedDataAccess, GraphQL.Client) to be installed along with that - to the "packages" folder.
This will help me to have a small nuget package and these extra library dlls will be installed separately. How can I do this?
...ANSWER
Answered 2021-May-25 at 08:55Update:
What I'm lokking for is that I don't want any 3rd party dlls (like Oracle.ManagedDataAcess or GraphQL) to come inside my nupkg, rather I want them to be installed separately when I install my nupkg in other projects using Visual Studio Nuget Package Manager. Can this be done?
The answer is yes.
If you do not want to include any 3rd party dlls to your nupkg, you could installed those packages to the base NET Framework 4.8 class library project instead of add the dll files:
QUESTION
I have a script that is nicely performing all kinds of dependency installation and some manual works (NPM installation, some manual steps to do while setting up project) to setup a project before it is able to run. The script runs perfectly fine in a local environment.
Im now trying to build my pipeline in Azure DevOps, I realized I can't just fire the script right away. Running npm install
inside the script is not actually running within my project folder but it always runs on the path /Users/runner/work
Question: How can I execute the script within my project folder?
Sample code in my script file
...ANSWER
Answered 2021-May-10 at 23:11Firstly I'd advise you to split your script into different steps of a single job or multiple jobs with many steps because this makes it easier to parallel them in the future allowing you to speed up the build time.
In order to execute your script directly from the project folder you can leverage the option working directory:
QUESTION
ANSWER
Answered 2021-Jan-29 at 08:58You can try to remove the '__init__.py
' file form your project to see if it can work, like as mentioned in this topic.
In addition, please also try the pytest
for the same project on your local machine to see if the same issue occurs.
QUESTION
ANSWER
Answered 2020-Dec-07 at 07:30Unable to run Python Selenium Tests on Self Hosted Azure VM
To use this task on the private agent, we need to add the desired Python version to the tool cache on the self-hosted agent in order for the task to use it.
Normally the tool cache is located under the _work/_tool directory of the agent or you could use the command line task to echo the variable $(Agent.ToolsDirectory)
to get the path.
Then, under that directory, create the following directory structure based off of your Python version:
QUESTION
Within my cake script I'm trying to access the following, to check if it's running on the master branch:
...ANSWER
Answered 2020-Nov-30 at 11:11What version of Cake are you running?
The AzurePipelines
alias was introduced in version 0.38.0. In previous versions you need to use TFBuild
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AzurePipelines
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