admin管理员组文章数量:1366075
In our Azure DevOps Server we have several build pipelines with various triggers. I wanted to introduce batch building as our team has grown. I have a "development" pipeline I use for testing pipeline changes before rolling them out to the team. When I added the batch parameter to the pipeline and tested it, the other pipelines ran as well! This is not what I want. Has anyone seen this behavior before?
So, my question is: Why does adding the batch parameter to one pipeline seem to affect other pipelines?
Here are the important details:
Azure DevOps Server (premise) 2022.2
My "test" pipeline:
trigger:
batch: true
branches:
include:
- Task-8624-batch-pipeline-builds
exclude:
- main
My regular pipeline:
trigger:
- main
Steps I did:
- In git, create the Task-8624-batch-pipeline-builds branch
- Edit the
azure-pipelines.yml
file on the branch - Push the branch to git
- Edit the "Get sources" for my "test" pipeline to use that branch
- Make a test commit on that branch and push it
- Note that my other pipeline started building as well!!!!
This has caused me to abandon what I hoped to be a simple improvement for our team. Any insight is appreciated.
Thanks, Michael
In our Azure DevOps Server we have several build pipelines with various triggers. I wanted to introduce batch building as our team has grown. I have a "development" pipeline I use for testing pipeline changes before rolling them out to the team. When I added the batch parameter to the pipeline and tested it, the other pipelines ran as well! This is not what I want. Has anyone seen this behavior before?
So, my question is: Why does adding the batch parameter to one pipeline seem to affect other pipelines?
Here are the important details:
Azure DevOps Server (premise) 2022.2
My "test" pipeline:
trigger:
batch: true
branches:
include:
- Task-8624-batch-pipeline-builds
exclude:
- main
My regular pipeline:
trigger:
- main
Steps I did:
- In git, create the Task-8624-batch-pipeline-builds branch
- Edit the
azure-pipelines.yml
file on the branch - Push the branch to git
- Edit the "Get sources" for my "test" pipeline to use that branch
- Make a test commit on that branch and push it
- Note that my other pipeline started building as well!!!!
This has caused me to abandon what I hoped to be a simple improvement for our team. Any insight is appreciated.
Thanks, Michael
Share Improve this question asked 13 hours ago Michael KolakowskiMichael Kolakowski 8091 gold badge7 silver badges11 bronze badges1 Answer
Reset to default 0I could reproduce the same issue when the Yaml files have the same name in each branch.
For example:
--MyRepository
|
--main branch
-- azure-pipelines.yml
|
--Task-8624-batch-pipeline-builds branch
-- azure-pipelines.yml
When you commit the change to Task-8624-batch-pipeline-builds, it will trigger other pipelines.
For example:
To solve this issue, you could change each Yaml file name in branches and make sure that they are unique.
For example:
--MyRepository
|
--main branch
-- azure-pipelines-main.yml
|
--Task-8624-batch-pipeline-builds branch
-- azure-pipelines-test.yml
Then you need to modify the related pipelines to use the correct YAML files. In this case, when you commit to Task-8624-batch-pipeline-builds branch, it will not trigger other pipelines.
Result:
本文标签: Azure DevOps Server batch trigger runs other build pipelinesStack Overflow
版权声明:本文标题:Azure DevOps Server batch trigger runs other build pipelines - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743754029a2533177.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论