Integrate Exchange retention reset in CI (#2807)
Adds retention to current CI action --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [x] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Issue(s) #### Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
1b6ad654e8
commit
dc8ec86dd3
10
.github/actions/purge-m365-user-data/action.yml
vendored
10
.github/actions/purge-m365-user-data/action.yml
vendored
@ -43,6 +43,16 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
./foldersAndItems.ps1 -WellKnownRoot root -User ${{ inputs.user }} -FolderPrefixPurge ${{ inputs.folder-prefix }} -FolderBeforePurge ${{ inputs.older-than }}
|
./foldersAndItems.ps1 -WellKnownRoot root -User ${{ inputs.user }} -FolderPrefixPurge ${{ inputs.folder-prefix }} -FolderBeforePurge ${{ inputs.older-than }}
|
||||||
|
|
||||||
|
- name: Reset retention for all mailboxes to 0
|
||||||
|
if: ${{ inputs.folder-prefix == '' && inputs.user == '' }}
|
||||||
|
shell: pwsh
|
||||||
|
working-directory: ./src/cmd/purge/scripts
|
||||||
|
env:
|
||||||
|
M365TENANT_ADMIN_USER: ${{ inputs.m365-admin-user }}
|
||||||
|
M365TENANT_ADMIN_PASSWORD: ${{ inputs.m365-admin-password }}
|
||||||
|
run: |
|
||||||
|
./setRetention.ps1
|
||||||
|
|
||||||
- name: Run the static purge script set
|
- name: Run the static purge script set
|
||||||
if: ${{ inputs.folder-prefix == '' }}
|
if: ${{ inputs.folder-prefix == '' }}
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|||||||
7
.github/workflows/ci_test_cleanup.yml
vendored
7
.github/workflows/ci_test_cleanup.yml
vendored
@ -13,6 +13,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
folder: [Corso_Restore_, TestRestore, testfolder, incrementals_ci_, Alcion_Restore_, '']
|
folder: [Corso_Restore_, TestRestore, testfolder, incrementals_ci_, Alcion_Restore_, '']
|
||||||
user: [CORSO_M365_TEST_USER_ID, CORSO_SECONDARY_M365_TEST_USER_ID, EXT_SDK_TEST_USER_ID]
|
user: [CORSO_M365_TEST_USER_ID, CORSO_SECONDARY_M365_TEST_USER_ID, EXT_SDK_TEST_USER_ID]
|
||||||
|
# jobs are expanded per user. Try to run 2 jobs per active user at a time
|
||||||
|
max-parallel: 6
|
||||||
|
include:
|
||||||
|
- folder: ""
|
||||||
|
user: ""
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -37,3 +42,5 @@ jobs:
|
|||||||
azure-client-id: ${{ secrets.CLIENT_ID }}
|
azure-client-id: ${{ secrets.CLIENT_ID }}
|
||||||
azure-client-secret: ${{ secrets.CLIENT_SECRET }}
|
azure-client-secret: ${{ secrets.CLIENT_SECRET }}
|
||||||
azure-tenant-id: ${{ secrets.TENANT_ID }}
|
azure-tenant-id: ${{ secrets.TENANT_ID }}
|
||||||
|
m365-admin-user: ${{ secrets.M365_TENANT_ADMIN_USER }}
|
||||||
|
m365-admin-password: ${{ secrets.M365_TENANT_ADMIN_PASSWORD }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user