Class Stage
- 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.
*/
stage('build') {
jobs {
job('backend') {
// job definition
}
job('frontend') {
// job definiton
}
}
}
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
If set, never cleanup artifacts for this stage, if purging artifacts is configured at the server level.If set, this flag will remove all files/directories in the working directory on the agent, before the job starts.If set, performs material updates or checkouts on the agent.int
hashCode()
void
setArtifactCleanupProhibited
(Boolean artifactCleanupProhibited) If set, never cleanup artifacts for this stage, if purging artifacts is configured at the server level.void
setCleanWorkingDir
(Boolean cleanWorkingDir) If set, this flag will remove all files/directories in the working directory on the agent, before the job starts.void
setFetchMaterials
(Boolean fetchMaterials) If set, performs material updates or checkouts on the agent.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
-
Stage
-
Stage
-
Stage
public Stage()
-
-
Method Details
-
jobs
-
approval
-
getFetchMaterials
If set, performs material updates or checkouts on the agent. Defaults totrue
. -
getCleanWorkingDir
If set, this flag will remove all files/directories in the working directory on the agent, before the job starts. Defaults tofalse
. -
getArtifactCleanupProhibited
If set, never cleanup artifacts for this stage, if purging artifacts is configured at the server level. Defaults tofalse
. -
setFetchMaterials
If set, performs material updates or checkouts on the agent. Defaults totrue
. -
setCleanWorkingDir
If set, this flag will remove all files/directories in the working directory on the agent, before the job starts. Defaults tofalse
. -
setArtifactCleanupProhibited
If set, never cleanup artifacts for this stage, if purging artifacts is configured at the server level. Defaults tofalse
. -
equals
- Overrides:
equals
in classHasEnvironmentVariables<Stage>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classHasEnvironmentVariables<Stage>
-
toString
- Overrides:
toString
in classHasEnvironmentVariables<Stage>
-