public class GitEnricher extends BaseEnricher
log| Constructor and Description |
|---|
GitEnricher(EnricherContext buildContext) |
| Modifier and Type | Method and Description |
|---|---|
protected static Iterable<Throwable> |
createExceptionIterable(Throwable exception)
Creates an Iterable to walk the exception from the bottom up
(the last caused by going upwards to the root exception).
|
Map<String,String> |
getAnnotations(Kind kind) |
protected String |
getGitCommitId(org.eclipse.jgit.lib.Repository repository) |
protected org.eclipse.jgit.lib.Repository |
getGitRepository(File basedir) |
protected boolean |
isInCDBuild()
Returns true if the current build is being run inside a CI / CD build in which case
lets warn if we cannot detect things like the GIT commit or Jenkins build server URL
|
protected void |
warnIfInCDBuild(String message) |
protected void |
warnIfInCDBuild(String message,
Throwable exception) |
adapt, addDefaultResources, getConfig, getConfig, getContext, getExternalServiceURL, getImages, getKubernetes, getLabels, getLog, getName, getProject, getSelector, isOfflinepublic GitEnricher(EnricherContext buildContext)
public Map<String,String> getAnnotations(Kind kind)
getAnnotations in interface EnrichergetAnnotations in class BaseEnricherprotected String getGitCommitId(org.eclipse.jgit.lib.Repository repository)
protected org.eclipse.jgit.lib.Repository getGitRepository(File basedir)
protected static Iterable<Throwable> createExceptionIterable(Throwable exception)
exception - the exceptionIterableprotected void warnIfInCDBuild(String message)
protected boolean isInCDBuild()
Copyright © 2016. All rights reserved.