I have a C# solution
with mutiple executable projects and I want to do a pipeline to build exe files and dependencies and another pipeline to generate multiple installers using Advanced Installer.
In the build pipeline I'm using the PublishPipelineArtifact@1
task at the end.
I have seen that I have two options to achieve this. Using classic release pipelines (it works properly). Another option seems to use yml pipeline triggered by the first pipeline. I have done it following docs but i'm getting an error configuring the trigger.
Configuring the trigger failed edit and save the pipeline again
trigger: none
pool:
name: Default
demands:
- Agent.Name -equals 'SelfHostedAgent'
resources:
pipelines:
- pipeline: 'projectCi'
source: '\Folder\Project-CI'
trigger: true
I have solved it. The problem was that the default branch doesn't have the pipeline defined. I have to set default branch via UI. Menu > Triggers > YAML > Get Sources > Default Branch