Re: Problem with ClearCase

2014-10-14 Thread jenkinsuser92
I want to modify and add some functions, I'd like to have a different UI.. the existing plugins are just not ideal for our needs and the way we use Jenkins. That's why I'm writing a new one and I would be really grateful for any kind of tip regarding the ClearCase issue :) Am Montag, 13.

Problem with ClearCase

2014-10-13 Thread jenkinsuser92
I am currently writing a Jenkins plugin, where I have a button that starts a build. In the Java code that is executed when the user clicks the button, there are some cleartool commands. First, it creates a view: Runtime.getRuntime().exec(cmd.exe /c cleartool mkview -tag + viewTag + +

Re: Problem with ClearCase

2014-10-13 Thread jenkinsuser92
Sorry, the message got messed up. Here's a correct version: I am currently writing a Jenkins plugin, where I have a button that starts a build. In the Java code that is executed when the user clicks the button, there are some cleartool commands. First, it creates a view:

Automatically create new page

2014-10-06 Thread jenkinsuser92
Help :) In my plugin I have an additional page (extends Action, DescriptorImpl extends TransientProjectActionFactory). Here, the user can click on a button to start the execution of a batch script. The output of these executions is stored in files and I'd like to make it accessible for the

Re: Progressive output (like console)

2014-10-01 Thread jenkinsuser92
I put something together by looking at the code of the Branch API plugin. It's not yet doing everything I want it to do.. but we're getting there. Am Montag, 29. September 2014 16:01:14 UTC+2 schrieb jenkin...@gmail.com: Hello, in my plugin I created an extra page with a button on it that

Re: Progressive output (like console)

2014-09-30 Thread jenkinsuser92
Okay.. I'll try, really. So, I included the main-panel section of the console.jelly in my own page, where I want the console output of some batch commands to be shown. The Console Output heading is displayed - so far so good. Now, it points of course to my Java class, while the methods

Progressive output (like console)

2014-09-29 Thread jenkinsuser92
Hello, in my plugin I created an extra page with a button on it that is connected to a doConfigSubmit method in the java class. When the button is clicked several batch commands get executed. Until now I handle the console output like this: while ((line = bufferedReader.readLine()) != null) {

Button to execute batch script

2014-09-25 Thread jenkinsuser92
Hi, I need help creating a special button for my plugin. It should be located on the build page (e.g. jenkins/job/test/1/) and when the user clicks on it a batch script should be executed. I found out that I can put stuff on the build page with a java class that extends InvisibleAction, a

UI of own builder not persisted

2014-09-19 Thread jenkinsuser92
I wrote my own Builder class (MyClass extends Builder and DescriptorImpl extends BuildStepDescriptorBuilder). In the corresponding config.jelly I have a dropdown menu where the user can select a string which is then provided as an argument to a batch file. Whenever I choose my builder on the

Re: UI of own builder not persisted

2014-09-19 Thread jenkinsuser92
Sure, thanks for taking a look at it. Could the problem be due to the newInstance method? I deleted it by accident and the dropdown menu stayed. Unfortunately the batch file execution didn't work any more.. I also have other classes in this plugin that make changes to the job's configuration

Re: Connect jelly and java

2014-09-04 Thread jenkinsuser92
Thanks for replying! So now the code looks like this, right? public class JavaClass implements Action { private AbstractProject ap; public String selection; public JavaClass(AbstractProject ap) { this.ap = ap; } @DataBoundConstructor public JavaClass(String selection) {

Connect jelly and java

2014-09-03 Thread jenkinsuser92
Hi all, I am currently developing my first Jenkins plugin. I need to have a dropdown menu on the job page that is filled via a java method, but the jelly and the java file don't seem to work properly together: There is just an empty dropdown list. What could be wrong? *jobMain.jelly*