@@ -56,8 +56,14 @@ Enter-Build {
5656 $Timestamp = Get-date - uformat " %Y%m%d-%H%M%S"
5757 $PSVersion = $PSVersionTable.PSVersion.Major
5858 Set-BuildEnvironment - force
59+ write-build Green " Current Branch Name: $BranchName "
5960
6061 $PassThruParams = @ {}
62+ if ( ($VerbosePreference -ne ' SilentlyContinue' ) -or ($CI -and ($BranchName -ne ' master' )) ) {
63+ write-build Green " Verbose Build Logging Enabled"
64+ $SCRIPT :VerbosePreference = " Continue"
65+ $PassThruParams.Verbose = $true
66+ }
6167
6268
6369 # If the branch name is master-test, run the build like we are in "master"
@@ -69,12 +75,6 @@ Enter-Build {
6975 }
7076 write-build Green " Current Branch Name: $BranchName "
7177
72- if ( ($VerbosePreference -ne ' SilentlyContinue' ) -or ($CI -and ($BranchName -ne ' master' )) ) {
73- write-build Green " Verbose Build Logging Enabled"
74- $SCRIPT :VerbosePreference = " Continue"
75- $PassThruParams.Verbose = $true
76- }
77-
7878 write-verboseheader " Build Environment Prepared! Environment Information:"
7979 Get-BuildEnvironment | format-list | out-string | write-verbose
8080
@@ -271,6 +271,7 @@ task UpdateMetadata CopyFilesToBuildDir,Version,{
271271 }
272272
273273
274+
274275 # Create an empty file in the root directory of the module for easy identification that its not a valid release.
275276 " This is a prerelease build and not meant for deployment!" > (Join-Path $ProjectBuildPath " PRERELEASE-$ProjectSemVersion " )
276277 }
0 commit comments