Re: java.util.zip.ZipException: archive is not a ZIP archive

2017-01-30 Thread Vinodhini Vijay
Hello, I get the same Exception. Any clue? Was this issue solved? Thanks in advance! Regards On Tuesday, 26 May 2015 12:34:37 UTC+5:30, 672162494 wrote: > > The error below occurs intermittently, with low frequency. > *but I have this zip file and can upzip it properly, I am not sure why this

Adding Environment Variable via Workflow

2016-01-25 Thread Vinodhini Vijay
Hello Team , We are creating a buildstep that is both freestyle and workflow compatible. This build step should add an environment variable and modify WORKSPACE Environment variable. I had overridden buildEnvVars method in the builder. // TODO is an equivalent for Run needed? public void bu

Re: Plugin InitMilestone

2016-01-21 Thread Vinodhini Vijay
; /B > > On Thu, Jan 21, 2016 at 11:22 AM, Vinodhini Vijay > wrote: > >> >> >> Hello Team >> >> I have created 2 Jenkins plugins. 1st plugin is dependent on 2nd plugin. >> >> I wanted to access 2nd plugin's properties file (bundled with 2nd

Plugin InitMilestone

2016-01-21 Thread Vinodhini Vijay
Hello Team I have created 2 Jenkins plugins. 1st plugin is dependent on 2nd plugin. I wanted to access 2nd plugin's properties file (bundled with 2nd Plugin hpi) from the 1st Plugin in a method which has this annotation @Initializer(after = PLUGINS_STARTED) But always I am getting FileNotF

Finding the number of free executors

2015-10-26 Thread Vinodhini Vijay
Hello All, Is there any way to find the number of free executors during a build? While a build starts, the run method of the build object is called. Is there a way to find the number of free executors (when the control is inside the run method) currently available in the master or any specifc

Re: How to resave a job programmatically

2015-09-21 Thread Vinodhini Vijay
On Tuesday, 22 September 2015 02:34:36 UTC+5:30, Jesse Glick wrote: > > On Mon, Sep 21, 2015 at 10:04 AM, Vinodhini Vijay > > wrote: > > I had made changes to my old Jenkins plugin. The config.xml doesnt > change > > and doesnt reflect the new builders

How to resave a job programmatically

2015-09-21 Thread Vinodhini Vijay
Hello All, I had made changes to my old Jenkins plugin. The config.xml doesnt change and doesnt reflect the new builders until I resave the old Jobs. Is there any way to programmatically resave my old jobs? I tried the below, but config.xml is not updated correctly. Unwanted Tags are removed

Re: Request for startup commands

2015-09-07 Thread Vinodhini Vijay
> just put into the plugins/ folder, for example. > > If you want to do this whenever the plugin is _loaded_ (every Jenkins > startup, for example), look at @Initializer. > > > On 07.09.2015, at 06:41, Vinodhini Vijay > wrote: > > > > > > >

Request for startup commands

2015-09-07 Thread Vinodhini Vijay
Hello, I would like to initialize some other applications during my Jenkins Plugin Installation. May I know how could I do this ? What Class should I extend so that, whenever my Plugin is installed or re-installed, I could run some commands to initialize some of my application? I tried to

Re: How to make a BatchFile Workflow Compatible?

2015-09-02 Thread Vinodhini Vijay
is really silly question. (I am very much interested in learning this and understanding this more :) ) Thank you! On Wednesday, 2 September 2015 21:17:32 UTC+5:30, Robert Sandell wrote: > > node { > bat 'echo hello windows' > } > > On Wed, Sep 2, 2015 at 9:15 AM, Vi

How to make a BatchFile Workflow Compatible?

2015-09-02 Thread Vinodhini Vijay
Hello All, We create objects of BatchFile and use. But this is not Workflow Compatible ( got to know from the signature of method "perform"). Is there any workflow compatible version of BatchFile already available? Thank you! -- You received this message because you are subscribed to the G

