Re: [workflow-plugin] how to add parameters to existing/new project

2015-07-16 Thread Arek Skalski
"Desc2"), new StringParameterDefinition("B", "AAAA", "Desc3") )); W dniu środa, 15 lipca 2015 11:06:07 UTC+2 użytkownik Arek Skalski napisał: > > > > I have a code snippet to create an empty workflow project. > > def par

Re: [workflow-plugin] how to add parameters to existing/new project

2015-07-16 Thread Arek Skalski
"Desc2"), new StringParameterDefinition("B", "AAAA", "Desc3") )); W dniu środa, 15 lipca 2015 11:06:07 UTC+2 użytkownik Arek Skalski napisał: > > > > I have a code snippet to create an empty workflow project. > > def par

Re: Failing to iterate list with workflow

2015-07-15 Thread Arek Skalski
Try to use classic: for(int i = 0 ; i < jobs.length(); ++i) {...} W dniu wtorek, 14 lipca 2015 21:40:08 UTC+2 użytkownik David Resnick napisał: > > I'm trying create jobs to run in parallel in a workflow with this script: > > def branches = [:] > def jobs = [ 'job-1' ] > for (job in jobs) { >

[workflow-plugin] how to add parameters to existing/new project

2015-07-15 Thread Arek Skalski
I have a code snippet to create an empty workflow project. def parent = Jenkins.getInstance() def name = "Test_Name" def project = parent.getItem(name) if (project == null) { project = parent.createProject(WorkflowJob.class, name) } else print "[INFO] Project $name already exists. Will be

Re: [workflow-plugin] where does the print output go - not present in jenkins console

2015-06-25 Thread Arek Skalski
rkflow Finished: SUCCESS W dniu niedziela, 21 czerwca 2015 07:16:47 UTC+2 użytkownik Baptiste Mathus napisał: > > It goes in Jenkins logs. > Just use println or echo without the System.out part. > > HTH > Le 17 juin 2015 4:44 PM, "Arek Skalski" > > a écrit :

[workflow-plugin] where does the print output go - not present in jenkins console

2015-06-17 Thread Arek Skalski
I have a sample script: class LogTest { def name tesst(aName) { name = aName } def info(message) { System.out.println("$name $message") } } node ("myname") { def tt = new LogTest("name") tt.info("message") } My output: Started by user anonymous

[workflow-plugin] I need to stop all running workflow runs

2015-06-17 Thread Arek Skalski
>From time to time I have a issue that jenkins keep spawning jobs (workflows) with status resuming. Today it really went crazy and kept crashing my jenkins over and over again. I've managed to clean queue using script and also terminate all executors. But still there were multiple runnins work

Re: [workflow] how to mark build as unstable inside jenkins workflow?

2015-03-20 Thread Arek Skalski
That is exactly what I was looking for. Thanks! currentBuild.result = 'UNSTABLE' W dniu czwartek, 19 marca 2015 16:25:35 UTC+1 użytkownik Jesse Glick napisał: > > On Monday, March 2, 2015 at 12:04:20 PM UTC-5, Baptiste Mathus wrote: >> >> If some plugin, say the junit one, doesn't support this >>

[workflow] how to mark build as unstable inside jenkins workflow?

2015-03-02 Thread Arek Skalski
I want to implement threshold for number of failed tests on my worklfow build. If there are some failures and the threshold is not exceeded I would like to mark my build as unstable. How can I do it inside workflow job? -- You received this message because you are subscribed to the Google Group

[workflow] xunit plugin support

2015-02-25 Thread Arek Skalski
How can I use XUnit plugin within my workflow? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discus

[workflow-plugin] gerrit trigger work around

2015-02-20 Thread Arek Skalski
waiting for https://issues.jenkins-ci.org/browse/JENKINS-26010 Simple work around: 1. Create free style project 2. connect to gerrit "As usual" 3. add groovy system script execution build step 4. trigger workflow from here (one or many) 5. wait for result 6. reply to gerrit wit

Re: Workflow: How to get entire workflow definition from SCM

2015-02-20 Thread Arek Skalski
How awesome it would be actually to put gerrit inside instead of plain git? W dniu sobota, 3 stycznia 2015 16:21:25 UTC+1 użytkownik Alexander Bertram napisał: > > One of the components of the workflow system is a plugin that provides a > global git repository where you can push your groovy buil

Re: Workflow: How to get entire workflow definition from SCM

2015-02-20 Thread Arek Skalski
How awesome it would be actually to put gerrit inside instead of plain git? W dniu sobota, 3 stycznia 2015 16:21:25 UTC+1 użytkownik Alexander Bertram napisał: > > One of the components of the workflow system is a plugin that provides a > global git repository where you can push your groovy buil

Re: [workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-20 Thread Arek Skalski
sg=AFQjCNGkKLt6EleV6hZPYDG7pZktvm3jLg> > > On Thu Feb 12 2015 at 5:24:05 AM Arek Skalski > wrote: > >> I do have: >> >> Environment Injector Plugin >> >> -- >> You received this message because you are subscribed to the Google Groups >> &

Re: [workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-12 Thread Arek Skalski
I do have: Environment Injector Plugin -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion o

Re: [workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-11 Thread Arek Skalski
int Message null Running: Allocate node : Body : End Running: Allocate node : End Running: End of Workflow Finished: SUCCESS W dniu środa, 11 lutego 2015 12:08:29 UTC+1 użytkownik Arek Skalski napisał: > > *groovy script:* > > print env.NODE_NAME > > *output*: > > Started by u

[workflow-plugin] Unable to get NODE_NAME variable during the build

2015-02-11 Thread Arek Skalski
*groovy script:* print env.NODE_NAME *output*: Started by user anonymous Running: Print Message null Running: End of Workflow Finished: SUCCESS -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubsc

[workflow-plugin] publish report on workflow build

2014-11-28 Thread Arek Skalski
Is there any way to publish html report within workflow build? Use case: I want to execute multiple actions during the runtime of workflow build. I would like to automatically gather information about outcome of all actions. I would like to expose a html report within build information listing al