This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Revalidation] Add script to initialize the revalidation job (#531)
This script will be run on the first deployment of the revalidation job. It calls the initialization phase and exits. This script can be registered as a Windows service as: 1. The initialization phase verifies that the initialization phase hasn't previously completed. If it has previously completed, the initialization phase exits. 2. The initialization phase cleans up the state if the previous initialization attempt failed.
- Loading branch information
1 parent
9535e69
commit 71b2912
Showing
7 changed files
with
24 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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 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 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
16 changes: 16 additions & 0 deletions
16
src/NuGet.Services.Revalidate/Scripts/NuGet.Services.Revalidate.Initialize.cmd
This file contains 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,16 @@ | ||
@echo OFF | ||
|
||
cd bin | ||
|
||
:Top | ||
echo "Initializing job - #{Jobs.nuget.services.revalidate.Title}" | ||
|
||
title #{Jobs.nuget.services.revalidate.Title} | ||
|
||
start /w NuGet.Services.Revalidate.exe ^ | ||
-Configuration #{Jobs.nuget.services.revalidate.Configuration} ^ | ||
-InstrumentationKey "#{Jobs.nuget.services.revalidate.InstrumentationKey}" ^ | ||
-Initialize ^ | ||
-VerifyInitialization | ||
|
||
echo "Initialized #{Jobs.nuget.services.revalidate.Title}" |
This file contains 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 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 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