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
#!/bin/sh | |
# | |
# chkconfig: 35 99 99 | |
# description: Node.js /home/nodejs/sample/app.js | |
# | |
. /etc/rc.d/init.d/functions | |
USER="weinre" |
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
function GetAzureSubscription([string]$userName, [string]$password, [string]$subscriptionName) | |
{ | |
$secpasswd = ConvertTo-SecureString $password -AsPlainText -Force | |
$cred = New-Object System.Management.Automation.PSCredential ($userName, $secpasswd) | |
Add-AzureAccount -Credential $cred | |
Select-AzureSubscription -SubscriptionName $subscriptionName -Current | |
} |
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
#Switches slots on azure web app (expects that there is only one deployment slot present) | |
#Example usage: .\SwitchAzureWebsite.ps1 username password "some subscription name" "some-webappname" | |
#where | |
#username - user with co-administrator rights on subscription | |
#password - password for this user | |
#some sbuscription name - name of subscrtion | |
#"some-webappname" - webapp to switch slot for | |
param( |
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
<PropertyGroup> | |
<OnBeforePackageUsingManifest> | |
$(OnBeforePackageUsingManifest); | |
AddSpecificSkipRule; | |
</OnBeforePackageUsingManifest> | |
<AfterAddIisSettingAndFileContentsToSourceManifest> | |
$(AfterAddIisSettingAndFileContentsToSourceManifest); | |
AddSpecificSkipRule; | |
</AfterAddIisSettingAndFileContentsToSourceManifest> | |
<!-- Due to known error (http://stackoverflow.com/questions/12576662/msdeploy-skip-rules-when-using-msbuild-publishprofile-with-visual-studio-2012) |
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
<?xml version="1.0"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<settings> | |
<!-- INSTANCE NAME | |
Unique name for Sitecore instance. | |
Default value: (machine name and IIS site name) | |
--> | |
<setting name="InstanceName"> | |
<patch:attribute name="value"></patch:attribute> |
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
param( | |
[string]$folderWithTransforms, | |
[string]$webRoot, | |
[string]$roleName, | |
[string]$transformationAssemblyPath | |
) | |
Write-Output "Starting collecting files for transformations" | |
if ([string]::IsNullOrWhiteSpace($folderWithTransforms)) { |
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
# path to sonarscanner for msbuild | |
$SonarQubeRunner = $(Resolve-Path ".\SonarScanner.MSBuild.exe").Path; | |
# sonar qube token for auth | |
$sonarQubeToken = ""; | |
# sonar server hostname | |
$sonarQubeHostName = ""; | |
$sonarQubeScheme = "https"; | |
$sonarQubeUrl = "$sonarQubeScheme://$sonarQubeHostName"; | |
# sonarqube project name | |
$sonarQubeProjectName = ""; |
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
$unicornFilesZip = "c:\temp\unicorn.zip"; | |
$indicatorFileName = "z.z." + "$(buildNumberVar)" + ".txt"; | |
$scmTargetPath = "C:\home\N"; | |
$unicornFolder = Split-Path $scmTargetPath -Leaf; | |
function Get-HttpBasicAuthHeader | |
{ | |
Param( | |
[Parameter(Mandatory=$true)] | |
[string]$UserName, |
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
############################################################################### | |
<# | |
.SYNOPSIS | |
GetTicketsInBuld | |
.DESCRIPTION | |
GetTicketsInBuld collects Jira tickets in build, basing on last successful build in target environment | |
.PARAMETER authHeaderValue | |
Added for OutputDebugDetails purpose to allow one to specify Basic auth by passing string like "Basic ..." |