When I push a new repository with an azure-pipelines.yml file in the base folder, a pipeline is automatically created. When I view the Pipelines page, I see that it is it is created at location (root)\($projectname)\($projectname).
Can I configure the yml to create the pipeline in a different location, or do I have to do this manually?
You may add any path here (under review your pipeline YAML):
Related
I have set of azure devops pipelines and I want to use include path triggers for these yaml pipelines. I have multiple pipelines that will have these paths repeated. Is there a way I can pass in a text file with include or exclude paths so I can update in one place rather than each yaml pipeline? Or is there any better way to queue pipelines dynamically based on path changes?
I would like when I add a file to Azure Repos a pipeline is automatically triggered and publishes the file I just added.
Is it possible to do this?
Thanks in Advance
I am planning to move my Azure pipeline source files to a new Azure repo. How can I update the existing pipeline setting to point to the new Azure private repo location? I prefer not to re-create the repo and variables. Right now, if I edit the current pipeline setting, it would only allow me to select .yml files from the current repo. There's not option to change repo.
Thanks
From your description, the pipeline is Yaml type.
You could navigate to Triggers -> YAML -> Get sources.
Then you could select the target Azure repo.
If the Yaml file has different name, you could also select the target yaml file in the Settings.
I have two pipelines one is primary which triggers the other. How to pass a variable set on the first pipeline to second triggered one.
Example:
Variable-Name: Validate = True
I want to pass the validate variable to secondary triggered pipeline . I could not find any documentation that would help.
You could store the necessary value to a file, then include this file in current build's artifact (Publish pipeline artifact task).
Then in secondly pipeline, you could add Download Pipeline Artifacts task to download latest artifact of first build and read the content of necessary file.
If you are using pipeline resource (could enable trigger), please add Download task to download artifact of that pipeline resource.
Resources: pipelines
I've just created ~\azure-pipelines.yaml, committed and pushed but when I go into Azure DevOps > Pipelines and add a new build, choose my repo (also Azure DevOps) then I just get the options for the classic wizard style builds.
How do I choose my YAML file?
Azure DevOps Pipelines should have seen your YAML file as soon as you pushed and your build should be visible with an empty list of build history, and an Edit button in the top right where you can change the YAML contents.
You can manually add a new pipeline and choose Existing Azure Pipelines YAML file from the list, near the bottom and then type in the path to your YAML file.
Otherwise, rename your file to .yml extension and DevOps will automatically see it if its in the root.