Skip to content

Instantly share code, notes, and snippets.

View LarrysGIT's full-sized avatar
👽

Larry Song LarrysGIT

👽
View GitHub Profile
@LarrysGIT
LarrysGIT / Jenkins.GetNextExecutionTime.txt
Last active June 30, 2020 05:05
Jenkins pipeline - get next cron execution time of a job
/*
Inspired by
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/triggers/TimerTrigger.java#L107
Some approvals are required in Jenkins in order to execute the following sample
*/
import hudson.scheduler.CronTabList;
pipeline {
@LarrysGIT
LarrysGIT / Powershell script to export load test results from Visual Studio.ps1
Last active September 30, 2020 23:09
visual studio, load test results, LoadTestExporterImporter
# References,
# https://stackoverflow.com/questions/46671790/how-to-export-visual-studio-load-test-results-in-ltrar-format
# http://answers.flyppdevportal.com/MVC/Post/Thread/07f025fb-67ad-4569-b10d-b8913a575a3a
# Import the API
[System.Reflection.Assembly]::LoadFrom("C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.QualityTools.LoadTest.dll") | Out-Null
[System.Reflection.Assembly]::LoadWithPartialName("LoadTest") | Out-Null
# SQL connectionstring of results store