Re: Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-28 Thread Vinodhini Vijay
oovy code. Any solutions? Thank you! On Friday, 28 August 2015 15:13:33 UTC+5:30, Robert Sandell wrote: > > use run.getParent() instead. > > /B > > On Fri, Aug 28, 2015 at 11:34 AM, Vinodhini Vijay > wrote: > >> >> Thank you all!! :) Is it valid to use the b

Re: Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-28 Thread Vinodhini Vijay
at 06:20, Vinodhini Vijay > wrote: > > > I had overridden the method : > > > > public void setUp(Context context, Run run, FilePath workspace, > Launcher launcher, TaskListener listener, EnvVars initialEnvironment) > > throws IOException, Interrup

Request to on how get "workspace" location from Run object - for workflow compatibilty

2015-08-27 Thread Vinodhini Vijay
Hello All, I would like to get the workspace of the Run object. To make workflow compatible, my custom build wrapper class extends SimpleBuildWrapper. I had overridden the method : public void setUp(Context context, *Run* run, FilePath workspace, Launcher launcher, TaskListener listener, Env

Request for help to read from the the error log for Custom BatchFile

2015-08-24 Thread Vinodhini Vijay
Hello All, I created a custom batch file that extends from BatchFile. I have to read the error log of the custom BatchFile execution. How do I do it? ProcStarter procStarter = launcher.launch().cmds(buildCommandLine(script)).envs(envVars).stdout(listener).pwd(ws); int r = join(procStarter.st

Re: Request for more details on Build Wrapper stage in Workflow

2015-08-21 Thread Vinodhini Vijay
On Thursday, 20 August 2015 20:04:33 UTC+5:30, Jesse Glick wrote: > > On Thu, Aug 20, 2015 at 5:21 AM, Vinodhini Vijay > > wrote: > > I just now upgraded Workflow plugin to 1.9 version. I could see "General > Build Wrapper". > > Progress… > > >

Re: Request for more details on Build Wrapper stage in Workflow

2015-08-20 Thread Vinodhini Vijay
Thank you! Yes, my class extends SimpleBuildWrapper. I was using, older Jenkins LTS , later upgraded to Jenkins LTS 1.609.2. At this time, Workflow was not updated. It was using old version 1.4.2 . I just now upgraded Workflow plugin to 1.9 version. I could see "General Build Wrapper". But t

Request for more details on Build Wrapper stage in Workflow

2015-08-19 Thread Vinodhini Vijay
Hello All, I had made a build wrapper that is Workflow compatible. How will the Build Wrappers/Build Environment be displayed in the Free Style Project, gets displayed in the "Snippet Generator" of Workflow plugin? I couldn't find the "General Build Wrapper/ General Build Environment" in the

Re: Office Hour for August 12: Workflow plugin

2015-08-12 Thread Vinodhini Vijay
Thanks for the session. I was really informative and useful :) On Tuesday, 11 August 2015 19:26:37 UTC+5:30, Jesse Glick wrote: > > On Tue, Aug 11, 2015 at 7:32 AM, Vinodhini Vijay > > wrote: > > The event time is showing 11:00am PDT in > > https://wiki.jenkins-ci.or

Re: Office Hour for August 12: Workflow plugin

2015-08-11 Thread Vinodhini Vijay
Hello Mr.Beck, The event time is showing 11:00am PDT in https://wiki.jenkins-ci.org/display/JENKINS/Office+Hours

Request to include pre-scm as part of SCM

2015-07-27 Thread Vinodhini Vijay
Hello All, This is with respect to BuildWrapper java class and SCM class. pres-scm build step Jenkins plugin uses this class: https://github.com/jenkinsci/pre-scm-buildstep-plugin/blob/master/src/main/java/org/jenkinsci/plugins/preSCMbuildstep/PreSCMBuildStepsWrapper.java Only if I checkbo

Re: Reviving Office Hours

2015-07-23 Thread Vinodhini Vijay
+ 1 . I am eagerly waiting for such sessions! How would I be able to join this? Is the speech delivered via WebEx or Video Conferencing? On Friday, 17 July 2015 17:56:59 UTC+5:30, Daniel Beck wrote: > > Hi everyone, > > I plan to revive Office Hours, the bi-weekly meeting of Jenkins users an

Re: Where is the Builder class is instantiated in Jenkins (to inject dependencies)

2015-07-22 Thread Vinodhini Vijay
> Descriptor#newInstancesFromHeteroList(…). > > When loading the job from disk or submitting job config.xml via CLI/POST, > the objects get deserialized from XML in XmlFile#read() or > XmlFile#unmarshal(Object). > > On 22.07.2015, at 11:16, Vinodhini Vijay > wrote: > > > > >

Re: Where is the Builder class is instantiated in Jenkins (to inject dependencies)

2015-07-22 Thread Vinodhini Vijay
May I know if the above question is valid? or Do some more information is required? Could somebody please help me? Thank you! On Tuesday, 21 July 2015 13:28:58 UTC+5:30, Vinodhini Vijay wrote: > > > > Hello All, > > Where is the Builder class is instantiated in Jenkin

Where is the Builder class is instantiated in Jenkins (to inject dependencies)

2015-07-21 Thread Vinodhini Vijay
Hello All, Where is the Builder class is instantiated in Jenkins? I would like to inject few dependencies to my custom builder class. I am using Google Guice for this. As per the guice documents, I have to create some thing like the below: Injector injector = Guice.createInjector(new Dep

Re: Is Polling done via executors?

2015-06-24 Thread Vinodhini Vijay
Thank you so much!! So, May I know if this java task scheduler (which runs SCM-plugin polling) runs via one of the available executors? -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving ema

Re: Is Polling done via executors?

2015-06-24 Thread Vinodhini Vijay
d polling... > I meant : Poll SCM in Build Triggers of Free Style Project, where we could specify the trigger frequency like * 23 * * * > > 2015-06-24 6:39 GMT+02:00 Vinodhini Vijay >: > >> >> >> Hello All, >> >> >> When a free style job is conf

Is Polling done via executors?

2015-06-23 Thread Vinodhini Vijay
Hello All, When a free style job is configured for SCM polling (SCMTrigger), will the polling happen via one of the available executors ? Also, How does Jenkins run scheduled polling for SCM? More details on this would really helpful for us. Thank you! -- You received this message becau

Re: How to get the currently running build object ?

2015-06-15 Thread Vinodhini Vijay
: > > Here's a question to throw you even further down the rabbit burrow... how > do you know which build you want to stop when the job is enabled for > concurrent builds? There could be 50 currently running builds. > > On 15 June 2015 at 09:45, Vinodhini Vijay > wrote: > >

How to get the currently running build object ?

2015-06-15 Thread Vinodhini Vijay
Hello All, I have a collection of FreeStyleProjects references in a Parent Job. I get the currently building object as shown below in the doStop Method of the Parent job. But I always get the *currentBuild *object as null. public synchronized HttpResponse doStop() throws IOException, Servle

Re: How to upgrade Matrix (matrix-auth) and it s dependency plugin in pom.xml without changing the parent Jenkins version?

2015-06-10 Thread Vinodhini Vijay
Hello All, Thank you very much!! After removing the target and work directories and re-runing Jenkins, the error doesn't appear. Thank you again!! On Thursday, 11 June 2015 03:40:12 UTC+5:30, Jesse Glick wrote: > > On Wed, Jun 10, 2015 at 9:00 AM, Daniel Beck > wrote: > > Make sure you don

Re: How to upgrade Matrix (matrix-auth) and it s dependency plugin in pom.xml without changing the parent Jenkins version?

2015-06-10 Thread Vinodhini Vijay
le to use some good features of Jenkins like Matrix Project, etc.. as it might be disabled. Any advice (or corrections in our understanding ) would be really helpful to us. Thanks! On Wednesday, 10 June 2015 17:00:57 UTC+5:30, Vinodhini Vijay wrote: > > > > Hello All, > > We ar

How to upgrade Matrix (matrix-auth) and it s dependency plugin in pom.xml without changing the parent Jenkins version?

2015-06-10 Thread Vinodhini Vijay
Hello All, We are using Jenkins 1.580.3 LTS version for our plugin development. While starting Jenkins via mvn hpi:run, we are getting the below error: Jun 10, 2015 4:30:11 PM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization Jun 10, 2015 4:30:32 PM hudson.PluginManager$1$3

How to create a VirtualFile/FilePath for all child job workspace?

2015-06-02 Thread vinodhini . vijay
Hello All, Under Jenkins Home folder I have : --jobs folder --ParentJob folder --builds folder --jobs folder --child1 folder --workspace folder --builds folder .. --child2 folder

Re: Migrate SonarQube plugin to new Jenkins API: question on Callable::checkRoles

2015-05-26 Thread vinodhini . vijay
Hello All, I have a similar issue after I upgraded to LTS 1.580.3. We would run our callable code either in Master or Slave. Instead of using Callable, I am using MasterToSlaveCallable now. It was mentioned in the comments (https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/j

Re: How to access Jenkins using basic authentication

2015-05-18 Thread vinodhini . vijay
When you get "* anonymous is missing the Job/ExtendedRead permission*", did you give read permission to Anonymous as mentioned in the below step in the link given by you?( https://wiki.jenkins-ci.org/display/JENKINS/Quick+and+Simple+Security

Re: Request for Jelly Tag library (custom) support : custom tag library not working after restarting Jenkins

2015-05-06 Thread vinodhini . vijay
Thank you all !! I made the below changes and it is working fine. 1. Modified children as transient and modified its type to Map 2. Added another Interface ItemGroup (for SpecialMainProject) and implemented all abstract methods 3. Initialized ItemGroupMixIn and used this object to createProje

Jenkins LTS 1.xxx and 1.xxx.1 are both same?

2015-05-03 Thread vinodhini . vijay
Hello All, When I was using one of the LTS versions of Jenkins, I could find list of LTS versions displayed at http://mirrors.jenkins-ci.org/war-stable/ For example, In my POM, Jenkins parent version is 1.554 instead of 1.554.1/1.554.2/1.554.3. In this case, May I know if 1.554(without .1 o

Re: Request for Jelly Tag library (custom) support : custom tag library not working after restarting Jenkins

2015-04-22 Thread vinodhini . vijay
Thank you for your reply. May I know how could I learn this - details of how Jenkins loads and save items ? Is there any Flowchart or Workflow of Jenkins(how internal classes and jellies are connected and loaded) available ? I am really interested in this and also, I would like to contribute

Request for Jelly Tag library (custom) support : custom tag library not working after restarting Jenkins

2015-04-22 Thread vinodhini . vijay
Hello All, I have a created a special Build Job. Jenkins > New job > Build Special project > Ok. This creates few other child projects as FreeStyleProject. I have a main.jelly file in the src/main/resources/com/myproject/SpecialMainProject . I would like to list down all child projects in t

Re: Jenkins Remote Job Creation via Apache HttpClient or HttpUrlConnection

2015-04-06 Thread vinodhini . vijay
Hello All, My Jenkins is over HTTPS. Thanks On Monday, April 6, 2015 at 2:58:02 PM UTC+5:30, vinodhi...@gmail.com wrote: > > Hello All, > > > I am using Apache HTTPClient to create remote job in Jenkins. My Jenkins > is running behind Apache. > > I get the error message : "HTTP/4.1 401 Auth

Jenkins Remote Job Creation via Apache HttpClient or HttpUrlConnection

2015-04-06 Thread vinodhini . vijay
Hello All, I am using Apache HTTPClient to create remote job in Jenkins. My Jenkins is running behind Apache. I get the error message : "HTTP/4.1 401 Authorization Required" when I run the below code. I could login into Jenkins and create job via browser. But when I try to create job via Apa

How to schedule a child Free Style job programmatically from a parent Job in Jenkins Plugin Development?

2015-04-01 Thread vinodhini . vijay
Hello All, I am working on Jenkins Plugin Development. I have a special Job type, that creates Free Style Projects on saving of the Project. e.g: Jenkins > New Item/New Job > Enter Name (say "Special Project") and click "Build a Special Project" radio button > Click Save. On Clickin