-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo_reset.bat
60 lines (60 loc) · 1.6 KB
/
demo_reset.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@echo off
REM You will need to download and install GitBash, Profisee Command Line Utility.
REM Create a folder structure just like the variable env_maindemo or update the script.
REM Make sure all variables are updated. This script should pull the latest from Github Profisee Partners folder and update your environment. This script won't delete anything on your environment.
REM Created by Moacyr Passador
set cid_main=0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAc
set env_maindemo=https://profiseecloud.com/YOUR_ENVIRONMENT/
set maindemo=C:\demoreset\Presales\MainDemo
set "clu=C:\Program Files\Profisee\Master Data Maestro Utilities\"
set version=23.2.0\
set git_location=C:\demoreset\Presales
echo.
echo ------
echo.
echo Script to reset sharable pre-sales demo environments from GitHub
echo.
echo ------
cd %git_location%
if exist %maindemo% (
git pull
) else (
cd ..
git clone https://github.com/Profisee/partners.git
)
echo.
echo.
echo Command Line Utility location: %clu%%version%
echo.
echo.
echo Environment to be exported: %env_maindemo%
echo.
echo.
echo Starting importing assets.
echo.
echo.
cd %clu%%version%
Profisee.MasterDataMaestro.Utilities.exe /URL:%env_maindemo% /CLIENTID:%cid_main% /IMPORT /TYPE:ALL /FILE:"%maindemo%"
echo.
echo.
echo Import completed!
if "%errorlevel%"=="1" (
Echo Success.
) else (
echo Import had errors.
)
echo.
echo ------
echo.
echo Starting deploying data.
echo.
echo.
cd %clu%%version%
Profisee.MasterDataMaestro.Utilities.exe /URL:%env_maindemo% /CLIENTID:%cid_main% /DEPLOYDATA /FILE:"%maindemo%\AllData.archive"
echo.
echo.
echo Deploy completed!
echo.
echo.
echo Done
cd %git_location%