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
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Project, | |
[string]$TeamName, | |
[DateTime]$StartDate, | |
[int]$NumberOfSprints | |
) |
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
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Project, | |
[string]$RepoName, | |
[string]$Reviewers | |
) | |
Function Set-BranchPolicy |
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
$token = '[Personal Acces Token]' | |
$base64Token = [System.Convert]::ToBase64String([char[]]$token) | |
$headers = @{ | |
Authorization = 'Basic {0}' -f $base64Token | |
}; | |
$response = Invoke-RestMethod -Headers $headers -Uri https://api.github.com/user/repos | |
foreach ($obj in $response) | |
{ |
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
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$newUser, | |
[string]$newUserLicenseType, | |
[string]$activeUser | |
) | |
echo $PAT | az devops login --org $Organization |
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
Param | |
( | |
[string]$PAT, | |
[string]$Organization | |
) | |
$AzureDevOpsAuthenicationHeader = @{Authorization = 'Basic ' + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(":$($PAT)")) } | |
$UriOrganization = "https://dev.azure.com/$($Organization)/" | |
$uriProcess = $UriOrganization + "_apis/work/processes/" |
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
name: SQL Server Database Project | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: |
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
name: SELENIUM and JMETER | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
env: |
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
Param | |
( | |
[string]$PAT, | |
[string]$Organization | |
) | |
$SelfHostedAgentCapabilities = @() | |
$AzureDevOpsAuthenicationHeader = @{Authorization = 'Basic ' + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(":$($PAT)")) } | |
$UriOrganization = "https://dev.azure.com/$($Organization)/" |
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
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Connstr | |
) | |
$SQLQuery = "TRUNCATE TABLE ReleaseDefinitionsClassic" | |
Invoke-Sqlcmd -query $SQLQuery -ConnectionString $Connstr |
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
CREATE TABLE [dbo].[ReleaseDefinitionsClassic]( | |
[TeamProjectId] [varchar](50) NULL, | |
[TeamProjectName] [varchar](100) NULL, | |
[ReleaseDefinitionId] [int] NULL, | |
[ReleaseDefintionName] [varchar](50) NULL, | |
[ReleaseDefinitionURL] [varchar](300) NULL, | |
[ReleaseDefintionEnvironmentName] VARCHAR(50) NULL, | |
[ReleaseDefinitionEnvironmentRank] TINYINT NULL, | |
[ReleaseDefinitionEnvironmentPreDeployApprovalsName] VARCHAR (200) NULL, | |
[ReleaseDefinitionEnvironmentPostDeployApprovalsName] VARCHAR (200) NULL |
OlderNewer