Class ScmMaterial<T extends ScmMaterial<?>>
java.lang.Object
cd.go.contrib.plugins.configrepo.groovy.dsl.Node<T>
cd.go.contrib.plugins.configrepo.groovy.dsl.NamedNode<T>
cd.go.contrib.plugins.configrepo.groovy.dsl.Material<T>
cd.go.contrib.plugins.configrepo.groovy.dsl.ScmMaterial<T>
- All Implemented Interfaces:
Configurable
,KeyVal.Mixin
,Notifies.MaterialMixin
,UtilsMixin
- Direct Known Subclasses:
GitHubPRMaterial
,GitMaterial
,HgMaterial
,P4Material
,SvnMaterial
,TfsMaterial
public abstract class ScmMaterial<T extends ScmMaterial<?>>
extends Material<T>
implements Notifies.MaterialMixin
-
Method Summary
Modifier and TypeMethodDescriptionboolean
By default GoCD polls the repository for changes automatically.The directory under the sandbox of Go Agent.The encrypted passwordThe plain text password in the form of secret param* Use encrypted password insteadint
hashCode()
void
setAutoUpdate
(Boolean autoUpdate) By default GoCD polls the repository for changes automatically.void
setBlacklist
(List<String> blacklist) /*
* 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.
*/
git {
url = 'https://github.com/gocd/gocd'
blacklist = ['README.md', 'docs/**/*.*']
}
void
setDestination
(String destination) The directory under the sandbox of Go Agent.void
setEncryptedPassword
(String encryptedPassword) The encrypted passwordvoid
setPassword
(String password) The plain text password in the form of secret param* Use encrypted password insteadvoid
setUsername
(String username) void
setWhitelist
(List<String> whitelist) /*
* 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.
*/
git {
url = 'https://github.com/gocd/gocd-plugins'
whitelist = ['src']
}
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.Notifies.MaterialMixin
notifiesBitbucketAt, notifiesBitbucketSelfHostedAt, notifiesBy, notifiesGitHubAt, notifiesGitLabAt
Methods inherited from interface cd.go.contrib.plugins.configrepo.groovy.dsl.mixins.UtilsMixin
sanitizeName
-
Method Details
-
getBlacklist
-
setBlacklist
/*
* 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.
*/
git {
url = 'https://github.com/gocd/gocd'
blacklist = ['README.md', 'docs/**/*.*']
}
-
getWhitelist
-
setWhitelist
/*
* 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.
*/
git {
url = 'https://github.com/gocd/gocd-plugins'
whitelist = ['src']
}
-
getUsername
-
getEncryptedPassword
The encrypted password- See Also:
-
getPassword
The plain text password in the form of secret param* Use encrypted password instead- See Also:
-
getDestination
The directory under the sandbox of Go Agent. GoCD will check out the source code into this directory. -
getAutoUpdate
By default GoCD polls the repository for changes automatically. IfautoUpdate
is set tofalse
then GoCD will not poll the repository for changes. Instead it will check for changes only when you trigger a pipeline that contains this material. If the same material is specified more than once in the configuration file, all of them must have the same value forautoUpdate
. -
setUsername
-
setEncryptedPassword
The encrypted password- See Also:
-
setPassword
The plain text password in the form of secret param* Use encrypted password instead- See Also:
-
setDestination
The directory under the sandbox of Go Agent. GoCD will check out the source code into this directory. -
setAutoUpdate
By default GoCD polls the repository for changes automatically. IfautoUpdate
is set tofalse
then GoCD will not poll the repository for changes. Instead it will check for changes only when you trigger a pipeline that contains this material. If the same material is specified more than once in the configuration file, all of them must have the same value forautoUpdate
. -
equals
- Overrides:
equals
in classMaterial<T extends ScmMaterial<?>>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMaterial<T extends ScmMaterial<?>>
-
toString
- Overrides:
toString
in classMaterial<T extends ScmMaterial<?>>
-