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
Connect-SonarCloud -APIKey 'xxxxxxxxxxxxxxxxx' | |
Add-SonarCloudOrganizationMember -organization 'org1' -userLogin 'testuser1@gitlab' |
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
Connect-SonarCloud -APIKey 'xxxxxxxxxxxxxxxxx' | |
New-SonarCloudProjectALMIntegrated -organization 'org1' -installationKeys '68320681' |
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
Connect-SonarCloud -APIKey 'xxxxxxxxxxxxxxxxx' | |
New-SonarCloudProject -organization 'org1' -projectName 'test-sonarcloud-onboard' -projectKey '68320681' |
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 Invoke-GitCleanup { | |
param ( | |
[Parameter()] | |
[ValidateNotNullOrEmpty()] | |
[String]$defaultBranch = 'main', | |
[Parameter(Mandatory=$true)] | |
[ValidateNotNullOrEmpty()] | |
[String]$branch | |
) |
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
$parameters = @{ | |
project = 'testorg_test-project-1' | |
} | |
$branches = Invoke-SonarCloudRestMethod -Method GET -URI '/project_branches/list' -queryParameters $parameters | |
$branches.branches | |
name : develop | |
isMain : True |
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
Get-Command -Module 'PSSonarCloud' | |
CommandType Name Version Source | |
----------- ---- ------- ------ | |
Function Add-SonarCloudOrganizationMember 0.0 PSSonarCloud | |
Function Add-SonarCloudUserGroupMember 0.0 PSSonarCloud | |
Function Connect-SonarCloud 0.0 PSSonarCloud | |
Function Disconnect-SonarCloud 0.0 PSSonarCloud | |
Function Get-SonarCloudOrganizationMember 0.0 PSSonarCloud |
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
Get-SonarCloudOrganizationMember -organization 'testorg' | |
Name : Test User 1 | |
Login : testuser1@gitlab | |
Avatar : aLyqRLDYigty59tXaLyqRLDYigty59tX | |
GroupCount : 5 | |
IsOrgAdmin : True | |
Name : Test User 2 | |
Login : testuser2@gitlab |
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
Get-SonarCloudProject -organization 'testorg' | |
Name : Test Project 1 | |
Key : testorg_test-project-1 | |
Organization : testorg | |
Qualifier : TRK | |
Visibility : private | |
Name : Test Project 2 | |
Key : testorg_test-project-2 |
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
Connect-SonarCloud -APIKey 'xxx-xxx-xxx' |
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
Install-Module -Name PSSonarCloud |
NewerOlder