Skip to content

Commit

Permalink
Added Symbols for Jenkins Pipeline support
Browse files Browse the repository at this point in the history
[JENKINS-29922] $class must die
  • Loading branch information
pskumar448 committed Mar 4, 2017
1 parent a035361 commit 2b0caa5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Expand Up @@ -70,6 +70,11 @@
<version>1.41</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>structs</artifactId>
<version>1.6</version>
</dependency>
</dependencies>

</project>
Expand Up @@ -6,6 +6,7 @@
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.tasks.CommandInterpreter;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;

import javax.xml.transform.stream.StreamSource;
Expand Down Expand Up @@ -133,6 +134,7 @@ private boolean didErrorsOccur(int exitStatus) {
}

@Extension
@Symbol("invokeCommand")
public static class DescriptorImpl extends WinRMOperationDescriptor {
public String getDisplayName() {
return "Invoke-Command";
Expand Down
Expand Up @@ -6,6 +6,7 @@
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.tasks.CommandInterpreter;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;

import javax.xml.transform.stream.StreamSource;
Expand Down Expand Up @@ -117,6 +118,7 @@ private boolean didErrorsOccur(int exitStatus) {
}

@Extension
@Symbol("sendFile")
public static class DescriptorImpl extends WinRMOperationDescriptor {
public String getDisplayName() {
return "Send-File";
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/spcow/winrmclient/WinRMClientBuilder.java
Expand Up @@ -17,6 +17,7 @@
import hudson.util.Secret;
import jenkins.model.Jenkins;
import jenkins.tasks.SimpleBuildStep;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.AncestorInPath;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.QueryParameter;
Expand Down Expand Up @@ -125,6 +126,7 @@ public DescriptorImpl getDescriptor() {
}

@Extension
@Symbol("winRMClient")
public static final class DescriptorImpl extends BuildStepDescriptor<Builder> {

public DescriptorImpl() {
Expand Down

0 comments on commit 2b0caa5

Please sign in to comment.