TFS2008 select agent build from VS2008 - visual-studio

I would like to be able to select the build agent to use to deploy my web application. When the code is being built for testing I would like for it to use a certain build agent and deploy to our test server and when the code is being built for production I would like for it to use another build agent and deploy it to our production server, Automatically! Does anyone have experience in doing this?
Please help.

This has been resolved by tweeking my ports and using MSDeploy

Related

Is it possible to manually run a build on a local Azure build agent without a DevOps server?

We normally use on-premises Azure DevOps Server to maange our build pipelines, using YML files. We have build agents running on one or more build servers.
A specific piece of R&D would be made far easier if we could install VS and a build-agent on a standalone box which is not linked to the Azure DevOps server, and manually 'run an YML build' against the build agent locally.
We don't have access to DevOps server from this machine and the alternative is rescripting an alternative to our YML in Powerscript or similar.
Is there any realistic way to do this?
Is it possible to manually run a build on a local Azure build agent without a DevOps server?
I am afraid there is no such way to manually run a build on a local Azure build agent without a DevOps server.
That's because azure devops services/server is equivalent to an interpreter and trigger. Agent itself is not a program that can be executed independently like MSBuild.exe, it does not have the ability to parse YAML grammar, it can only execute the parsed command passed by the server.
I totally understand your needs and approve of it, so I recommend you add your request for this feature on our UserVoice site (https://developercommunity.visualstudio.com/content/idea/post.html?space=21 ), which is our main forum for product suggestions:

XXXX is not compatible with monoandroid10.0

I have a Xamarin project that builds just fine on my local machine but is not building on the azure server. Anyone see this before ?
##[error]The nuget command failed with exit code(1) and error(NU1201: Project XXX.XXXX.XXXXX is not compatible with monoandroid10.0 (MonoAndroid,Version=v10.0). Project XXX.XXXX.XXXXX supports: netstandard2.1 (.NETStandard,Version=v2.1)
Upgrade your nuget version to 5.8 and this will all go away :)
If you use Azure pipelines to Build and deploy Xamarin apps, please refer to this doc. And if you use Microsoft-hosted agent, its build environment is different from local machine, such as it may lack of some software or installs different software version. You can see the installed software for each hosted agent by choosing the Included Software link in the table.
To your issue, please check which NuGet version do you use to build this project locally, and then use the NuGet Tool Installer task in Azure pipeline to specify this NuGet version(maybe 5.8.0 works for your issue as Mouse commented) to build your project with Microsoft-hosted agent.
Also you could deploy local self-hosted Windows agent and use it in Azure pipeline to build your project, which will run local build environment.
BTW, you could refer to this doc: Review logs to diagnose pipeline issues to make initial troubleshooting steps when encounter pipeline issues.

how to deploy my maven project for devops pipeline

I have an devops project assignment that I am required to create a maven project and also create a CI/CD pipeline for it. I am quiet newbie in devops and struggling to understand some concepts.
I created a maven project and pushed it into bitbucket. By the way, I have 3 main branches which are master, test and development that I need to deploy them prod, qa and dev environments, respectively. Via Jenkins, I successfully created build automation.
However, I could not deploy the project because I am confused. Can I also deploy my project with Jenkins? Or do I need a something like Virtualbox to deploy? Also do I have to use Docker to deploy? I searched for web but could not make it clear.
Could you please help me understand the deployment process in this project?
Thanks in advance.
Deployment processes are depends on your infrastructure. What do you use?
There are tons of deployment strategies according to business/development models. You can deploy your projects with Jenkins or any CI/CD tools that you chose. It doesn't matter at the end.
Here it's a good deployment strategies reading by Google.
https://cloud.google.com/solutions/application-deployment-and-testing-strategies

Sonarqube and code testing

I want to run sonarqube testing on my sonarqube server and want to see test result (test report) from my client machine without touching server.
How can I do that in case of multiple developers will push their code to test on sonar server and need to see test result from their local machine?
There is the http://www.sonarlint.org/ plugin available for eclipse, IntelliJ IDEA and Visual Studio. The plugins for first two IDEs support Java, JavaScript and PHP, the plugin for Visual Studio supports .NET code.
All three offer the Connected Mode which can "establish a connection to a SonarQube server (4.5.4+) and bind your [...] project to a SonarQube project."
This might help you depending on your development environment.

Can't publish application in Continuous Integration

I have the following configuration in Continuous Integration CI
Build runs successfully but the publish part is not working. My publish profile using a web deploy to deploy on server directly. Web deploy working fine if i run it from the normal publish.
Any suggestion on solving this issue?
I had the same problem, the reason of my-- the PublishUrl isn't used. Workaroud for me change the webdeploy to xcopy.

Resources