diff --git a/src/main/java/io/hainenber/jenkins/multipass/MultipassAgent.java b/src/main/java/io/hainenber/jenkins/multipass/MultipassAgent.java index b995b74..f53469c 100644 --- a/src/main/java/io/hainenber/jenkins/multipass/MultipassAgent.java +++ b/src/main/java/io/hainenber/jenkins/multipass/MultipassAgent.java @@ -1,5 +1,6 @@ package io.hainenber.jenkins.multipass; +import hudson.Extension; import hudson.model.Descriptor; import hudson.model.TaskListener; import hudson.slaves.AbstractCloudComputer; @@ -114,4 +115,15 @@ public String toString() { public ProvisioningActivity.Id getId() { return id; } + + + @Extension + @SuppressWarnings("unused") // used by jelly + public static final class DescriptorImpl extends SlaveDescriptor { + @Nonnull + @Override + public String getDisplayName() { + return "Multipass VM"; + } + } } diff --git a/src/main/java/io/hainenber/jenkins/multipass/MultipassComputer.java b/src/main/java/io/hainenber/jenkins/multipass/MultipassComputer.java index ebbf169..84dee09 100644 --- a/src/main/java/io/hainenber/jenkins/multipass/MultipassComputer.java +++ b/src/main/java/io/hainenber/jenkins/multipass/MultipassComputer.java @@ -5,10 +5,10 @@ import hudson.model.Queue; import hudson.slaves.AbstractCloudComputer; import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; import java.util.Objects; import java.util.StringJoiner; import java.util.concurrent.Future; -import javax.annotation.Nullable; import org.apache.commons.lang.time.DurationFormatUtils; import org.jenkinsci.plugins.cloudstats.ProvisioningActivity; import org.jenkinsci.plugins.cloudstats.TrackedItem; diff --git a/src/main/resources/io/hainenber/jenkins/multipass/MultipassComputer/configure.jelly b/src/main/resources/io/hainenber/jenkins/multipass/MultipassComputer/configure.jelly new file mode 100644 index 0000000..3a8d10f --- /dev/null +++ b/src/main/resources/io/hainenber/jenkins/multipass/MultipassComputer/configure.jelly @@ -0,0 +1,24 @@ + + + + + +

This is a read-only view. Click here to configure your instances.

+ + + + + + + + + + + + + + + +
+
+