Re: Retrieve User permission to trigger Jenkins Project

2020-05-23 Thread varun vikas
://support.cloudbees.com/hc/en-us/articles/11578091-How-do-I-use-RBAC-REST-API- Thanks & Regards, Varun On Sat, 23 May 2020, 16:57 Markus Winter, wrote: > you just need the credential of the user with which you want to trigger > the request. not all users. > > On 23.05.2020 13:11, varun vikas wr

Re: Retrieve User permission to trigger Jenkins Project

2020-05-23 Thread varun vikas
known to me. Thanks, Varun On Sat, 23 May 2020, 16:30 Markus Winter, wrote: > Just try to do a HEAD request on the project with the users credentials. > If the user has access you should get a 200 return code. > > On 22.05.2020 14:28, varun vikas wrote: > > Hi, > >

Retrieve User permission to trigger Jenkins Project

2020-05-22 Thread varun vikas
Hi, I want to check , if user has access rights to trigger Jenkins project before sending trigger request. is there any Jenkins rest API available for above task. I am creating a web portal and i have to use jenkins REST API for above function. Thanks, Varun -- You received this message beca

Plugin is not getting aborted while execution.

2019-10-15 Thread varun vikas
Hi , I am parsing .xml file (present at slave mode) in class which implements FilePath.FileCallable> and after parsing .xml file ,I store commands in array of string and returned it to master, On master, I execute command using launcher.launch().cmds( buildCommandLine(script)).envs(envVars).st

Re: Plugin execution is not aborted when I cancelled build.

2019-10-15 Thread varun vikas
On Tue, 15 Oct 2019, 19:39 varun vikas, wrote: > Hi Jeff, > > I am parsing .xml file (present at slave mode) in class which implements > FilePath.FileCallable> and after parsing .xml file ,I > store commands in array of string and returned it to master, > where I

Re: Plugin execution is not aborted when I cancelled build .

2019-10-15 Thread varun vikas
On Tue, 15 Oct 2019, 19:39 varun vikas, wrote: > Hi Jeff, > > I am parsing .xml file (present at slave mode) in class which implements > FilePath.FileCallable> and after parsing .xml file ,I > store commands in array of string and returned it to master, > where I

Re: Plugin execution is not aborted which I cancelled build strp

2019-10-15 Thread varun vikas
Hi Jeff, I am parsing .xml file (present at slave mode) in class which implements FilePath.FileCallable> and after parsing .xml file ,I store commands in array of string and returned it to master, where I execute command using launcher.launch().cmds( buildCommandLine(script)).envs(envVars).stdou

Plugin execution is not aborted which I cancelled build strp

2019-10-15 Thread varun vikas
Hi, I am creating a Jenkins plugin which executes command( bat file or .sh file) on slave node using launcher.launch().cmds(buildCommandLine(script)).envs(envVars).stdout(listener).pwd(ws).start()); I have extended Builder and implements SimpleBuildStep. But when I tried to abort the plugin , i

Re: debugger doesnot stop at breakpoints while debugging Jenkins core in Intellij

2019-09-03 Thread varun vikas
Thanks @Hafner and @Manuel. After making change suspend=y. and address=5000 It starts working. Thanks, Varun -- 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 emai

debugger doesnot stop at breakpoints while debugging Jenkins core in Intellij

2019-09-03 Thread varun vikas
Hi, I am trying to remote debug Jenkins core code. I run command java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 jenkins.war jenkins started successfully on port 8000. Now I do remote debugging and set some breakpoints , but debugger is not stopping at breakpoints.

Re: Is there any difference in plugin development of pipeline and freestyle project

2019-08-24 Thread varun vikas
> > Hi Slide, Thanks alot for your valuable suggestion. I have made changes in my code to implement SimpleBuildStep and its working fine. -Varun -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and s

Re: Is there any difference in plugin development of pipeline and freestyle project

2019-08-24 Thread varun vikas
lines. See > https://jenkins.io/doc/developer/plugin-development/pipeline-integration/ for > details > > > Am 14.06.2019 um 07:57 schrieb varun vikas >: > > Hi, > > I am developing a plugin which reads xml file and do copy,zip,delete file > and also execute co

Re: Custom Annotations in jenkins

2019-08-17 Thread varun vikas
On Sunday, 18 August 2019 10:07:18 UTC+5:30, varun vikas wrote: > > Hi, > > I am going through SystemProperties.java file code in jenkins Core . > There are many custom annotations defined there e.g > > @SuppressFBWarnings(value = "ST_WRITE_TO_STATIC_FROM_INSTANCE

Custom Annotations in jenkins

2019-08-17 Thread varun vikas
Hi, I am going through SystemProperties.java file code in jenkins Core . There are many custom annotations defined there e.g @SuppressFBWarnings(value = "ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD", justification = "Currently Jenkins instance may have one ond only one context") @Restricted(NoExter

List of annotations used in Jenkins source code .

2019-08-16 Thread varun vikas
Hi, can any one please provide lists of annotations used in Jenkins. There are many annotations , and it is difficult to find out , what these annotations mean. I am going through Jenkins code flow. Hudson Web Application Entry Point Stapler is initialized in the Web.xml and specified as Servle

Is there any difference in plugin development of pipeline and freestyle project

2019-06-13 Thread varun vikas
Hi, I am developing a plugin which reads xml file and do copy,zip,delete file and also execute commands on slave/master machine. It is working fine on freeStyle project. what chnages I have to do to work this plugin on pipeline projects. Thanks, Varun -- You received this message because you

Re: FilePath.act question

2019-06-12 Thread varun vikas
of the > base one. > > /B > > Den ons 12 juni 2019 kl 11:22 skrev varun vikas : > >> @old hooky >>> >> what should be return type of >> >> public List invoke(File ws, VirtualChannel channel) function. >> Here it is throwing error , att

Re: FilePath.act question

2019-06-12 Thread varun vikas
> > @old hooky > what should be return type of public List invoke(File ws, VirtualChannel channel) function. Here it is throwing error , attempting to use incompatible return type. I have defined a inner class private static final class AttachmentLister implements FileCallable{ @override publi