Kia ora,
Do you have any examples or pointers of creating a Dynamic Pipeline that responds to the repository's contents?
I want to add terraform-related steps if a folder `iac` is in the repository.
I am not quite sure which parts of the documentation can help me here.
Ngā mihi
Hi @Georg Duemlein - great question!
The Code Search API is definitely the way to go for that. You can make a search in a particular repo (or across multiple repos) using a Glob style search syntax and look for your `iac` directory when your Dynamic Pipeline runs.
Another option if you want to implement logic only when that `iac` directory is updated is to look at the diff stat of the Pull Request for Pipelines that are triggered against PR's.
We recently ran a webinar on this exact topic, using it to implement selective test execution. The full code for that webinar's app is available here and we'll have the recording published on Youtube within a few days.
I finally got to watch the video and read your posts.
Yes, this is what I am looking for, thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.