I'm migrating from Jenkins, Bitbucket, and Jira to Azure DevOps. I would like to use azure pipelines and connect on my on-premise server, deploy my application, run SonarQube, etc
I've tried to run a local agent on my machine, but I couldn't run a deploy.
Solved:
It's possible.
All you need is a self-hosted agent and a deployment group.
In my pipeline build I used the following tasks:
MSBuild@1
PublishBuildArtifacts@1
Then in Release Pipeline:
IIS Deployment
The on-premises offering, Azure DevOps Server, is built on a SQL Server back end. Customers usually choose the on-premises version when they need their data to stay within their network. Or, when they want access to SQL Server reporting services that integrate with Azure DevOps Server data and tools.
You can run the Azure DevOps agent locally with its YAML testing feature. From the microsoft/azure-pipelines-agent project, to install an agent on your local machine. Then use the docs page on Run local (internal only) to access the feature that is available within the agent.
Sign into your Azure DevOps organization and navigate to your project. Go to the Pipelines page and select Environments > Create Environment. Specify a Name (required) for the environment and a Description. Choose Virtual Machines as a Resource to be added to the environment, and then select Next.
You will need to run a deployment agent on-premises if you want to be able to deploy to servers that you have.
https://devblogs.microsoft.com/devops/deploying-to-on-premises-environments-with-visual-studio-team-services-or-team-foundation-server/
With that said, when you ran through the configuration did you setup the local agent you created in a pool? Did you assign the local agent to a build group and deployment group?
Did you follow the steps here: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops
Solved:
It's possible.
All you need is a self-hosted agent and a deployment group. In my pipeline build I used the following tasks:
MSBuild@1
PublishBuildArtifacts@1
Then in Release Pipeline:
IIS Deployment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With