mirror of https://github.com/codevalet/codevalet
Set the default Docker Label for Pipeline
Now that there is more than one kind of agent available, we need to explicitly state where a Docker workload should run. Fixes #33
This commit is contained in:
parent
b38166e12b
commit
59ca4cc5ef
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env groovy
|
||||
|
||||
/*
|
||||
* This file is responsible for setting Global Pipeline configurations to the
|
||||
* sensible defaults which are necessary
|
||||
*/
|
||||
|
||||
import jenkins.model.GlobalConfiguration
|
||||
import org.jenkinsci.plugins.pipeline.modeldefinition.config.GlobalConfig
|
||||
|
||||
|
||||
/* Set the default Docker label for Declarative Pipeline to .. wait for it .. docker */
|
||||
GlobalConfig c = GlobalConfiguration.all().find { it instanceof GlobalConfig }
|
||||
c?.dockerLabel = 'docker'
|
Loading…
Reference in New Issue