Closed Bug 1726585 Opened 4 years ago Closed 4 years ago

Disable local clip board service for Azure CI testers.

Categories

(Infrastructure & Operations :: RelOps: Windows OS, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: markco, Assigned: markco)

Details

Attachments

(1 file)

No description provided.
Pushed by bhearsum@mozilla.com: https://hg.mozilla.org/ci/ci-configuration/rev/405ad9565b0a Update 10-64-2004 images /disable local clip board. r=releng-reviewers,bhearsum

Added a schedule task through Puppet to watch for and kill the local clipboard service:

https://github.com/mozilla-platform-ops/ronin_puppet/blob/cloud_windows/modules/win_scheduled_tasks/files/kill_local_clipboard.ps1

while($true) {

	$clip_service = (Get-Service | Where-Object {$_.name -Like "cbdhsvc_*"})
	if ($clip_service.status -eq $null){
		#Write-Log -message  ('{0} :: Local Clip Board service not detected' -f $($MyInvocation.MyCommand.Name)) -severity 'DEBUG'
	} else {
		$start_type = ((Get-Service $clip_service.name).StartType)
	    #Write-Log -message  ('{0} ::  {1} service is {2} and start up is set to {3}' -f $($MyInvocation.MyCommand.Name), ($clip_service), ($clip_service.status), ($start_type)) -severity 'DEBUG'
	}
	if ($clip_service.status -eq "running"){
		Write-Log -message  ('{0} ::  Stopping {1} service' -f $($MyInvocation.MyCommand.Name), ($clip_service)) -severity 'DEBUG'
		Stop-Service -Name $clip_service.name
		start-sleep -s 3
		Set-Service -name $clip_service.name -StartupType Disabled -force
	}
	start-sleep -s 5
	write-host waiting
}
```
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: