Re: How to Add Custom Build Step to behave exactly same as Execute Windows Batch Command.

2016-11-18 Thread Kul Bhushan Srivastava
Thanks Guys for helping. I am able to crack it now. After creating below two files it works. *First Java File* import org.kohsuke.stapler.DataBoundConstructor; import org.kohsuke.stapler.DataBoundSetter; import com.oracle.siebel.jenkins.BuildStepCommandInterpreter.OptionalTextBlock1; import

Re: How to Add Custom Build Step to behave exactly same as Execute Windows Batch Command.

2016-11-17 Thread Kul Bhushan Srivastava
Agree with your point. I have change the code accordingly. Compiles properly through Maven. But now Jenkins at Runtime throwing exception when saving the job configuration, saying - Caused by: java.lang.IllegalArgumentException: Failed to instantiate class com.oracle.siebel.jenkins.ABC from

Re: How to Add Custom Build Step to behave exactly same as Execute Windows Batch Command.

2016-11-17 Thread Kul Bhushan Srivastava
Agree with your point. Can you help me with the exact code change. On Wednesday, 16 November 2016 23:00:36 UTC+5:30, Robert Sandell wrote: > > Abstract classes cannot be instanciated, so you can't annotate the > constructor with DataBoundConstructor since the class can't be directly >

Re: How to Add Custom Build Step to behave exactly same as Execute Windows Batch Command.

2016-11-16 Thread Kul Bhushan Srivastava
Thanks Robert. I am facing maven compilation issue. Saying @DataBoundConstructor cannot be used inside abstract class. Please suggest. My Java File: import org.kohsuke.stapler.DataBoundConstructor; import hudson.Extension; import hudson.FilePath; import hudson.Launcher; import

Re: How to Add Custom Build Step to behave exactly same as Execute Windows Batch Command.

2016-11-16 Thread Robert Sandell
Here are the classes involved in "execute script" step. https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tasks/BatchFile.java https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tasks/Shell.java

Re: How to Add Custom Build Step to behave exactly same as Execute Windows Batch Command.

2016-11-15 Thread Kul Bhushan Srivastava
If anyone can guide how the windows bactch command execution are handled from backend JAVA API. Then I may create one of my own. On Monday, 14 November 2016 13:37:49 UTC+5:30, Kul Bhushan Srivastava wrote: > > -- You received this message because you are subscribed to the Google Groups

How to Add Custom Build Step to behave exactly same as Execute Windows Batch Command.

2016-11-14 Thread Kul Bhushan Srivastava
-- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit