-
Notifications
You must be signed in to change notification settings - Fork 437
[Utilities] Added utility to bulk-run pipelines for a given branch #1609
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5fd6030
Latest draft
AlexanderSehr c2d4c89
Added ADO Logic
AlexanderSehr 3246748
Added ADO Logic
AlexanderSehr a7a90da
Update to latest
AlexanderSehr 205415b
Added documentation
AlexanderSehr 42dd4c6
Update to latest
AlexanderSehr 1a4d1fa
Optimizations
AlexanderSehr a6b6577
Update to latest
AlexanderSehr ff593a3
Added docs
AlexanderSehr 4a16621
Update docs/wiki/Contribution guide - Validate module on scale.md
AlexanderSehr 5508432
Update docs/wiki/Contribution guide - Validate module on scale.md
AlexanderSehr 6395225
Update docs/wiki/Contribution guide - Validate module on scale.md
AlexanderSehr d7cf4d1
Improved runtime
AlexanderSehr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
docs/wiki/Contribution guide - Validate module on scale.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| Use this script to tests multiple modules with a given branch, using the CI environment. The script will start the pipelines in the CI environment causing both static & deployment tests to run. | ||
|
|
||
| --- | ||
|
|
||
| ### _Navigation_ | ||
|
|
||
| - [Location](#location) | ||
| - [How it works](#how-it-works) | ||
| - [How to use it](#how-to-use-it) | ||
|
|
||
| --- | ||
| # Location | ||
|
|
||
| You can find the script under [`/utilities/tools/Invoke-PipelinesForBranch.ps1`](https://github.com/Azure/ResourceModules/blob/main/utilities/tools/Invoke-PipelinesForBranch.ps1) | ||
|
|
||
| # How it works | ||
|
|
||
| The most important parameter is the 'Environment' you want to run the pipelines for, that is, either GitHub or Azure DevOps. Depending on your choice you'll have to provide a Personal Access Token that grants the permissions to read & trigger pipelines in the desired environment. | ||
|
|
||
| Upon triggering, the utility will: | ||
| 1. Fetch all pipelines in the target environment and filter them down to module pipelines by default. | ||
| 1. Trigger these pipelines for the provided targeted branch (e.g. `main`) | ||
| 1. Return the formatted status badges for the pipelines that were triggered. | ||
|
|
||
| # How to use it | ||
|
|
||
| For details on how to use the function, please refer to the script's local documentation. | ||
| > **Note:** The script must be loaded ('*dot-sourced*') before the function can be invoked. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.