How to add dependency between two release pipeline Azure DevOps - azure-devops

I have a scenario that i want to create a dependency in Release pipelines that once one pipeline completes its task then the next release pipeline should be triggered.
How can I achieve it.

How to add dependency between two release pipeline Azure DevOps
You could use the extension Trigger Azure DevOps Pipeline:
Trigger Azure DevOps Pipeline is an extension for triggering a Azure
DevOps Build or Release Pipeline.
Depending on your choice in the task, it will trigger a build or a
release pipeline.
To use the extension, an Azure DevOps API endpoint needs to be
created. The token used in the endpoint should be Personal Access
Token.

Related

Can Azure DevOps pipeline run make targets?

In our project we used GitHub actions to run make targets for CI pipeline. We had dedicated runners used in Github actions to run make targets
Now, we migrated from GitHub actions to Azure DevOps pipeline
Does Azure DevOps pipeline allow/support running make targets?

Is there a way to export release pipleines to YAML in azure devops

Is there any way I can export a release pipeline in Azure devops to YAML?
Currently, Azure DevOps can't export a Release Pipeline to YAML.
But individual tasks within stages and jobs can be exported from release pipelines by clicking the “View YAML” button at the right upper side of a task.
This features is On Roadmap for implementation.
Support this feature # https://developercommunity.visualstudio.com/t/export-entire-azure-devops-buildrelease-pipelines/733456
References
https://developercommunity.visualstudio.com/t/export-a-release-pipeline-as-yaml/918911
Migrating existing (entire) Azure DevOps pipeline to YAML based pipelines (in bulk)

How to trigger Azure DevOps pipeline when pushing commits to bitbucket custom server?

My company's repository hosted on bitbucket custom server which can be only accessed from intranet.
Therefore, I setup a self-host agent for Azure DevOps and this agent could do a git pull and build and release too.
It works and the problem is I have to manually click RUN pipeline to start, and somehow when I pushing commits to my bitbucket custom server it doesn't trigger the Azure DevOps to kick off a build or release.
Is there some other options I could let it automatically triggers the Azure pipeline to run? Webhooks or Hooks?
I afraid Azure devops pipeline cannot be automatically triggered from a bitbucket custom server. For azure devops server cannot communicate to the bitbucket server hosted in your intranet.
Webhooks or Hooks cannot trigger a build in azure devops pipeline either. Azure devops doesnot have this feature yet. There is an open issue about this.
Currently you might have to trigger your pipeline manually, or create an azure function as mentioned in above link to trigger your pipeline automatically.
Below are some documents about azure function you may find helpful:
Develop Azure Functions using Visual Studio
Continuous deployment for Azure Functions
Azure Functions HTTP trigger:The HTTP trigger lets you invoke a function with an HTTP request.
Best approach to call web api from azure function
Trigger Azure Pipelines build via API

Call a release build from REST api in Azure

I want to call the Azure Devops to create a new release from one of my Release Pipelines.
I have been looking for different calls but its either to create the pipeline or build artifacts.
Is there a way to call a release pipeline from Azure API?
I did it with the next endpoint: https://learn.microsoft.com/en-us/rest/api/azure/devops/build/Builds/Queue?view=azure-devops-rest-5.0&viewFallbackFrom=vsts-rest-4.1
I was using a wrong body for the endpoint. With the example from the documentation it worked.

Prompt user to continue in Azure DevOps pipeline

In Jenkins I can prompt the user to continue or cancel with the "input" directive in the pipeline definition.
Does Azure DevOps pipelines have this functionality or anything similar?
I am using a yaml file for the Azure DevOps pipeline.
Not in build definitions, no. In release definitions you can add a Serverless phase and put a Manual Intervention task.
Honestly, I can't imagine a scenario where you'd want a manual intervention in the middle of a build.