Class HasEnvironmentVariables<T extends HasEnvironmentVariables>
- All Implemented Interfaces:
Configurable
,KeyVal.Mixin
,UtilsMixin
- Direct Known Subclasses:
Environment
,Job
,Pipeline
,Stage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The list of environment variables associated with this environment.The list of secure(encrypted) environment variables associated with this environment.int
hashCode()
void
setEnvironmentVariables
(Map<String, String> environmentVariables) The list of environment variables associated with this environment.void
setSecureEnvironmentVariables
(Map<String, String> secureEnvironmentVariables) The list of secure(encrypted) environment variables associated with this environment.toString()
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
-
HasEnvironmentVariables
-
HasEnvironmentVariables
public HasEnvironmentVariables()
-
-
Method Details
-
getEnvironmentVariables
The list of environment variables associated with this environment./*
* 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.
*/
pipeline('build') {
environmentVariables = [
SSH_HOST: 'deploy.example.com',
SSH_USER: 'deploy-user'
]
}
- See Also:
-
secureEnvironmentVariables
-
getSecureEnvironmentVariables
The list of secure(encrypted) environment variables associated with this environment./*
* 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.
*/
pipeline('build') {
secureEnvironmentVariables = [
SSH_PASSWORD: 'AES:yBk975e1rJiuRnAx9AZ6Og==:ee6yi/2sEh5/TUlbmNWelg==',
API_TOKEN : 'AES:mYCdWAx/pR0YKLpSJHF9ZQ==:zbSkQLjsL34pzXDtyTj0iw=='
]
}
- See Also:
-
environmentVariables
- Encryption API
-
setEnvironmentVariables
The list of environment variables associated with this environment./*
* 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.
*/
pipeline('build') {
environmentVariables = [
SSH_HOST: 'deploy.example.com',
SSH_USER: 'deploy-user'
]
}
- See Also:
-
secureEnvironmentVariables
-
setSecureEnvironmentVariables
The list of secure(encrypted) environment variables associated with this environment./*
* 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.
*/
pipeline('build') {
secureEnvironmentVariables = [
SSH_PASSWORD: 'AES:yBk975e1rJiuRnAx9AZ6Og==:ee6yi/2sEh5/TUlbmNWelg==',
API_TOKEN : 'AES:mYCdWAx/pR0YKLpSJHF9ZQ==:zbSkQLjsL34pzXDtyTj0iw=='
]
}
- See Also:
-
environmentVariables
- Encryption API
-
equals
- Overrides:
equals
in classNamedNode<T extends HasEnvironmentVariables>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classNamedNode<T extends HasEnvironmentVariables>
-
toString
- Overrides:
toString
in classNamedNode<T extends HasEnvironmentVariables>
-