Commit 0eafb72 1 parent 1e1baff commit 0eafb72 Copy full SHA for 0eafb72
File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -96,15 +96,19 @@ param(
96
96
}
97
97
}
98
98
99
- $logFile = " $PWD \initialize-$ ( get-date - Format yyyyMMdd- hhmm) .log"
100
- $transcript = " $PWD \initialize-transcript-$ ( get-date - Format yyyyMMdd- hhmm) .log"
101
99
102
100
Start-Transcript - Path $transcript
103
101
102
+ LogIt " Starting init: SkipVsts: $SkipVsts SkipSql: $SkipSql SkipTentacle: $SkipTentacle SkipIIS: $SkipIIS "
103
+ LogIt " Running from $PSScriptRoot "
104
+
104
105
LogIt " Creating folder $Folder "
105
106
$null = mkdir $Folder - ErrorAction SilentlyContinue
106
107
Set-Location $Folder
107
108
109
+ $logFile = " $PWD \initialize-$ ( get-date - Format yyyyMMdd- hhmm) .log"
110
+ $transcript = " $PWD \initialize-transcript-$ ( get-date - Format yyyyMMdd- hhmm) .log"
111
+
108
112
if ( Test-Path .\BootcampScripts )
109
113
{
110
114
LogIt " .\BootcampScripts exists, removing it"
@@ -121,8 +125,6 @@ try {
121
125
122
126
$userDomain = " $env: COMPUTERNAME \$AdminUserName "
123
127
124
- logIt " Starting init: SkipVsts: $SkipVsts SkipSql: $SkipSql SkipTentacle: $SkipTentacle SkipIIS: $SkipIIS "
125
-
126
128
if ( ! $SkipVsts )
127
129
{
128
130
.\Add-VstsAgent.ps1 - LogFile $logFile - AccountUrl $AccountUrl - PAT $PAT - AdminUser $AdminUserName - AdminUserPwd $AdminUserPwd - AgentPool $AgentPool - DownloadFolder $PSScriptRoot
Original file line number Diff line number Diff line change 7
7
8
8
Logit " Installing Chrome"
9
9
10
- install-packageprovider chocolatey
10
+ install-packageprovider chocolatey - force
11
11
Logit - indent " Chocolatey installed"
12
12
13
- install-package googlechrome
13
+ install-package googlechrome - force
14
14
Logit - indent " Chrome installed"
You can’t perform that action at this time.
0 commit comments