Deploy using script but using ecrypted password.
I have a deploy script that runs fine. However, I would like to encrypt the passwords used in this script like:
@echo off cls
set msBuildDir="C:\Program Files (x86)\MSBuild\12.0\Bin"
REM Deploy Settings Services
call %msBuildDir%\msbuild.exe
%~dp0src\Informedica.Settings.ServiceStack\Informedica.Settings.ServiceStack.csproj
/p:DeployOnBuild=true /p:PublishProfile=DemoServer
/p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true
REM Deploy GenImport Services
call %msBuildDir%\msbuild.exe
%~dp0src\Informedica.GenImport.ServiceStack\Informedica.GenImport.ServiceStack.csproj
/p:DeployOnBuild=true /p:PublishProfile=DemoServer
/p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true
REM Deploy GenForm Services
call %msBuildDir%\msbuild.exe
%~dp0src\Informedica.GenForm.ServiceStack\Informedica.GenForm.ServiceStack.csproj
/p:DeployOnBuild=true /p:PublishProfile=DemoServer
/p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true
REM Deploy GenPres Services
call %msBuildDir%\msbuild.exe
%~dp0src\Informedica.GenPres.ServiceStack\Informedica.GenPres.ServiceStack.csproj
/p:DeployOnBuild=true /p:PublishProfile=DemoServer
/p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true
REM Deploy GenPDMS Services
call %msBuildDir%\msbuild.exe
%~dp0src\Informedica.GenPDMS.ServiceStack\Informedica.GenPDMS.ServiceStack.csproj
/p:DeployOnBuild=true /p:PublishProfile=DemoServer
/p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true
REM Deploy GenPres MvcWeb Services
call %msBuildDir%\msbuild.exe
%~dp0src\Informedica.GenPres.MvcWeb\Informedica.GenPres.MvcWeb.csproj
/p:DeployOnBuild=true /p:PublishProfile=DemoServer
/p:Password=[ENCRYPTED!!] /p:AllowUntrustedCertificate=true
How can I achieve this?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 13 Jan, 2015 10:05 PM
You can use secure variables, so in script you would have:
Let me know if you have any questions.
2 Posted by halcwb on 15 Jan, 2015 06:53 AM
That easy? Thanks!
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.