Search in sources :

Example 1 with NewPluginInfo

use of com.thoughtworks.go.server.ui.plugins.NewPluginInfo in project gocd by gocd.

the class DefaultPluginInfoBuilder method getImage.

public Image getImage(String pluginId, String hash) {
    NewPluginInfo pluginInfo = pluginInfoFor(pluginId);
    Image image = findImage(pluginInfo);
    if (image != null && image.getHash().equals(hash)) {
        return image;
    }
    return null;
}
Also used : Image(com.thoughtworks.go.plugin.access.common.models.Image) NewPluginInfo(com.thoughtworks.go.server.ui.plugins.NewPluginInfo)

Aggregations

Image (com.thoughtworks.go.plugin.access.common.models.Image)1 NewPluginInfo (com.thoughtworks.go.server.ui.plugins.NewPluginInfo)1