Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewire-pipeline Command Switches YAML Triggers #1237

Open
connorstorer-kbxcom opened this issue May 3, 2024 · 4 comments
Open

rewire-pipeline Command Switches YAML Triggers #1237

connorstorer-kbxcom opened this issue May 3, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@connorstorer-kbxcom
Copy link

Description

After running the rewire-pipeline against an ADO YAML pipeline, the pipeline options/triggers have been changed unexpectedly. Curling the definition content it looks like the rewire-pipeline command removes the pipeline definition triggers object and instead populates it with options (mine didn't have options before anyway). After manually unchecking the Override the YAML continuous integration trigger from here checkbox and curling the definition, the triggers object is repopulated.

image

After Running Command:
image

After Manually Reverting/Unchecking:
image

Reproduction Steps

Run the rewire-pipeline command against an ADO YAML pipeline without any explicit pipeline definition trigger overrides. After running the command, edit the pipeline in ADO and navigate to the triggers. Notice the Override the YAML continuous integration trigger from here checkbox is checked.

@connorstorer-kbxcom connorstorer-kbxcom added the bug Something isn't working label May 3, 2024
@tjolliff
Copy link

tjolliff commented May 8, 2024

Also seeing similar behavior.

@connorstorer-kbxcom
Copy link
Author

Wondering if this is the intended functionality & assumption that YAML pipelines would be using pr within their yaml?
https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/pr?view=azure-pipelines#remarks
image

@tjolliff
Copy link

tjolliff commented May 8, 2024

I tested out adding the pr section to the yaml file before rewiring the pipeline and got the same result :(
Here were the steps I followed:

  • migrate repo from ADO to GH
  • update yaml file in GH to include pr section
  • ran the rewire-pipeline command
  • checked settings in ADO pipeline; PR triggers was still overridden

@connorstorer-kbxcom
Copy link
Author

connorstorer-kbxcom commented May 8, 2024

I would expect it to still be overridden, but does a PR to github repo automatically kick off ADO pipeline?

EDIT: Oh nevermind, that should be default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants