cd.go.contrib.plugins.configrepo.groovy.dsl.Jobs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dsl Show documentation
Show all versions of dsl Show documentation
Groovy DSL for GoCD pipeline definitions, for use with the gocd-groovy-dsl-plugin
// Generated by delombok at Thu May 16 19:58:20 PDT 2024
/*
* 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.
*/
package cd.go.contrib.plugins.configrepo.groovy.dsl;
import groovy.lang.Closure;
import groovy.lang.DelegatesTo;
import groovy.transform.stc.ClosureParams;
import groovy.transform.stc.SimpleType;
import static groovy.lang.Closure.DELEGATE_ONLY;
/**
* Represents a list of {@link Job}s
*/
public class Jobs extends CollectionNode {
public Job job(String name, @DelegatesTo(value = Job.class, strategy = DELEGATE_ONLY) @ClosureParams(value = SimpleType.class, options = "cd.go.contrib.plugins.configrepo.groovy.dsl.Job") Closure cl) {
return create(() -> new Job(name, cl));
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Jobs)) return false;
final Jobs other = (Jobs) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Jobs;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int result = super.hashCode();
return result;
}
}