Skip to content

Conversation

@colleenmcginnis
Copy link
Contributor

Test out using a wildcard pattern in build_pr.sh to determine when we should run the AsciiDoc preview build. If this works, it will be an imperfect solution because it would not build if only an image was updated in a PR, but that might be ok. 🤷

This PR builds on #3182 by wrapping the path in quotes. It looks like that could be necessary in some environments when using wildcards, and since "origin/$GITHUB_PR_TARGET_BRANCH" is wrapped in quotes even though it works without them on my local machine... I'm hoping this is the trick. I also expanded the matching pattern to include any AsciiDoc file. (I'm not sure if there's a better way to test this.)

To test this we'll have to:

  1. Merge this PR
  2. Open a test PR in elastic/ecs-logging

Then come back here and update the other repos.

@bmorelli25 what do you think about this approach?

@github-actions
Copy link

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

@colleenmcginnis colleenmcginnis changed the title [test] Try wrapping in quotes Test wildcard pattern in build_pr.sh (part 2) Mar 13, 2025
Copy link
Member

@bmorelli25 bmorelli25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! Let's try it out.

@colleenmcginnis colleenmcginnis marked this pull request as ready for review March 13, 2025 16:14
@colleenmcginnis colleenmcginnis requested a review from a team as a code owner March 13, 2025 16:14
@colleenmcginnis colleenmcginnis merged commit 90883cb into master Mar 13, 2025
3 checks passed
@colleenmcginnis colleenmcginnis deleted the cmcg-test-wildcard-again branch March 13, 2025 16:14
reakaleek pushed a commit that referenced this pull request Mar 28, 2025
* try wrapping in quotes

* Update .buildkite/scripts/build_pr.sh
@reakaleek reakaleek mentioned this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants