[JIRA] (JENKINS-37886) is it possible to send email notification from a pipeline

2016-09-16 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy edited a comment on  JENKINS-37886  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: is it possible to send email notification from a pipeline   
 

  
 
 
 
 

 
 Thanks Nenashev ! I'm able to use the mail step. But, I'm facing issue after I included mail step in my pipeline script.Please find below the script.[node {   def applicationConfigObj   def tibcoAppConfGenertorObj   //def notifyObj  stage 'TibcoConfig'   echo 'Reading Tibco configuration!'   def parent = getClass().getClassLoader()def loader = new GroovyClassLoader(parent) applicationConfigObj = loader.parseClass(new File("/opt/tibco/deploy_tool/Tibco_Automation/src/com/merck/comet/ApplicationConfig.groovy")).newInstance() tibcoAppConfGenertorObj = loader.parseClass(new File("/opt/tibco/deploy_tool/Tibco_Automation/src/com/merck/comet/TibcoAppConfGenertor.groovy")).newInstance()//notifyObj = loader.parseClass(new File("/opt/tibco/deploy_tool/Tibco_Automation/src/com/merck/comet/Notification.groovy")).newInstance() //tibcoAppConfGenertorObj.generateServiceXML() //def sendTo = "peddareddy.biy...@company.com,peddaredd...@company.com";//println(sendTo)//notifyObj.sendNotification();  mail (to: 'peddareddy.biy...@merck.com', subject: "Job '${env.JOB_NAME}' (${env.BUILD_NUMBER}) is waiting for input", body: "Please go to ${env.BUILD_URL}."); input 'Ready to go?';stage 'ApplicationDownTime'echo 'Application DownTime goes here!'stage 'RetryDownTimeActivities'echo 'Retry goes here!'stage 'Notify'echo 'Notifying to group of users!'}]The above script is able to send the email, but the job is failing with below exception. Should the mail step be separate always ?Exception Below java.io.NotSerializableException: com.merck.comet.TibcoAppConfGenertor at org.jboss.marshalling. river.RiverMarshaller. doWriteObject(RiverMarshaller.java:860) at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65) at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56) at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50) at org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.HashMap.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:271) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:976) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)river.RiverMarshaller. doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at 

[JIRA] (JENKINS-37886) is it possible to send email notification from a pipeline

2016-09-16 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy edited a comment on  JENKINS-37886  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: is it possible to send email notification from a pipeline   
 

  
 
 
 
 

 
 Thanks Nenashev !  I'm able to use the mail step. But, I'm facing issue after I included mail step in my pipeline script.Please find below the script.[node {   def applicationConfigObj   def tibcoAppConfGenertorObj   //def notifyObj  stage 'TibcoConfig'   echo 'Reading Tibco configuration!'   def parent = getClass().getClassLoader()def loader = new GroovyClassLoader(parent) applicationConfigObj = loader.parseClass(new File("/opt/tibco/deploy_tool/Tibco_Automation/src/com/merck/comet/ApplicationConfig.groovy")).newInstance() tibcoAppConfGenertorObj = loader.parseClass(new File("/opt/tibco/deploy_tool/Tibco_Automation/src/com/merck/comet/TibcoAppConfGenertor.groovy")).newInstance()//notifyObj = loader.parseClass(new File("/opt/tibco/deploy_tool/Tibco_Automation/src/com/merck/comet/Notification.groovy")).newInstance() //tibcoAppConfGenertorObj.generateServiceXML() //def sendTo = "peddareddy.biy...@company.com,peddaredd...@company.com";//println(sendTo)//notifyObj.sendNotification();  mail (to: 'peddareddy.biy...@merck.com', subject: "Job '${env.JOB_NAME}' (${env.BUILD_NUMBER}) is waiting for input", body: "Please go to ${env.BUILD_URL}."); input 'Ready to go?';stage 'ApplicationDownTime'echo 'Application DownTime goes here!'stage 'RetryDownTimeActivities'echo 'Retry goes here!'stage 'Notify'echo 'Notifying to group of users!'}]The above script is able to send the email, but the job is failing with below exception. Should the mail step be separate always ?Exception Belowriver.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65) at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56) at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50) at org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)  
 

  
 
 
 
 

 
   

[JIRA] (JENKINS-37886) is it possible to send email notification from a pipeline

2016-09-16 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy commented on  JENKINS-37886  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: is it possible to send email notification from a pipeline   
 

  
 
 
 
 

 
 Thanks Nenashev !  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37886) is it possible to send email notification from a pipeline

2016-09-01 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37886  
 
 
  is it possible to send email notification from a pipeline   
 

  
 
 
 
 

 
Change By: 
 Pedda Reddy  
 
 
Priority: 
 Minor Critical  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37886) is it possible to send email notification from a pipeline

2016-09-01 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37886  
 
 
  is it possible to send email notification from a pipeline   
 

  
 
 
 
 

 
Issue Type: 
  Task  
 
 
Assignee: 
 Oleg Nenashev  
 
 
Components: 
 _unsorted  
 
 
Created: 
 2016/Sep/01 10:11 AM  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Pedda Reddy  
 

  
 
 
 
 

 
 Is it possible to send an email notification in pipeline, based on the completion of pipeline segments I want to send out emails. the mail-ext plugin doesn't show any options when I create a job with pipeline. I'm checking if I can acheieve the same using groovy scripting, but no headway so far.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 
   

[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-09 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37210  
 
 
  dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
Change By: 
 Pedda Reddy  
 
 
Comment: 
 In the Pipeline Plugin (Workflow aggregator) as Pipeline Definition I want to instantiate the groovy class and call the methods in the class.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-09 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37210  
 
 
  dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
Change By: 
 Pedda Reddy  
 
 
Comment: 
 It is not Pipeline-view-plugin, as I mentioned in the other comment it is 'Pipeline plugin (pipeline aggregator)', the tags are not available, I don't have privileges to create new tags,  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-09 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37210  
 
 
  dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
Change By: 
 Pedda Reddy  
 
 
Comment: 
 then what would be my choice ?   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-09 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37210  
 
 
  dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
Change By: 
 Pedda Reddy  
 
 
Comment: 
 you are the rudest person I ever met online!  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-09 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy commented on  JENKINS-37210  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
 Oleg Nenashev Hi Oleg, there's been no update on this issue. Any one who can help ?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-08 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy commented on  JENKINS-37210  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
 Jesse Glick Hi Jesse , anything you can help me out..!?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-05 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy commented on  JENKINS-37210  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
 you are the rudest person I ever met online!  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-05 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37210  
 
 
  dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
Change By: 
 Pedda Reddy  
 
 
Component/s: 
 _unsorted  
 
 
Component/s: 
 pipeline-view-plugin  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-05 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy commented on  JENKINS-37210  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
 then what would be my choice ?   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-05 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy commented on  JENKINS-37210  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
 It is not Pipeline-view-plugin, as I mentioned in the other comment it is 'Pipeline plugin (pipeline aggregator)', the tags are not available, I don't have privileges to create new tags,  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-05 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy commented on  JENKINS-37210  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
 In the Pipeline Plugin (Workflow aggregator) as Pipeline Definition I want to instantiate the groovy class and call the methods in the class.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-05 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37210  
 
 
  dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
Change By: 
 Pedda Reddy  
 

  
 
 
 
 

 
 I have developed groovy classes in IntelliJ IDE, I want to instantiate one of these classes in 'Pipeline script' of Pipeline plugin in Jenkins. I tried to follow the examples of 'Eval.me' and class.forName
Sample

package com.mycomp.tmo

/**
* Created by
*/
public void callMe(){
println("Hello World !")
}


def e = "callMe"
def cl = Class.forName("com.mycomp.tmo.Sample")
println(Eval.me("${c1} (${e})"))
Tried Below as well:
String cls = 'D:\\Users\\b\\IdeaProjects\\Automation\\src\\com\\mycomp\\tmo\\DBConnectionManager'

def map = ['person': ${cls}]
map['person'].newInstance()
--
String cls = 'D:\\Users\\peddareddy.b\\IdeaProjects\\Tibco_Automation\\src\\com\\merck\\comet\\DBConnectionManager'

def map = ['person': ${cls}]
map['person'].newInstance()

Add Comment   This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)

[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-05 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37210  
 
 
  dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
Change By: 
 Pedda Reddy  
 

  
 
 
 
 

 
 I have developed groovy classes in IntelliJ IDE, I want to instantiate one of these classes in 'Pipeline script' of Pipeline plugin in Jenkins. I tried to follow the examples of 'Eval.me' and class.forName
Sample

package com.mycomp.tmo

/**
* Created by
*/
public void callMe(){
println("Hello World !")
}


def e = "callMe"
def cl = Class.forName("com.mycomp.tmo.Sample")
println(Eval.me("${c1} (${e})"))
Tried Below as well:
String cls = 'D:\\Users\\b\\IdeaProjects\\Automation\\src\\com\\mycomp\\tmo\\DBConnectionManager'

def map = ['person': ${cls}]
map['person'].newInstance()
--
String cls = 'D:\\Users\\ peddareddy. b\\IdeaProjects\\ Tibco_Automation Automation \\src\\com\\ merck mycomp \\ comet tmo \\DBConnectionManager'

def map = ['person': ${cls}]
map['person'].newInstance()

Add Comment

[JIRA] (JENKINS-37210) dynamically load a groovy class and invoke a method in pipeline script

2016-08-05 Thread dearpe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Pedda Reddy created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37210  
 
 
  dynamically load a groovy class and invoke a method in pipeline script   
 

  
 
 
 
 

 
Issue Type: 
  Task  
 
 
Assignee: 
 Sergei Egorov  
 
 
Components: 
 pipeline-view-plugin  
 
 
Created: 
 2016/Aug/05 11:48 AM  
 
 
Priority: 
  Blocker  
 
 
Reporter: 
 Pedda Reddy  
 

  
 
 
 
 

 
 I have developed groovy classes in IntelliJ IDE, I want to instantiate one of these classes in 'Pipeline script' of Pipeline plugin in Jenkins. I tried to follow the examples of 'Eval.me' and class.forName 
Sample

package com.mycomp.tmo

/**

  • Created by
    */
    public void callMe() { println("Hello World !") }

def e = "callMe"
def cl = Class.forName("com.mycomp.tmo.Sample")
println(Eval.me("$

{c1}

($

{e}

)"))
Tried Below as well:
String cls = 'D:\\Users\\b\\IdeaProjects\\Automation\\src\\com\\mycomp\\tmo
DBConnectionManager'

def map = ['person': $

{cls}

]
map['person'].newInstance()