Scenario -
I am trying to build and deploy project based on ASP.Net core2.0 on Ubuntu ec2 instance.
From VSTS -
I have created a Linux Private Build Agent on VSTS account.
Installing Linux Build Agent -
I have installed dotnet core 2.1.3
Also, successfully registered the Linux Private Agent on ec2.
Now,
From VSTS - Build and Release Tab-
Build Defination I have following tasks -
1) dotnet restore - This task gets executed successfully.
2) dotnet build - This task gets executed successfully.
3) dotnet test - This task gets executed successfully.
4) dotnet publish - This task creates published files for my all projects with .csproj.
5) publish build artifact task
At the Task step 4, that means dotnet publish step- It publishes the published files at a path on Ubuntu private hosted agent ec2. For example, the path at which it publishes can be -
ubuntu@ip-111-11-1-111:/agent/_work/1/a
If you have noticed in the "dotnet publish" task that, I am specifying the perticular .csproj file, still in the artifact "a" folder on linux build agent, it is publishing all source projects.
Also, note that I have some errors during this task, so I can only post the screen of "a" folder with this incomplete output.
For more information, I am also posting the screen for details from source "s" folder on build agent.
Please let me know, how can I publish only the particular project/source folder from VSTS ?