This file contains hidden or 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
<!-- bundling and minification will only kick off when debug='false' is set. this tells the runtime that you're in a release environment --> | |
<compilation debug="false" targetFramework="4.5" /> |
This file contains hidden or 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
exports.post = function(request, response) { | |
console.log(request.body); // for debugging | |
var hipchat = require('node-hipchat'); | |
var hipClient = new hipchat('myV1APIKey'); | |
var color = "green"; // default to success color | |
var message = "Kudu deployment to <strong>" + request.body.siteName + "</strong> (" + request.body.deployer + ") triggered by <strong>" + request.body.author + "</strong>"; | |
if (request.body.status === "success") { | |
message += " was successful!"; |
This file contains hidden or 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
{ | |
"id": "005c554bbeeaac0000000000000000000000", | |
"status": "success", | |
"statusText": "", | |
"authorEmail": "[email protected]", | |
"author": "Chris Kirby", | |
"message": "my last commit message", | |
"progress": "", | |
"deployer": "who triggered the deployment", | |
"receivedTime": "2014-05-12T23:45:17.4767323Z", |
This file contains hidden or 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
try {} | |
catch (Exception e) | |
{ | |
// any arg of type IList<string> will be treated as tags and any type of IDictionary will be treated as custom data | |
// any arg of type Exception will be wrapped in the primary raygun exception object | |
var customData = new Dictionary<string, object> {{"myType", someObject}; | |
var tags = new List<string> { "tag1", "tag1" }; | |
Trace.TraceError("Something bad happened", e, tags, customData); | |
// or inline with arg just added to a default Dictionary<object, object> object | |
Trace.TraceError("something bad happened", e, new List<string> {"tag1"}, someParameter, someObject); |
This file contains hidden or 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
protected virtual MessageContext MessageFromTraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string message, params object[] args) | |
{ | |
var context = new MessageContext(new Exception(message), new List<string>(), new Dictionary<object, object>()); | |
if (args != null) | |
{ | |
var localArgs = args.ToList(); | |
// check the args for custom data | |
var custom = localArgs.FirstOrDefault(a => a is IDictionary); | |
if (custom != null) |
This file contains hidden or 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
/p:Configuration=Debug /p:DeployOnBuild=True /p:PublishProfile="NameOfPublishProfile" /p:ProfileTransformWebConfigEnabled=False /p:Password=PasswordFromPublishProfile /p:AllowUntrustedCertificate=true |
This file contains hidden or 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
:: use the nuget.exe from your repository with your custom nuget.config | |
"${bamboo.build.working.directory}/tools/nuget/nuget.exe" restore "${bamboo.build.working.directory}/src/MySolution.sln" ^ | |
-ConfigFile "${bamboo.build.working.directory}/tools/nuget/nuget.config" |
This file contains hidden or 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
SELECT CONVERT (varchar, getdate(), 126) AS runtime, | |
mig.index_group_handle, mid.index_handle, | |
CONVERT (decimal (28,1), migs.avg_total_user_cost * migs.avg_user_impact * | |
(migs.user_seeks + migs.user_scans)) AS improvement_measure, | |
'CREATE INDEX missing_index_' + CONVERT (varchar, mig.index_group_handle) + '_' + | |
CONVERT (varchar, mid.index_handle) + ' ON ' + mid.statement + ' | |
(' + ISNULL (mid.equality_columns,'') | |
+ CASE WHEN mid.equality_columns IS NOT NULL | |
AND mid.inequality_columns IS NOT NULL | |
THEN ',' ELSE '' END + ISNULL (mid.inequality_columns, '') |
This file contains hidden or 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 issues; | |
exports.post = function(request, response) { | |
var rep = request.body.repository; | |
var ref = request.body.refChanges; | |
var ch = request.body.changesets; | |
// let me specify the destination and noise level via the query string | |
var channel = "#devops"; | |
if (request.query.channel != undefined && request.query.channel != null) |
This file contains hidden or 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
exports.post = function(request, response) { | |
var p = request.body; | |
var Slack = require('slack-node'); | |
var slack = new Slack("[mywebhookskey]", "[myteamname]"); | |
// let me specify the destination and noise level via the query string | |
var channel = "#devops"; | |
if (request.query.channel != undefined && request.query.channel != null) | |
channel = request.query.channel; |