Class ConfigRepoMaterial

All Implemented Interfaces:
Configurable, KeyVal.Mixin, UtilsMixin

public class ConfigRepoMaterial extends Material<ConfigRepoMaterial>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    dup(Closure<?> config)
     
    boolean
     
     
    The directory under the sandbox of Go Agent.
     
    int
     
    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
    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']
      }
     

    Methods inherited from class cd.go.contrib.plugins.configrepo.groovy.dsl.NamedNode

    getName, setName

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    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

  • Method Details

    • dup

      Specified by:
      dup in class Material<ConfigRepoMaterial>
    • getBlacklist

      public List<String> getBlacklist()
    • setBlacklist

      public 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/**/*.*']
        }
    • getWhitelist

      public List<String> getWhitelist()
    • setWhitelist

      public 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']
        }
    • getDestination

      public String getDestination()
      The directory under the sandbox of Go Agent. GoCD will check out the source code into this directory.
    • setDestination

      public void setDestination(String destination)
      The directory under the sandbox of Go Agent. GoCD will check out the source code into this directory.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Material<ConfigRepoMaterial>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Material<ConfigRepoMaterial>
    • toString

      public String toString()
      Overrides:
      toString in class Material<ConfigRepoMaterial>