azure-pipelines-task-lib | Libraries for writing VSTS and TFS build tasks | Automation library
kandi X-RAY | azure-pipelines-task-lib Summary
kandi X-RAY | azure-pipelines-task-lib Summary
Libraries for writing VSTS and TFS build tasks
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 azure-pipelines-task-lib
azure-pipelines-task-lib Key Features
azure-pipelines-task-lib Examples and Code Snippets
Community Discussions
Trending Discussions on azure-pipelines-task-lib
QUESTION
Hi I'm trying to build react native android app in azure pipelines but I can't get it to work... The error I'm keep getting is like this. I tried everything I found on google but nothing helped.
Build task:
...ANSWER
Answered 2022-Mar-21 at 09:17I managed to fix it by adding bash script as step like this:
echo "ndk.dir=$ANDROID_NDK_HOME" >> local.properties
QUESTION
I am trying to migrate my pipeline from Appcenter to DevOps since I need to leverage some of the build-runtime tools.
The Appcenter builds are working fine, and I can run the app in the phone. But when I create a new pipeline in DevOps with a gradle task, the build fails with this following error:
...ANSWER
Answered 2021-Nov-15 at 12:55Found out that the error was I did not point to the correct build artifact. Pointed to some old artifact that was not correct. Had to check the location where pipeline was building and point to that directory instead.
QUESTION
I am using Pester testing library (with version 5.0.2) to test my PowerShell scripts (with version 5.1) and mock its dependencies.
Pester has a Mock
method which can be used to mock dependencies. More info here.
I am trying to create a helper method wrapping this Mock method, to make my code more readable:
...ANSWER
Answered 2021-Sep-16 at 17:42You are close. It's all in how you build the needed scriptblocks.
For the ParameterFilter scriptblock you need to escape $Name with a backtick so that it gets created as a variable. $inputName will be replaced with our variable value so you need to surround in quotes.
QUESTION
If at all possible, how can one define a custom source for the "Where is your code" selection in Azure DevOps?
Purely for example, say I wanted to use GitLab as my source. Given that no current extensions exist in the marketplace that do this, how could someone go about defining one that adds a custom source for Azure DevOps Pipelines?
While it is true that one could store the pipeline definition in one location and use a "checkout" task to clone the code itself, such a technique causes some functionality to be lost (build status reporting, for example).
Additionally, while using "Other Git" allows one to connect to any git repository, it has its own issues:
- You would need to create a custom service connection per repository. This is not sustainable given a large number of repositories.
- You still will have the issues found when storing the pipeline definition in one place and checking out a specific repository: loss of build status reporting, PR/merge decoration, etc.
I have looked around Microsoft's documentation websites, as well as the various repositories like the Azure DevOps Task Lib, but I have not found anything that even states if this is possible.
Update Feb 17, 2020As per the answer below, this is not possible today (Feb 17, 2021). I have opened a corresponding User Voice idea: Custom code sources for Azure DevOps Pipelines
...ANSWER
Answered 2021-Feb-16 at 07:57how can one define a custom source for the "Where is your code" selection in Azure DevOps
For this issue, I am afraid that this is currently not possible in azure devops. If you want to select a custom code source for the pipeline, then you cannot avoid creating gitlab service connections. Currently azure devops only provides the option "Other Git" to choose from.
As a workaround , you can try to create repository mirroring. Repository mirroring allows for mirroring of repositories to and from external sources. It can be used to mirror branches, tags, and commits between repositories.
Push: for mirroring a GitLab repository to another location.
In addition, you could add your request for this feature on our UserVoice site , which is our main forum for product suggestions.After suggest raised, you can vote and add your comments for this feedback. The product team would provide the updates if they view it.
QUESTION
I develop all our task extensions in PowerShell
, now I start to translate my first extension into TypeScript
. The extension is a small task which should run in build or release pipelines. The task should get deployed to a Azure DevOps Server 2020.1 (on prem).
- I follow the tutorial create a custom pipelines task and build a sample app with it
- I clone the ansible task extension and checkout the programming style
ANSWER
Answered 2021-Jan-08 at 06:08is there a way to debug an azure devops task extension?
Yes, According to the Step 1 in the article "Add a custom pipelines task extension", after installing all the required libraries and dependencies and adding all the required task implementation files, you can compile and run the task with PowerShell
or other shells. By default, the task is run with debugging mode. See the example I share below.
is it possible to pass parameter and load them via tl.getInput?
Sure, you can pass the value of tl.getInput
as an parameter. See the example I share below.
is there a state of the art or a complete guideline how to develop azure devops task extension?
Currently, the Microsoft Docs about DevOps extensions is the best guide for us to develop DevOps extensions.
Follow your case, I also test on my side, below are the main source code I use:
- task.json
QUESTION
I have task that runs a functional test
...ANSWER
Answered 2020-Dec-16 at 12:21The problem was, that I build not whole dependencies.
QUESTION
I have tried to create two different zip for each project by adding two vsBuild tasks.
While writing my yaml based pipeline I am facing two issue:-
- In webjob project path is
DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\App_Data\jobs\continuous\somethingApp.zip"
but nothing is getting added into it.
2 When I am deploying it azure app service, during deployment of my web app I am facing below error:
...ANSWER
Answered 2020-Nov-27 at 06:42The key to the problem, I think it should be a path configuration problem, unable to access your webjob application.
So I suggest you create a virtual application in portal.
For more details, you can refer to this blog. If you need further help, please let me know.
How to publish webjob from azure devops to azure app service using Azure app service deploy task
QUESTION
I am trying to build an android app using a yaml pipeline. The gradle build task is complaining that it can't find the android sdk root. I've tried both the local.properties file and the environmental variable ANDROID_SDK_ROOT, and neither work. This is my build pipeline:
...ANSWER
Answered 2020-Oct-12 at 07:34You can set environmental variables in azure pipeline by defining it in the Variables section. You can add below to your yaml pipeline.
QUESTION
I was running Azure Pipeline build for react native app in which i am using gradle for android build and got this error:
...ANSWER
Answered 2020-Apr-22 at 13:42It worked after change in local.properties file from:
QUESTION
I am doing on premise deploy with Azure DevOps and I got this error as below. I am deploying this on the windows 10 pro machine. Could any help on this would be great help. As I have tried to find some solution but could not find.
...ANSWER
Answered 2020-Apr-15 at 12:27I got the solution we need to remove the webdeploy 4.0 and downgrade to webdeploy 3.6 and then its working well.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-pipelines-task-lib
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