net.nemerosa.ontrack.extension.jenkins.JenkinsUserMenuExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-extension-jenkins Show documentation
Show all versions of ontrack-extension-jenkins Show documentation
Ontrack module: ontrack-extension-jenkins
package net.nemerosa.ontrack.extension.jenkins;
import net.nemerosa.ontrack.extension.api.UserMenuExtension;
import net.nemerosa.ontrack.extension.support.AbstractExtension;
import net.nemerosa.ontrack.model.support.Action;
import net.nemerosa.ontrack.model.security.GlobalFunction;
import net.nemerosa.ontrack.model.security.GlobalSettings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class JenkinsUserMenuExtension extends AbstractExtension implements UserMenuExtension {
@Autowired
public JenkinsUserMenuExtension(JenkinsExtensionFeature feature) {
super(feature);
}
@Override
public Class extends GlobalFunction> getGlobalFunction() {
return GlobalSettings.class;
}
@Override
public Action getAction() {
return Action.of("jenkins-configurations", "Jenkins configurations", "configurations");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy