In Azure Devops Pipelines I want to set x number of variables and access them in the next stage
I am looking at this example from the msft docs:
Passing branch names between pipelines
So far I was using the below pipeline which triggers the main pipeline. It tracks the pushed tags by developer to the master branch, and if so, starts running.
How do I identify the triggering pipeline in the download step when downloading pipeline artifacts in Azure DevOps on-prem?
Download Pipeline Artifacts shortcut: cannot resolve source name
Azure Pipeline: Unable to pass templates through two other templates
I have 2 template files that I am passing to another (stage
) template (file: build-and-deploy.yml
) that’s in another repo (repoB
) and I am doing this from azure-pipeline.yml
which is in repoA
. Once in repoB, depending on the option selected during the pipeline run, build-and-deploy.yml
will call two other (stage) templates 0.yml
or 1.yml
. Unless I hard code the 2 templates in build-and-deploy.yml
, I am unable to achieve this. The
Azure Pipeline: Unable to pass templates through two other templates
I have 2 template files that I am passing to another (stage
) template (file: build-and-deploy.yml
) that’s in another repo (repoB
) and I am doing this from azure-pipeline.yml
which is in repoA
. Once in repoB, depending on the option selected during the pipeline run, build-and-deploy.yml
will call two other (stage) templates 0.yml
or 1.yml
. Unless I hard code the 2 templates in build-and-deploy.yml
, I am unable to achieve this. The
Azure Pipeline: Unable to pass templates through two other templates
I have 2 template files that I am passing to another (stage
) template (file: build-and-deploy.yml
) that’s in another repo (repoB
) and I am doing this from azure-pipeline.yml
which is in repoA
. Once in repoB, depending on the option selected during the pipeline run, build-and-deploy.yml
will call two other (stage) templates 0.yml
or 1.yml
. Unless I hard code the 2 templates in build-and-deploy.yml
, I am unable to achieve this. The
Azure Pipeline: Unable to pass templates through two other templates
I have 2 template files that I am passing to another (stage
) template (file: build-and-deploy.yml
) that’s in another repo (repoB
) and I am doing this from azure-pipeline.yml
which is in repoA
. Once in repoB, depending on the option selected during the pipeline run, build-and-deploy.yml
will call two other (stage) templates 0.yml
or 1.yml
. Unless I hard code the 2 templates in build-and-deploy.yml
, I am unable to achieve this. The
Azure pipeline for multistage
– stage: PublishStage dependsOn: [PreStage, CheckTestProjects, TestStage] condition: | and( succeeded(), or( eq(dependencies.TestStage.result, ‘succeeded’), eq(dependencies.TestStage.result, ‘skipped’) ) ) jobs: – template: PublishNuget_jobs_template.yml@templates parameters: buildConfiguration: ‘${{ variables.buildConfiguration }}’ feed: ‘${{ variables.feed }}’ The pipeline always skips the publish stage. What i would like to achieve: If the TestStage was skipped (for eg.: testproject did not exist) […]
Azure pipeline for multistage
– stage: PublishStage dependsOn: [PreStage, CheckTestProjects, TestStage] condition: | and( succeeded(), or( eq(dependencies.TestStage.result, ‘succeeded’), eq(dependencies.TestStage.result, ‘skipped’) ) ) jobs: – template: PublishNuget_jobs_template.yml@templates parameters: buildConfiguration: ‘${{ variables.buildConfiguration }}’ feed: ‘${{ variables.feed }}’ The pipeline always skips the publish stage. What i would like to achieve: If the TestStage was skipped (for eg.: testproject did not exist) […]
Azure pipeline for multistage
– stage: PublishStage dependsOn: [PreStage, CheckTestProjects, TestStage] condition: | and( succeeded(), or( eq(dependencies.TestStage.result, ‘succeeded’), eq(dependencies.TestStage.result, ‘skipped’) ) ) jobs: – template: PublishNuget_jobs_template.yml@templates parameters: buildConfiguration: ‘${{ variables.buildConfiguration }}’ feed: ‘${{ variables.feed }}’ The pipeline always skips the publish stage. What i would like to achieve: If the TestStage was skipped (for eg.: testproject did not exist) […]