Permalink
Browse files

Added Symbols for Jenkins Pipeline support

[JENKINS-29922] $class must die
  • Loading branch information...
pskumar448 committed Mar 4, 2017
1 parent a035361 commit 2b0caa5f52e3ed4f57b0a82c78507b15c4251867
@@ -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>
@@ -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;
@@ -133,6 +134,7 @@ private boolean didErrorsOccur(int exitStatus) {
}

@Extension
@Symbol("invokeCommand")
public static class DescriptorImpl extends WinRMOperationDescriptor {
public String getDisplayName() {
return "Invoke-Command";
@@ -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;
@@ -117,6 +118,7 @@ private boolean didErrorsOccur(int exitStatus) {
}

@Extension
@Symbol("sendFile")
public static class DescriptorImpl extends WinRMOperationDescriptor {
public String getDisplayName() {
return "Send-File";
@@ -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;
@@ -125,6 +126,7 @@ public DescriptorImpl getDescriptor() {
}

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

public DescriptorImpl() {

0 comments on commit 2b0caa5

Please sign in to comment.