public abstract static class SCMSourceObserver.ProjectObserver extends Object
SCMSourceObserver.observe(java.lang.String)
.Constructor and Description |
---|
ProjectObserver() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addAttribute(String key,
Object value)
Adds extra metadata about a specific project.
|
abstract void |
addSource(SCMSource source)
Adds a source repository to be used from a new project.
|
abstract void |
complete()
To be called when finished defining one project.
|
public abstract void addSource(@NonNull SCMSource source)
source
- a potential SCM source as in MultiBranchProject.getSCMSources
; do not call
SCMSource.setOwner(jenkins.scm.api.SCMSourceOwner)
on itpublic abstract void addAttribute(@NonNull String key, @Nullable Object value) throws IllegalArgumentException, ClassCastException
key
- a predefined attribute namevalue
- some value, of a type defined by the attribute, perhaps null if allowed by the attribute
documentationIllegalArgumentException
- if the attribute name is unrecognized, or this attribute was already addedClassCastException
- if the attribute value is inappropriate for its typepublic abstract void complete() throws IllegalStateException, IOException, InterruptedException
IllegalStateException
- may be thrown if called twiceIOException
- if processing of the final project could not be completed due to an IOException
.InterruptedException
- if processing of the final project was interruptedCopyright © 2016–2022. All rights reserved.