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

Export-PipeScript should allow conditional builds #907

Closed
3 tasks
StartAutomating opened this issue Feb 14, 2024 · 0 comments
Closed
3 tasks

Export-PipeScript should allow conditional builds #907

StartAutomating opened this issue Feb 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@StartAutomating
Copy link
Owner

StartAutomating commented Feb 14, 2024

In a number of places throughout PipeScript, [ValidateScript] and [ValidatePattern] are used to determine validity of a thing, given an input.

Export-PipeScript should use this pattern to allow builds to be conditional.

  • A *.build.ps1 should be considered valid if the commit matches [ValidatePattern]
  • A *.build.ps1 should be considered valid if it has a [ValidateScript] that returns true
  • A *.build.ps1 with no validation should always be considered valid

Handling these three variations on a theme allow for long running/slow changing builds to be run less frequently.

For example, a build could run only when "test" is present in the CI message.

Or, more interestingly, a portion of build could run only if the last checkin was older than a timeframe.

@StartAutomating StartAutomating self-assigned this Feb 14, 2024
@StartAutomating StartAutomating added the enhancement New feature or request label Feb 14, 2024
StartAutomating pushed a commit that referenced this issue Feb 16, 2024
StartAutomating pushed a commit that referenced this issue Mar 6, 2024
StartAutomating pushed a commit that referenced this issue Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant