Initial commit for the biztalk suspended isntances local check
build / build (push) Has been cancelled
build / build (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "ROOT=%~dp0.."
|
||||
set "SOLUTION=%ROOT%\BizTalkSuspendedInstancesCheck.sln"
|
||||
|
||||
if not defined MSBUILD (
|
||||
set "VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
|
||||
if exist "%VSWHERE%" (
|
||||
for /f "usebackq tokens=*" %%i in (`"%VSWHERE%" -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe`) do (
|
||||
set "MSBUILD=%%i"
|
||||
goto :found_msbuild
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
:found_msbuild
|
||||
if not defined MSBUILD (
|
||||
for /f "tokens=*" %%i in ('where msbuild 2^>nul') do (
|
||||
set "MSBUILD=%%i"
|
||||
goto :found_msbuild_path
|
||||
)
|
||||
)
|
||||
|
||||
:found_msbuild_path
|
||||
if not defined MSBUILD (
|
||||
echo MSBuild was not found. Install Visual Studio Build Tools and the .NET Framework 4.6.1 Developer Pack.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Using MSBuild: %MSBUILD%
|
||||
"%MSBUILD%" "%SOLUTION%" /m /restore /p:Configuration=Release /p:Platform="Any CPU"
|
||||
exit /b %ERRORLEVEL%
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "ROOT=%~dp0.."
|
||||
set "PROJECT_BIN=%ROOT%\src\BizTalkSuspendedInstancesCheck\bin\Release"
|
||||
set "ARTIFACTS=%ROOT%\artifacts"
|
||||
set "DEPLOY=%ARTIFACTS%\BizTalkSuspendedInstancesCheck-deploy"
|
||||
set "APPDIR=%DEPLOY%\BizTalkSuspendedInstancesCheck"
|
||||
|
||||
call "%ROOT%\scripts\build-release.cmd"
|
||||
if errorlevel 1 exit /b %ERRORLEVEL%
|
||||
|
||||
if exist "%DEPLOY%" rmdir /s /q "%DEPLOY%"
|
||||
mkdir "%APPDIR%"
|
||||
|
||||
copy "%ROOT%\deployment\checkmk\biztalk_suspended_instances.cmd" "%DEPLOY%\" >nul
|
||||
copy "%PROJECT_BIN%\BizTalkSuspendedInstancesCheck.exe" "%APPDIR%\" >nul
|
||||
copy "%PROJECT_BIN%\BizTalkSuspendedInstancesCheck.exe.config" "%APPDIR%\" >nul
|
||||
if exist "%PROJECT_BIN%\BizTalkSuspendedInstancesCheck.pdb" copy "%PROJECT_BIN%\BizTalkSuspendedInstancesCheck.pdb" "%APPDIR%\" >nul
|
||||
copy "%ROOT%\README.md" "%DEPLOY%\" >nul
|
||||
copy "%ROOT%\Dokumentation.md" "%DEPLOY%\" >nul
|
||||
if exist "%ROOT%\docs" xcopy "%ROOT%\docs" "%DEPLOY%\docs\" /e /i /y >nul
|
||||
|
||||
echo Deployment folder created: %DEPLOY%
|
||||
exit /b 0
|
||||
Reference in New Issue
Block a user