Skip to content

Commit

Permalink
Merge pull request #14 from Dohbedoh/JENKINS-48049
Browse files Browse the repository at this point in the history
[JENKINS-48049] Switch to SimpleBuildWrapper for pipeline compatibility

Closes JENKINS-48049
  • Loading branch information
ptierno committed Apr 10, 2018
2 parents fa47d4c + 7144cf9 commit 3d74f83
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -33,6 +33,7 @@
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;

import hudson.tasks.BuildWrapperDescriptor;
import org.apache.commons.lang.StringUtils;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;
Expand Down Expand Up @@ -60,11 +61,9 @@
import hudson.Launcher;
import hudson.console.ConsoleLogFilter;
import hudson.model.AbstractProject;
import hudson.model.Descriptor;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.security.ACL;
import hudson.tasks.BuildWrapper;
import jenkins.tasks.SimpleBuildWrapper;

public class VaultBuildWrapper extends SimpleBuildWrapper {
Expand Down Expand Up @@ -177,14 +176,14 @@ public ConsoleLogFilter createLoggerDecorator(
* that it can be accessed from views.
*/
@Extension
public static final class DescriptorImpl extends Descriptor<BuildWrapper> {
public static final class DescriptorImpl extends BuildWrapperDescriptor {
public DescriptorImpl() {
super(VaultBuildWrapper.class);
load();
}

@Override
public boolean isApplicable(AbstractProject<?, ?> item) {
// Indicates that this builder can be used with all kinds of project types
return true;
}

Expand Down

0 comments on commit 3d74f83

Please sign in to comment.