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
blueprint: | |
name: Heating Control | |
description: Control your heating with options for person home, if temp is below a specific value, set temp, and heating between specific times. | |
domain: automation | |
input: | |
heating: | |
name: Climate Device | |
description: The climate device to use. | |
selector: | |
entity: |
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
import hudson.model.labels.*; | |
node ('master') { | |
Jenkins.instance.queue.items.each { | |
//http://javadoc.jenkins-ci.org/hudson/model/Queue.Item.html#isStuck-- | |
//Means that buildable is "starved" and should have already run but no executor is available | |
//if this is on a docker template, there is no reason it shouldn't have already run. | |
if(it.stuck && !it.blocked) | |
{ | |
println("Found stuck job - " + it.task.name + "- checking docker to see if we can unstick") |
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
@Override | |
public boolean start() throws Exception { | |
StepContext context = getContext(); | |
sockets = new ArrayList<String>(); | |
initRemoteAgent(); | |
//AgentEnvs is Map<String,String> of resulting ssh agent pid and sock. | |
context.newBodyInvoker(). | |
withContext(EnvironmentExpander.merge(getContext().get(EnvironmentExpander.class), EnvironmentExpander.constant(agentEnvs))). | |
withCallback(BodyExecutionCallback.wrap(getContext())).withDisplayName(null).start(); |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<hudson> | |
<disabledAdministrativeMonitors/> | |
<version>2.32.1</version> | |
<numExecutors>2</numExecutors> | |
<mode>NORMAL</mode> | |
<useSecurity>false</useSecurity> | |
<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy"> | |
<denyAnonymousReadAccess>true</denyAnonymousReadAccess> | |
</authorizationStrategy> |
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
{"host": | |
{"mac":"52:53:00:1e:85:58", | |
"domain_id":1, | |
"operatingsystem_id":5, | |
"subnet_id":7, | |
"comment":"Created by elastic", | |
"hostgroup_id":95, | |
"compute_resource_id":1, | |
"compute_profile_id":1, | |
"provision_method":"image", |
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
2015/05/28 13:16:32 [INFO] Packer version: 0.7.5 9cd66feeacbd9cb318b72eb5ed59428c5b8c37ac+CHANGES | |
2015/05/28 13:16:32 Packer Target OS/Arch: windows amd64 | |
2015/05/28 13:16:32 Built with Go Version: go1.3.3 | |
2015/05/28 13:16:32 [DEBUG] Discoverd plugin: amazon-chroot = C:\HashiCorp\Vagrant\bin\packer-builder-amazon-chroot.exe | |
2015/05/28 13:16:32 [DEBUG] Discoverd plugin: amazon-ebs = C:\HashiCorp\Vagrant\bin\packer-builder-amazon-ebs.exe | |
2015/05/28 13:16:32 [DEBUG] Discoverd plugin: amazon-instance = C:\HashiCorp\Vagrant\bin\packer-builder-amazon-instance.exe | |
2015/05/28 13:16:32 [DEBUG] Discoverd plugin: amazon-windows-ebs = C:\HashiCorp\Vagrant\bin\packer-builder-amazon-windows-ebs.exe | |
2015/05/28 13:16:32 [DEBUG] Discoverd plugin: digitalocean = C:\HashiCorp\Vagrant\bin\packer-builder-digitalocean.exe | |
2015/05/28 13:16:32 [DEBUG] Discoverd plugin: docker = C:\HashiCorp\Vagrant\bin\packer-builder-docker.exe | |
2015/05/28 13:16:32 [DEBUG] Discoverd plugin: googlecompute = C:\HashiCorp\Vagrant\bin\packer-builder-goo |
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
2015/05/14 16:07:30 [INFO] Packer version: 0.7.5 9cd66feeacbd9cb318b72eb5ed59428c5b8c37ac+CHANGES | |
2015/05/14 16:07:30 Packer Target OS/Arch: windows amd64 | |
2015/05/14 16:07:30 Built with Go Version: go1.3.3 | |
2015/05/14 16:07:30 [DEBUG] Discoverd plugin: amazon-chroot = C:\HashiCorp\Vagrant\bin\packer-builder-amazon-chroot.exe | |
2015/05/14 16:07:30 [DEBUG] Discoverd plugin: amazon-ebs = C:\HashiCorp\Vagrant\bin\packer-builder-amazon-ebs.exe | |
2015/05/14 16:07:30 [DEBUG] Discoverd plugin: amazon-instance = C:\HashiCorp\Vagrant\bin\packer-builder-amazon-instance.exe | |
2015/05/14 16:07:30 [DEBUG] Discoverd plugin: amazon-windows-ebs = C:\HashiCorp\Vagrant\bin\packer-builder-amazon-windows-ebs.exe | |
2015/05/14 16:07:30 [DEBUG] Discoverd plugin: digitalocean = C:\HashiCorp\Vagrant\bin\packer-builder-digitalocean.exe | |
2015/05/14 16:07:30 [DEBUG] Discoverd plugin: docker = C:\HashiCorp\Vagrant\bin\packer-builder-docker.exe | |
2015/05/14 16:07:30 [DEBUG] Discoverd plugin: googlecompute = C:\HashiCorp\Vagrant\bin\packer-builder-goo |
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 Start-CLR4 { | |
[CmdletBinding()] | |
param ( [string] $cmd ) | |
if ($PSVersionTable.CLRVersion.Major -eq 4) | |
{ |