class PatchSet extends java.lang.Object
Provides an interface to a patch set being gated by WMF CI.
import org.wikimedia.integration.PatchSet
stage('Checkout patch') { checkout(PatchSet.fromZuul(params).getSCM()))
}
Type Params | Return Type | Name and description |
---|---|---|
|
static PatchSet |
fromZuul(java.util.Map params) Constructs a new PatchSet from the given parameters set by Zuul during CI gating: ZUUL_PROJECT, ZUUL_URL, ZUUL_REF, and ZUUL_COMMIT. |
|
java.util.Map |
getSCM(java.util.Map options = [:]) Returns an SCM mapping that the Jenkins `checkout` function can use to clone the project repo and check out the patch set. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Git SHA-1 value representing this patch set in the remote.
Project name.
Git ref that points to patch set commit.
Git remote location where the patch set can be fetched from.
Constructs a new PatchSet from the given parameters set by Zuul during CI gating: ZUUL_PROJECT, ZUUL_URL, ZUUL_REF, and ZUUL_COMMIT.
Returns an SCM mapping that the Jenkins `checkout` function can use to clone the project repo and check out the patch set.
options
- Various checkout options.
credentialsID
depth
shallow
true
.submodules
true
.tags
false
target