Skip to content

Instantly share code, notes, and snippets.

Owen McDonnell OwenMcDonnell

Block or report user

Report or block OwenMcDonnell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View appveyor-matrix.yml
image: Visual Studio 2015
environment:
matrix:
- JOB_NAME: test
JOB_DESC: "the one that should run every time"
- JOB_NAME: release
JOB_DESC: "the one that should run on the release branch"
@OwenMcDonnell
OwenMcDonnell / Get_project_builds_by_branch.ps1
Created Jun 14, 2019
Querying api for project history and filtering by branch
View Get_project_builds_by_branch.ps1
$env:API_TOKEN="your_api_token" # use secure variable in case script runs from the build
$env:APPVEYOR_ACCOUNT_NAME="your_account_name" # no need to setup in case script runs from the build (default environment variable)
$env:APPVEYOR_PROJECT_SLUG="your_project_slug" # no need to setup in case script runs from the build (default environment variable)
$env:RECORDS_NUMBER=100 # build history depth to search
$env:BRANCH="your_branch" # which branch's builds do you want to return
$headers = @{
"Authorization" = "Bearer $env:API_TOKEN"
"Content-type" = "application/json"
}
@OwenMcDonnell
OwenMcDonnell / appveyor-multiple-env-deployments.ps1
Last active Oct 24, 2018
appveyor multiple env deployments
View appveyor-multiple-env-deployments.ps1
Param(
[string]$environmentName1,
[string]$environmentName2,
[string]$buildVersion
)
$accountName = <your-account-name>
$projectSlug = <your-project-slug>
$token = $env:API_TOKEN #This should be added as a secure variable. Other variables used in script already exist
@OwenMcDonnell
OwenMcDonnell / ValidateYaml.ps1
Last active Aug 15, 2018
check validity of yaml file
View ValidateYaml.ps1
Param(
[string]$yamlPath
)
if(!(test-path $yamlPath)) { write-warning "YAML path is invalid"; return; }
$token = "<your_token>"
$headers = @{
"Authorization" = "Bearer $token"
You can’t perform that action at this time.