pipeline script : Job Weight

2017-05-15 Thread Kenneth Johansson
We have been using the heavy job plugin and configured the nodes so that they have as many executors as cpus. There we could set in the job the job weight to as many cpus the job really used. But we shifted over to using pipeline and groovy script and now that parameter is not possible to set

Re: test for variables

2017-04-28 Thread kenneth johansson
On 2017-04-28 13:38, Kenneth Johansson wrote: I want to test if a property on a job exist att all. and then do something depening on if it true or false. if the property exist there is no issue testing if its true or false but I do not want to force the job to have to create the property so I

test for variables

2017-04-28 Thread Kenneth Johansson
I want to test if a property on a job exist att all. and then do something depening on if it true or false. if the property exist there is no issue testing if its true or false but I do not want to force the job to have to create the property so I want to test if the variable exist and that

Re: groovy commands and description.

2017-04-28 Thread Kenneth Johansson
On 2017-04-27 17:52, Mark Waite wrote: On Thu, Apr 27, 2017 at 9:36 AM Kenneth Johansson <kenneth.johans...@inteno.se <mailto:kenneth.johans...@inteno.se>> wrote: On 2017-04-27 17:22, Mark Waite wrote: Refer to https://jenkins.io/doc/pipeline/steps/workflow-durab

Re: groovy commands and description.

2017-04-27 Thread Kenneth Johansson
r 27, 2017 at 9:16 AM Kenneth Johansson <kenneth.johans...@inteno.se <mailto:kenneth.johans...@inteno.se>> wrote: How do I find out what functions exist that can be used from a groovy script and how to use them ?? like how to get the shell script output from a shell comma

groovy commands and description.

2017-04-27 Thread Kenneth Johansson
How do I find out what functions exist that can be used from a groovy script and how to use them ?? like how to get the shell script output from a shell command into a variable. so the sh command is in basically all examples written as "sh 'command'" but there is another way also so that

Re: pipeline: parameters documentation.

2017-04-26 Thread Kenneth Johansson
On 2017-04-26 16:14, Björn Pedersen wrote: Am Mittwoch, 26. April 2017 14:43:39 UTC+2 schrieb Kenneth Johansson: hmm I'm starting to question the usefulness of the pipeline system. Its very hard to understand how to do even very basic stuff. Even something as easy as finding

pipeline: parameters documentation.

2017-04-26 Thread Kenneth Johansson
hmm I'm starting to question the usefulness of the pipeline system. Its very hard to understand how to do even very basic stuff. Even something as easy as finding out what type of parameters I can use is hard. The documentation on https://jenkins.io/doc/book/pipeline/syntax/ only mention

Re: pipeline: script location

2017-04-26 Thread Kenneth Johansson
the basic configuration step. On Wed, Apr 26, 2017 at 5:01 AM Kenneth Johansson <kenneth.johans...@inteno.se <mailto:kenneth.johans...@inteno.se>> wrote: So I have a pipeline job that is using the "pipeline script from SCM" as suggested in the documentation

pipeline: script location

2017-04-26 Thread Kenneth Johansson
So I have a pipeline job that is using the "pipeline script from SCM" as suggested in the documentation. But for developing code this is really really annoying as I now need to checking every single change even if its just to test something out and for a new user its going to be quite a lot