Class Materials
- All Implemented Interfaces:
Configurable
,KeyVal.Mixin
,UtilsMixin
,Iterable<Material>
,Collection<Material>
,List<Material>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconfigRepo
(Closure cl) configRepo
(String name, Closure cl) dependency
(String name, Closure cl) boolean
Creates a git material which this pipeline polls on.Creates a git material which this pipeline polls on.int
hashCode()
Creates a mercurial/hg material which this pipeline polls on.Creates a mercurial/hg material which this pipeline polls on.Creates a perforce/hg material which this pipeline polls on.Creates a perforce/hg material which this pipeline polls on.Creates an svn material which this pipeline polls on.Creates an svn material which this pipeline polls on.Creates a tfs material which this pipeline polls on.Creates a tfs material which this pipeline polls on.Methods inherited from class cd.go.contrib.plugins.configrepo.groovy.dsl.CollectionNode
add, add, addAll, addAll, clear, contains, containsAll, create, get, getNames, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
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 java.util.List
replaceAll, sort, spliterator
Methods inherited from interface cd.go.contrib.plugins.configrepo.groovy.dsl.mixins.UtilsMixin
sanitizeName
-
Constructor Details
-
Materials
public Materials()
-
-
Method Details
-
svn
Creates an svn material which this pipeline polls on./*
* 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('docs-website') {
materials {
svn {
url = 'https://svn.example.com/my-project/trunk'
username = 'bob'
// see https://api.gocd.org/current/#encrypt-a-plain-text-value
encryptedPassword = 'aSdiFgRRZ6A='
}
}
}
-
svn
Creates an svn material which this pipeline polls on./*
* 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('docs-website') {
materials {
svn {
url = 'https://svn.example.com/my-project/trunk'
username = 'bob'
// see https://api.gocd.org/current/#encrypt-a-plain-text-value
encryptedPassword = 'aSdiFgRRZ6A='
}
}
}
-
hg
Creates a mercurial/hg material which this pipeline polls on./*
* 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('docs-website') {
materials {
hg {
url = 'https://hg.example.com/myproject##myBranch'
blacklist = ['README.md', 'docs/**']
username = 'bob'
// see https://api.gocd.org/current/#encrypt-a-plain-text-value
encryptedPassword = 'aSdiFgRRZ6A='
}
}
}
-
hg
Creates a mercurial/hg material which this pipeline polls on./*
* 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('docs-website') {
materials {
hg {
url = 'https://hg.example.com/myproject##myBranch'
blacklist = ['README.md', 'docs/**']
username = 'bob'
// see https://api.gocd.org/current/#encrypt-a-plain-text-value
encryptedPassword = 'aSdiFgRRZ6A='
}
}
}
-
p4
Creates a perforce/hg material which this pipeline polls on./*
* 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('docs-website') {
materials {
p4 {
url = 'https://p4.example.com/gocd/gocd'
branch = 'develop'
}
}
}
-
p4
Creates a perforce/hg material which this pipeline polls on./*
* 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('docs-website') {
materials {
p4 {
url = 'https://p4.example.com/gocd/gocd'
branch = 'develop'
}
}
}
-
git
Creates a git material which this pipeline polls on./*
* 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('docs-website') {
materials {
git {
url = 'https://github.com/gocd/gocd'
branch = 'develop'
blacklist = ['README.md', 'docs/**']
username = 'bob'
// see https://api.gocd.org/current/#encrypt-a-plain-text-value
encryptedPassword = 'aSdiFgRRZ6A='
}
}
}
-
git
Creates a git material which this pipeline polls on./*
* 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('docs-website') {
materials {
git {
url = 'https://github.com/gocd/gocd'
branch = 'develop'
blacklist = ['README.md', 'docs/**']
username = 'bob'
// see https://api.gocd.org/current/#encrypt-a-plain-text-value
encryptedPassword = 'aSdiFgRRZ6A='
}
}
}
-
tfs
Creates a tfs material which this pipeline polls on./*
* 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('docs-website') {
materials {
tfs {
url = 'http://10.21.3.210:8080/tfs'
project = 'MyProject'
domain = 'MyDomain'
username = 'bob'
encryptedPassword = 'aSdiFgRRZ6A='
}
}
}
-
tfs
Creates a tfs material which this pipeline polls on./*
* 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('docs-website') {
materials {
tfs {
url = 'http://10.21.3.210:8080/tfs'
project = 'MyProject'
domain = 'MyDomain'
username = 'bob'
encryptedPassword = 'aSdiFgRRZ6A='
}
}
}
-
dependency
public DependencyMaterial dependency(String name, @DelegatesTo(value=DependencyMaterial.class,strategy=3) Closure cl) -
configRepo
public ConfigRepoMaterial configRepo(@DelegatesTo(value=ConfigRepoMaterial.class,strategy=3) Closure cl) -
configRepo
public ConfigRepoMaterial configRepo(String name, @DelegatesTo(value=ConfigRepoMaterial.class,strategy=3) Closure cl) -
pluggable
public PluggableMaterial pluggable(@DelegatesTo(value=PluggableMaterial.class,strategy=3) Closure cl) -
pluggable
public PluggableMaterial pluggable(String name, @DelegatesTo(value=PluggableMaterial.class,strategy=3) Closure cl) -
pkg
-
pkg
public PackageMaterial pkg(String name, @DelegatesTo(value=PackageMaterial.class,strategy=3) Closure cl) -
githubPR
-
githubPR
public GitHubPRMaterial githubPR(String name, @DelegatesTo(value=GitHubPRMaterial.class,strategy=3) Closure cl) -
equals
- Specified by:
equals
in interfaceCollection<Material>
- Specified by:
equals
in interfaceList<Material>
- Overrides:
equals
in classCollectionNode<Material>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<Material>
- Specified by:
hashCode
in interfaceList<Material>
- Overrides:
hashCode
in classCollectionNode<Material>
-