This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task Zip { | |
$outputPath = "$buildFolder\output\LaunchSitecore.Build.$buildNumber.zip" | |
Copy-Item "$buildFolder\website\bin_Net4\*" "$buildFolder\website\bin\" | |
sz a $outputPath "$buildFolder\data" -xr!serialization* -mx1 | |
sz a $outputPath "$buildFolder\website" -mx1 | |
sz a $outputPath "$buildFolder\databases" -xr!*\Oracle\* -mx1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scriptRoot = Split-Path (Resolve-Path $myInvocation.MyCommand.Path) | |
if (-not (test-path "$env:ProgramFiles\7-Zip\7z.exe")) {throw "$env:ProgramFiles\7-Zip\7z.exe needed"} | |
set-alias sz "$env:ProgramFiles\7-Zip\7z.exe" | |
properties { | |
$distributivePath = "C:\Sitecore 6.6.0 rev. 130404.zip" | |
$localStorage = "C:\LocalStorage" | |
$distributiveName = [System.IO.Path]::GetFileNameWithoutExtension($distributivePath) | |
$zipFile = "$localStorage\$distributiveName.zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clear-Host | |
remove-module [p]sake | |
import-module .\Tools\psake\psake.psm1 | |
$psake.use_exit_on_error = $true | |
Invoke-psake .\buildscript.ps1 Package -properties @{ buildNumber = '12345'; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$buildFolder = Resolve-Path .. | |
$sourcePath = "$buildFolder\Output\LaunchSitecore.Build.12345.zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cleanup Databases from previuous installation (if needed) | |
foreach ($db in $databases) | |
{ | |
Delete-Database $server "$siteName.$db" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clear-Host | |
# Framework initialization | |
$scriptRoot = Split-Path (Resolve-Path $myInvocation.MyCommand.Path) | |
$env:PSModulePath = $env:PSModulePath + ";$scriptRoot\Tools\PowerCore\Framework" | |
Import-Module WebUtils | |
Import-Module ConfigUtils | |
Import-Module DBUtils | |
Import-Module IISUtils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var buildConfigId = this.Url.RequestContext.RouteData.Values["id"] as string ?? "bt1"; | |
var client = new TeamCityClient("http://your team city server"); | |
// Connect with Guest Authentication | |
client.Connect(string.Empty, string.Empty, true); | |
var config = client.BuildConfigByConfigurationId(buildConfigId); | |
foreach (Build build in client.SuccessfulBuildsByBuildConfigId(buildConfigId).Take(5)) | |
{ | |
var artifacts = client.ArtifactsByBuildConfigIdAndBuildNumber(buildConfigId, build.Number); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExtendedIndexConfiguration : LuceneIndexConfiguration | |
{ | |
private bool templatesExcluded; | |
public void IncludeTemplate(string value) | |
{ | |
Assert.ArgumentNotNull(value, "value"); | |
Assert.IsTrue(ID.IsID(value), "Configuration: IncludeTemplate entry not a valid GUID. Field ID Value: " + value); | |
// First exclude all templates, if it is not yet done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<include hint="list:IncludeTemplate"> | |
<Article>{7B14FE7B-F658-4885-AAD6-7D569BAE579B}</Article> | |
</include> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExecutionPolicy RemoteSigned | |
$mongoDbPath = "C:\MongoDB" | |
$mongoDbConfigPath = "$mongoDbPath\mongod.cfg" | |
$url = "http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.4.9.zip" | |
$zipFile = "$mongoDbPath\mongo.zip" | |
$unzippedFolderContent ="$mongoDbPath\mongodb-win32-x86_64-2008plus-2.4.9" | |
if ((Test-Path -path $mongoDbPath) -eq $True) | |
{ |