Class Environment
- All Implemented Interfaces:
Configurable
,KeyVal.Mixin
,UtilsMixin
/*
* Copyright 2022 Thoughtworks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
GoCD.script {
environments {
environment('production') {
environmentVariables = [SSH_HOST: '192.168.1.100']
secureEnvironmentVariables = [SSH_PASSWORD: 's^Du#@$xsSa']
pipelines = ['website']
agents = ['agent1-uuid', 'agent2-uuid']
}
}
}
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The list of agents that should be added into this environment.The list of pipelines that should be added into this environment.int
hashCode()
void
The list of agents that should be added into this environment.void
setPipelines
(List<String> pipelines) The list of pipelines that should be added into this environment.toString()
Methods inherited from class cd.go.contrib.plugins.configrepo.groovy.dsl.HasEnvironmentVariables
getEnvironmentVariables, getSecureEnvironmentVariables, setEnvironmentVariables, setSecureEnvironmentVariables
Methods inherited from interface cd.go.contrib.plugins.configrepo.groovy.dsl.mixins.Configurable
configure
Methods inherited from interface cd.go.contrib.plugins.configrepo.groovy.dsl.mixins.KeyVal.Mixin
lookup, lookup
Methods inherited from interface cd.go.contrib.plugins.configrepo.groovy.dsl.mixins.UtilsMixin
sanitizeName
-
Constructor Details
-
Environment
public Environment() -
Environment
-
Environment
-
-
Method Details
-
getPipelines
The list of pipelines that should be added into this environment. -
getAgents
The list of agents that should be added into this environment. -
setPipelines
The list of pipelines that should be added into this environment. -
setAgents
The list of agents that should be added into this environment. -
equals
- Overrides:
equals
in classHasEnvironmentVariables<Environment>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classHasEnvironmentVariables<Environment>
-
toString
- Overrides:
toString
in classHasEnvironmentVariables<Environment>
-