Jump to content

Unable to configure Plugs and Bots


diegohb

Recommended Posts

Hello! I am using plastic cloud edition. I am unable to access webui locally at port 7178 and also can't find any relevant pages in the new admin site hosted at www.plasticscm.com/orgs/{org}/repos. 

How or where do we access bot and plug configuration pages ?

Link to comment
Share on other sites

This is what I'm using in lieue of mergebot for now..  (powershell executed from teamcity)

 

Set-PSDebug -Trace 1;

$mergeResult = cm merge br:%vcsroot.branch% -c "Integrate latest from main." --to=br:%teamcity.build.branch% --merge --shelve --machinereadable --nointeractiveresolution --printcontributors

$mergeResult = $mergeResult -join "|";

IF ($mergeResult.Contains("ALREADY_CONNECTED") -eq $false) {
	$hasChanges = $true
    $hasConflict = $mergeResult.Contains("CONFLICT") -eq $true;
    IF ($mergeResult.Contains("CHANGESET") -eq $true -or $mergeResult.Contains("SHELVE") -eq $true) {
		$mergeable = $true
    }
    ELSE {
    	$mergeable = $false
    }
}
ELSE {
	$hasChanges = $false
}

IF ($hasChanges -eq $true -and $mergeable -eq $false) {
	cm attribute set att:status br:%teamcity.build.branch% conflicted
    Write-Host "##teamcity[buildProblem description='$mergeResult' identity='merge-conflict-detected']"
    Write-Host "##teamcity[buildStatus status='SUCCESS' text='Success. CONFLICTED.']"
}
ELSEIF ($hasChanges -eq $true -and $mergeable -eq $true) {
    cm attribute set att:status br:%teamcity.build.branch% merge-ready
    IF ($hasConflict -eq $true) {
    	$suffix = " Conflict auto-resolved.";
    }
    Write-Host "##teamcity[buildStatus status='SUCCESS' text='Success.$suffix']"
}
ELSEIF ($hasChanges -eq $false) {
    cm attribute set att:status br:%teamcity.build.branch% merge-ready
    Write-Host "##teamcity[buildStatus status='SUCCESS' text='Success']"
}


 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...