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

Content replacement automation to all repos #4928

Merged
merged 25 commits into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0b9fbaa
content replacement automation to all repos
sima-zhu Jan 10, 2023
213a1bb
Update agent-pool-migration.yml
sima-zhu Jan 10, 2023
c4828b5
Update Repo-File-Content-Replacements.ps1
sima-zhu Jan 10, 2023
18eea88
print
sima-zhu Jan 10, 2023
5160aa2
remove not used
sima-zhu Jan 10, 2023
2365b04
change assigness
sima-zhu Jan 10, 2023
c730cb7
change the default path
sima-zhu Jan 10, 2023
745945b
remove extra lines
sima-zhu Jan 10, 2023
7f2b87f
change to single quotes
sima-zhu Jan 10, 2023
f59538f
Update Repo-File-Content-Replacements.ps1
sima-zhu Jan 10, 2023
3d00e58
Update eng/pipelines/agent-pool-migration.yml
sima-zhu Jan 11, 2023
450d4e3
Update agent-pool-migration.yml
sima-zhu Jan 11, 2023
6da0b03
Address comments
sima-zhu Jan 12, 2023
cf94448
add default path
sima-zhu Jan 12, 2023
4b8f246
add test cases comment
sima-zhu Jan 12, 2023
df9a497
add more comments
sima-zhu Jan 12, 2023
50805eb
add more comments
sima-zhu Jan 12, 2023
e5f785d
add more comments
sima-zhu Jan 12, 2023
37ec2e4
Update eng/scripts/Repo-File-Content-Replacements.ps1
sima-zhu Jan 12, 2023
48c56b4
move the tests under scripts folder
sima-zhu Jan 12, 2023
030f95a
Merge branch 'main' of https://github.com/Azure/azure-sdk-tools into …
sima-zhu Jan 12, 2023
62b7306
move scripts test to scripts folder
sima-zhu Jan 12, 2023
f5e3734
Merge branch 'migrate_pool' of https://github.com/sima-zhu/azure-sdk-…
sima-zhu Jan 12, 2023
e50ab99
Fix the paht
sima-zhu Jan 12, 2023
f73cb44
add force remove
sima-zhu Jan 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions eng/scripts/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger:
branches:
include:
- main
- feature/*
- release/*
- hotfix/*
paths:
include:
- eng/scripts-tests/*

pr:
branches:
include:
- main
- feature/*
- release/*
- hotfix/*
paths:
include:
- eng/scripts-tests/*
sima-zhu marked this conversation as resolved.
Show resolved Hide resolved

extends:
template: /eng/common/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml
parameters:
TargetDirectory: eng/scripts/
TargetTags: 'UnitTest'
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Describe "repo-file-content-replacement" -Tag "UnitTest" {
$backupFolder = "$PSScriptRoot/inputs/backup"
Backup-Folder -targetFolder $ScannedDirectory -backupFolder $backupFolder
$migrationMap = Get-Content $migrationMapFile -Raw
. $PSScriptRoot/../../scripts/Repo-File-Content-Replacements.ps1 `
. $PSScriptRoot/../../Repo-File-Content-Replacements.ps1 `
-ExcludePathsRegex $exludePaths `
-IncludeFromExcludedPathsRegex $includeFromExcludedPaths `
-MigrationMapJson $migrationMap `
Expand All @@ -80,7 +80,7 @@ Describe "repo-file-content-replacement" -Tag "UnitTest" {
$backupFolder = "$PSScriptRoot/inputs/backup"
Backup-Folder -targetFolder $ScannedDirectory -backupFolder $backupFolder
$migrationMap = Get-Content $migrationMapFile -Raw
. $PSScriptRoot/../../scripts/Repo-File-Content-Replacements.ps1 `
. $PSScriptRoot/../../Repo-File-Content-Replacements.ps1 `
-ExcludePathsRegex $exludePaths `
-MigrationMapJson $migrationMap `
-ScannedDirectory $ScannedDirectory
Expand Down