How to whitelist Build Flow Plugin

2020-03-20 Thread Jagjeet Singh
after upgrading to Jenkins 2.213 I'm seeing issues with build record 
serialisation.  Build records are not being saved and are lost when the service 
is restarted.  Here is error I am seeing.

SEVERE: Failed to save build record
java.io.IOException: java.lang.RuntimeException: Failed to serialize 
hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
at hudson.XmlFile.write(XmlFile.java:200)
at hudson.model.Run.save(Run.java:1923)
at hudson.model.Run.execute(Run.java:1784)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Caused by: java.lang.RuntimeException: Failed to serialize 
hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
at 
hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
at 
hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
at 
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
at 
hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
at 
hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
at 
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at 
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at 
com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
at 
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
at hudson.XmlFile.write(XmlFile.java:193)
... 5 more
Caused by: java.lang.RuntimeException: Failed to serialize 
hudson.model.CauseAction#causeBag for class hudson.model.CauseAction
at

I found your conversation on 
https://groups.google.com/forum/m/#!msg/jenkinsci-users/5ggNkmjewng/K7J_lLMBAgAJ

There it is written as Suppress the entire whitelist by using 
"-Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true"

I had run the below command on my windows Jenkin path:
java -Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true -jar 
jenkins.war ...

It has turned my existing Jenkins server to newly installed one. I have to 
configure everything from fresh. All the jobs are missing. 

Also is there any other way by which we can whitelist the build flow plug-in?

PS: My Jenkins Project's is on Linux. So looking for solution which can be 
applied on Linux server.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8b57f964-7728-419f-adea-3e4de9ac45b8%40googlegroups.com.


Re: Re[4]: Jenkins white-list for Build flow plugin

2018-08-27 Thread Oleg Nenashev
In the case of Windows services, you can put the JVM arguments here:
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/windows-service/jenkins.xml#L41


On Mon, Aug 27, 2018 at 3:11 PM Andrey Gaizler  wrote:

> Hello Oleg!
> Thanks for answer.
> But I use Windows with Jenkins as EXE service that runs on Master build
> machine.
> How can I run Jenkins.exe with this parameter?
> Or may be to add this parameter to another place?
>
> Thanks!
>
>
>
> Воскресенье, 26 августа 2018, 17:55 +03:00 от Oleg Nenashev <
> o.v.nenas...@gmail.com>:
>
> Added the mailing list to Cc.
> In order to send messages to this mailing list, you need to join it.
>
> Suppress the entire whitelist by using
> "-Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true"
>
>
> It has to be done in Java startup options, e.g. "java
> -Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true -jar jenkins.war
> ..."
>
> I use Jenkins plugin Build-flow that is deprecated and not supported, but
> I need it.
>
> It's better to consider migrating from the plugin.
> The functionality was largely replaced by Pipeline, and the plugin has not
> been maintained for years.
>
> Hopefully it helps,
> Oleg
>
>
>
> On Sun, Aug 26, 2018 at 3:47 PM Andrey Gaizler  > wrote:
>
> Sorry, I fail to send mail to Jenkins users list.
> Can you please answer me or to the list?
>
> Thanks!
>
>
> Воскресенье, 26 августа 2018, 15:02 +03:00 от Oleg Nenashev <
> o.v.nenas...@gmail.com
> >:
>
> Hi! Could you please ask the same question in the Jenkins user mailing
> list? I will respond there
>
> On Sun, Aug 26, 2018, 12:51 Andrey Gaizler  >
> wrote:
>
> Hello Oleg!
> I use Jenkins plugin Build-flow that is deprecated and not supported, but
> I need it.
> After upgrade of Jeknins it doesn't save build.xml file and history is
> removed after Jenkins restart.
> I found many topics that need to suppress white-list.
> You posted:
>
>- Suppress the entire whitelist by using
>"-Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true"
>
>
> Please help me to understand where can I do this?
>
> Thanks in advance.
>
>
>
> Best wishes,
> Andrey Gaizler !
>
>
>
> Best wishes,
> Andrey Gaizler !
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPfivLCH9Ok9ECqA-GVYbghNN%2B%3DLTDJwzh-xeBWGSLi1t_%3D20w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Re[2]: Jenkins white-list for Build flow plugin

2018-08-26 Thread Oleg Nenashev
Added the mailing list to Cc.
In order to send messages to this mailing list, you need to join it.

Suppress the entire whitelist by using
> "-Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true"
>

It has to be done in Java startup options, e.g. "java
-Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true -jar jenkins.war
..."

I use Jenkins plugin Build-flow that is deprecated and not supported, but I
> need it.
>
It's better to consider migrating from the plugin.
The functionality was largely replaced by Pipeline, and the plugin has not
been maintained for years.

Hopefully it helps,
Oleg



On Sun, Aug 26, 2018 at 3:47 PM Andrey Gaizler  wrote:

> Sorry, I fail to send mail to Jenkins users list.
> Can you please answer me or to the list?
>
> Thanks!
>
>
> Воскресенье, 26 августа 2018, 15:02 +03:00 от Oleg Nenashev <
> o.v.nenas...@gmail.com>:
>
> Hi! Could you please ask the same question in the Jenkins user mailing
> list? I will respond there
>
> On Sun, Aug 26, 2018, 12:51 Andrey Gaizler  >
> wrote:
>
> Hello Oleg!
> I use Jenkins plugin Build-flow that is deprecated and not supported, but
> I need it.
> After upgrade of Jeknins it doesn't save build.xml file and history is
> removed after Jenkins restart.
> I found many topics that need to suppress white-list.
> You posted:
>
>- Suppress the entire whitelist by using
>"-Djenkins.security.ClassFilterImpl.SUPPRESS_WHITELIST=true"
>
>
> Please help me to understand where can I do this?
>
> Thanks in advance.
>
>
>
> Best wishes,
> Andrey Gaizler !
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPfivLBHof_e-_3kXxx%3D_qFdB1h1G70RK_sQ%2Bawki5%3D1P3Cryw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgrading to Jenkins 2.2 Breaks Build Flow Plugin DSL Editing

2016-05-26 Thread AJ Ferrigno
Thanks for the info.

I have found a workaround for now - I just moved the DSL out from the
Jenkins job itself and into a source controlled file, which is arguably
where it should have been from the beginning.

In the course of making this change, I have discovered another strangeness
regarding this plugin - the DSL textbox actually does not disappear when
the checkbox "Flow run needs a workspace" is checked. I guess that could be
another workaround, but it is not clear to me how both things could be
true. It seems mutually exclusive for one to define flow DSL from a
workspace file and also from an in-job DSL textbox. I might have to
investigate what would happen if both things were used.

I did try investigating via Chrome developer tools what would cause the
textbox to disappear, and it seems like it is due to the table's TR element
(with class "config-table-top-row") getting added an additional style of
"style=display: none" as soon as I scroll down far enough, as soon as the
flow dsl text box shows a few lines. This dom change would obviously cause
it to disappear. I don't really see what could cause that to happen, there
are no network changes happening as I scroll down that I can see, but there
are a bunch of "Process DOM-Change event"s happening. I guess one of them
could be causing the problem, but they still happen after it disappears, so
I'm not sure how to debug further.

I'll have to keep looking into this before I feel comfortable taking this
one on as a maintainer! But I'll let you know if I can.

On Wed, May 25, 2016 at 5:04 PM, Baptiste Mathus  wrote:

> Indeed, this plugin is up for adoption now that Damien stepped down.
>
> But, as says Nicolas who created it, this plugin is unlikely to have a lot
> of traction and any real future [1] so you're likely to have to dig into
> the issue yourself.
> But you're very welcome to step over as a maintainer AJ. Just tell us and
> we can grant you the required permissions if you wish to fix and release it.
>
> [1] not forgetting the merit of Nicolas and this plugin, which was
> actually one of the inspirations for the Pipeline plugin.
>
> 2016-05-24 16:52 GMT+02:00 nicolas de loof :
>
>> Pipeline is not perfect but definitively is more mature than build-flow
>> has ever been (*)
>>
>> (*) I'm build-flow initial author, and gave up for major technical
>> limitations
>>
>> 2016-05-24 16:48 GMT+02:00 Stefan Thomasson :
>>
>>> It is said that jenkins 2.x should be backwards compatible so I not
>>> really sure why buildflow break the gui. For me it only dissapear when
>>> navigating using the tab, so scrolling usually works.
>>> Right now I do not consider pipeline mature enough for use in production
>>> but you may be of other opinion.
>>>
>>>
>>> 24 maj 2016 kl. 16:09 skrev AJ Ferrigno :
>>>
>>> Hello,
>>>
>>> We have been using the Build Flow plugin for about a year now. We have a
>>> large block of DSL which we mostly needed for parallel execution.
>>>
>>> I have just tried upgrading to Jenkins 2.2, and I am now unable to edit
>>> the DSL in our existing Build Flow job. I open the job, click
>>> configuration, scroll down to where the DSL would be, and the entire DSL
>>> just disappears from view. The only way I can edit the DSL is to navigate
>>> to the config.xml file on the master, change it there, and then reload
>>> configuration from disk. Obviously, this is an inconvenience.
>>>
>>> I have tried making a brand new (blank) Build Flow job and the same
>>> issue happens. Once I paste in my DSL, save it, then return to the
>>> configuration and scroll down, the DSL box disappears.
>>>
>>> Upgrading to Jenkins 2.6 does not fix the issue (in fact, it breaks
>>> other things sadly). Upgrading all my plugins does not fix the issue.
>>>
>>> It looks like this plugin is deprecated in favor of Pipelines and may no
>>> longer be supported. I will need to investigate Pipelines to see how to
>>> move away from our DSL. However, there was a change this month to link it
>>> to Pipelines. Is it possible to get this problem fixed as well? I even
>>> volunteer myself to fixing it, although I am not a Jenkins developer and
>>> wouldn't know where to start debugging this thing. I'm hoping someone else
>>> would understand why something would disappear from the page as a result of
>>> the 2.2 upgrade. Maybe after having it explained, I can make the hopefully
>>> small code change to get it fixed.
>>>
>>> Thanks in advance,
>>> A

Re: Upgrading to Jenkins 2.2 Breaks Build Flow Plugin DSL Editing

2016-05-25 Thread Baptiste Mathus
Indeed, this plugin is up for adoption now that Damien stepped down.

But, as says Nicolas who created it, this plugin is unlikely to have a lot
of traction and any real future [1] so you're likely to have to dig into
the issue yourself.
But you're very welcome to step over as a maintainer AJ. Just tell us and
we can grant you the required permissions if you wish to fix and release it.

[1] not forgetting the merit of Nicolas and this plugin, which was actually
one of the inspirations for the Pipeline plugin.

2016-05-24 16:52 GMT+02:00 nicolas de loof :

> Pipeline is not perfect but definitively is more mature than build-flow
> has ever been (*)
>
> (*) I'm build-flow initial author, and gave up for major technical
> limitations
>
> 2016-05-24 16:48 GMT+02:00 Stefan Thomasson :
>
>> It is said that jenkins 2.x should be backwards compatible so I not
>> really sure why buildflow break the gui. For me it only dissapear when
>> navigating using the tab, so scrolling usually works.
>> Right now I do not consider pipeline mature enough for use in production
>> but you may be of other opinion.
>>
>>
>> 24 maj 2016 kl. 16:09 skrev AJ Ferrigno :
>>
>> Hello,
>>
>> We have been using the Build Flow plugin for about a year now. We have a
>> large block of DSL which we mostly needed for parallel execution.
>>
>> I have just tried upgrading to Jenkins 2.2, and I am now unable to edit
>> the DSL in our existing Build Flow job. I open the job, click
>> configuration, scroll down to where the DSL would be, and the entire DSL
>> just disappears from view. The only way I can edit the DSL is to navigate
>> to the config.xml file on the master, change it there, and then reload
>> configuration from disk. Obviously, this is an inconvenience.
>>
>> I have tried making a brand new (blank) Build Flow job and the same issue
>> happens. Once I paste in my DSL, save it, then return to the configuration
>> and scroll down, the DSL box disappears.
>>
>> Upgrading to Jenkins 2.6 does not fix the issue (in fact, it breaks other
>> things sadly). Upgrading all my plugins does not fix the issue.
>>
>> It looks like this plugin is deprecated in favor of Pipelines and may no
>> longer be supported. I will need to investigate Pipelines to see how to
>> move away from our DSL. However, there was a change this month to link it
>> to Pipelines. Is it possible to get this problem fixed as well? I even
>> volunteer myself to fixing it, although I am not a Jenkins developer and
>> wouldn't know where to start debugging this thing. I'm hoping someone else
>> would understand why something would disappear from the page as a result of
>> the 2.2 upgrade. Maybe after having it explained, I can make the hopefully
>> small code change to get it fixed.
>>
>> Thanks in advance,
>> AJ
>>
>> --
>> 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 on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/9c600c2b-9a10-4f1b-87ed-bf6a8bf90dd6%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/9c600c2b-9a10-4f1b-87ed-bf6a8bf90dd6%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> 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 on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/E7D7FABA-27AA-4C7F-B93C-735C4F293241%40gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/E7D7FABA-27AA-4C7F-B93C-735C4F293241%40gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzm-VDKN6nrEyujmC53YezQCjRYY%2BcKazR%2Be3fzEkP5%3DHA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsc

Re: Upgrading to Jenkins 2.2 Breaks Build Flow Plugin DSL Editing

2016-05-24 Thread nicolas de loof
Pipeline is not perfect but definitively is more mature than build-flow has
ever been (*)

(*) I'm build-flow initial author, and gave up for major technical
limitations

2016-05-24 16:48 GMT+02:00 Stefan Thomasson :

> It is said that jenkins 2.x should be backwards compatible so I not really
> sure why buildflow break the gui. For me it only dissapear when navigating
> using the tab, so scrolling usually works.
> Right now I do not consider pipeline mature enough for use in production
> but you may be of other opinion.
>
>
> 24 maj 2016 kl. 16:09 skrev AJ Ferrigno :
>
> Hello,
>
> We have been using the Build Flow plugin for about a year now. We have a
> large block of DSL which we mostly needed for parallel execution.
>
> I have just tried upgrading to Jenkins 2.2, and I am now unable to edit
> the DSL in our existing Build Flow job. I open the job, click
> configuration, scroll down to where the DSL would be, and the entire DSL
> just disappears from view. The only way I can edit the DSL is to navigate
> to the config.xml file on the master, change it there, and then reload
> configuration from disk. Obviously, this is an inconvenience.
>
> I have tried making a brand new (blank) Build Flow job and the same issue
> happens. Once I paste in my DSL, save it, then return to the configuration
> and scroll down, the DSL box disappears.
>
> Upgrading to Jenkins 2.6 does not fix the issue (in fact, it breaks other
> things sadly). Upgrading all my plugins does not fix the issue.
>
> It looks like this plugin is deprecated in favor of Pipelines and may no
> longer be supported. I will need to investigate Pipelines to see how to
> move away from our DSL. However, there was a change this month to link it
> to Pipelines. Is it possible to get this problem fixed as well? I even
> volunteer myself to fixing it, although I am not a Jenkins developer and
> wouldn't know where to start debugging this thing. I'm hoping someone else
> would understand why something would disappear from the page as a result of
> the 2.2 upgrade. Maybe after having it explained, I can make the hopefully
> small code change to get it fixed.
>
> Thanks in advance,
> AJ
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/9c600c2b-9a10-4f1b-87ed-bf6a8bf90dd6%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/9c600c2b-9a10-4f1b-87ed-bf6a8bf90dd6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/E7D7FABA-27AA-4C7F-B93C-735C4F293241%40gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/E7D7FABA-27AA-4C7F-B93C-735C4F293241%40gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzm-VDKN6nrEyujmC53YezQCjRYY%2BcKazR%2Be3fzEkP5%3DHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgrading to Jenkins 2.2 Breaks Build Flow Plugin DSL Editing

2016-05-24 Thread Stefan Thomasson
It is said that jenkins 2.x should be backwards compatible so I not really sure 
why buildflow break the gui. For me it only dissapear when navigating using the 
tab, so scrolling usually works.
Right now I do not consider pipeline mature enough for use in production but 
you may be of other opinion.


> 24 maj 2016 kl. 16:09 skrev AJ Ferrigno :
> 
> Hello,
> 
> We have been using the Build Flow plugin for about a year now. We have a 
> large block of DSL which we mostly needed for parallel execution.
> 
> I have just tried upgrading to Jenkins 2.2, and I am now unable to edit the 
> DSL in our existing Build Flow job. I open the job, click configuration, 
> scroll down to where the DSL would be, and the entire DSL just disappears 
> from view. The only way I can edit the DSL is to navigate to the config.xml 
> file on the master, change it there, and then reload configuration from disk. 
> Obviously, this is an inconvenience.
> 
> I have tried making a brand new (blank) Build Flow job and the same issue 
> happens. Once I paste in my DSL, save it, then return to the configuration 
> and scroll down, the DSL box disappears.
> 
> Upgrading to Jenkins 2.6 does not fix the issue (in fact, it breaks other 
> things sadly). Upgrading all my plugins does not fix the issue.
> 
> It looks like this plugin is deprecated in favor of Pipelines and may no 
> longer be supported. I will need to investigate Pipelines to see how to move 
> away from our DSL. However, there was a change this month to link it to 
> Pipelines. Is it possible to get this problem fixed as well? I even volunteer 
> myself to fixing it, although I am not a Jenkins developer and wouldn't know 
> where to start debugging this thing. I'm hoping someone else would understand 
> why something would disappear from the page as a result of the 2.2 upgrade. 
> Maybe after having it explained, I can make the hopefully small code change 
> to get it fixed.
> 
> Thanks in advance,
> AJ
> -- 
> 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 on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/9c600c2b-9a10-4f1b-87ed-bf6a8bf90dd6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/E7D7FABA-27AA-4C7F-B93C-735C4F293241%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Upgrading to Jenkins 2.2 Breaks Build Flow Plugin DSL Editing

2016-05-24 Thread AJ Ferrigno
Hello,

We have been using the Build Flow plugin for about a year now. We have a 
large block of DSL which we mostly needed for parallel execution.

I have just tried upgrading to Jenkins 2.2, and I am now unable to edit the 
DSL in our existing Build Flow job. I open the job, click configuration, 
scroll down to where the DSL would be, and the entire DSL just disappears 
from view. The only way I can edit the DSL is to navigate to the config.xml 
file on the master, change it there, and then reload configuration from 
disk. Obviously, this is an inconvenience.

I have tried making a brand new (blank) Build Flow job and the same issue 
happens. Once I paste in my DSL, save it, then return to the configuration 
and scroll down, the DSL box disappears.

Upgrading to Jenkins 2.6 does not fix the issue (in fact, it breaks other 
things sadly). Upgrading all my plugins does not fix the issue.

It looks like this plugin is deprecated in favor of Pipelines and may no 
longer be supported. I will need to investigate Pipelines to see how to 
move away from our DSL. However, there was a change this month to link it 
to Pipelines. Is it possible to get this problem fixed as well? I even 
volunteer myself to fixing it, although I am not a Jenkins developer and 
wouldn't know where to start debugging this thing. I'm hoping someone else 
would understand why something would disappear from the page as a result of 
the 2.2 upgrade. Maybe after having it explained, I can make the hopefully 
small code change to get it fixed.

Thanks in advance,
AJ

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9c600c2b-9a10-4f1b-87ed-bf6a8bf90dd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Parallel from build flow plugin never ends

2016-05-05 Thread alexmkv

>
> Check if your builds are merged with already queued builds

Can you explain, how this can be checked?

identical parameters could cause this.

All jobs for now must have different params set. There are three 
parameters, but their combination is unique in parent job. Parent jobs 
executed sequentially.
 

On Thursday, May 5, 2016 at 8:09:33 PM UTC+3, stefan thomasson wrote:
>
> Hi,
> Check if your builds are merged with already queued builds, identical 
> parameters could cause this.
>
>
> 4 maj 2016 kl. 09:28 skrev alexmkv >:
>
> We have one job that executes several other using build flow jenkins 
> plugin.
>
> Main points of used flow DSL:
>
> def parallelJobs = [];
> jobParams.each { 
>   ...
>   parallelJobs.add({
> res = build(jobName
>   , PARAM_NAME: param_value
>   ... another_params ...
>  )
>})
> }
> parallel(parallelJobs)
>
> In log of this job I can see schedule and start of all added jobs, but not 
> completion of them (most of them completed, but some just lost). If I check 
> individual logs for not completed jobs they are really finished, but parent 
> job doesn't see this, parallel never ends and everythings hangs forever.
>
> For long time this job worked fine, but for now it hangs for every build. 
> (There was several changes but for now it's difficult to find reason).
>
> -- 
> 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-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/38004bc1-54d3-41f4-96bb-49e8386b88b0%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e7677755-f547-4b18-b648-4ac5d9b526b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Parallel from build flow plugin never ends

2016-05-05 Thread Stefan Thomasson
Hi,
Check if your builds are merged with already queued builds, identical 
parameters could cause this.


> 4 maj 2016 kl. 09:28 skrev alexmkv :
> 
> We have one job that executes several other using build flow jenkins plugin.
> 
> Main points of used flow DSL:
> 
> def parallelJobs = [];
> jobParams.each { 
>   ...
>   parallelJobs.add({
> res = build(jobName
>   , PARAM_NAME: param_value
>   ... another_params ...
>  )
>})
> }
> parallel(parallelJobs)
> In log of this job I can see schedule and start of all added jobs, but not 
> completion of them (most of them completed, but some just lost). If I check 
> individual logs for not completed jobs they are really finished, but parent 
> job doesn't see this, parallel never ends and everythings hangs forever.
> 
> For long time this job worked fine, but for now it hangs for every build. 
> (There was several changes but for now it's difficult to find reason).
> 
> -- 
> 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 on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/38004bc1-54d3-41f4-96bb-49e8386b88b0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/C508BA7D-8074-41E1-A287-F8DD1FFFD0AB%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Parallel from build flow plugin never ends

2016-05-04 Thread alexmkv


We have one job that executes several other using build flow jenkins plugin.

Main points of used flow DSL:

def parallelJobs = [];
jobParams.each { 
  ...
  parallelJobs.add({
res = build(jobName
  , PARAM_NAME: param_value
  ... another_params ...
 )
   })
}
parallel(parallelJobs)

In log of this job I can see schedule and start of all added jobs, but not 
completion of them (most of them completed, but some just lost). If I check 
individual logs for not completed jobs they are really finished, but parent 
job doesn't see this, parallel never ends and everythings hangs forever.

For long time this job worked fine, but for now it hangs for every build. 
(There was several changes but for now it's difficult to find reason).

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/38004bc1-54d3-41f4-96bb-49e8386b88b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow Plugin - Dynamic Job Invocation

2016-04-07 Thread Venkata Amirineni
did you figure out a solution?

On Wednesday, April 22, 2015 at 11:08:22 AM UTC-4, Zile Rehman wrote:
>
> I am trying to use the Build Flow Plugin (
> https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin) to 
> dynamically define a parallel build job.
>
> In my main script, I am dynamically defining a playCompBuilderList. Then I 
> iterate through through the list and trigger the build for each item, as 
> shown below.. My question is, how do I wrap it up in parallel statement to 
> trigger the builds in parallel?
>
>
> playCompBuilderList.each {
> it.each {
> comp, map -> build('play_comp_builder',
> COMP: map['comp'],
> COMP_TAG: map['comp_tag'],
> CORUS_TAG   : map['corus_tag'],
> DRAGONBALL_TAG  : map['dragonball_tag'],
> PLAY_VERSION: map['play_version'])
> }
> }
>
> This is a sample playCompBuilderList ==> [
> {
> "athena": {
> "comp": "athena",
> "comp_tag": "develop",
> "corus_tag": "develop",
> "dragonball_tag": "master",
> "play_version": "2.3.6"
> }
> },
> {
> "atlas": {
> "comp": "atlas",
> "comp_tag": "develop",
> "corus_tag": "develop",
> "dragonball_tag": "master",
> "play_version": "2.3.6"
> }
> }
> ]
>
>
>
>
> I tried something like this but didn’t work:
>
> *parallel (*
>   playCompBuilderList.each {
> it.each {
> comp, map -> build('play_comp_builder',
> COMP: map['comp'],
> COMP_TAG: map['comp_tag'],
> CORUS_TAG   : map['corus_tag'],
> DRAGONBALL_TAG  : map['dragonball_tag'],
> PLAY_VERSION: map['play_version'])
> }
>   }
> *)*
>
> Please help! Thanks.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9723d47c-aa78-4042-bb64-74c88854aa35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow Plugin with Node Label Parameter Plugin

2016-02-19 Thread Nooram Chawla
Hi,

I tried passing the Build Node in the DSL and it is not working.

My Node parameter name is set to "Build_Here". 

and in DSL i am passing it as 

build("Job1",BUILD_NODE:"Build_Here")
parallel({ build("Job2",BUILD_NODE:"Build_Here") },{ 
build("JOb3",BUILD_NODE:"Build_Here") },{ 
build("JOb4",BUILD_NODE:"Build_Here") })


This is not working. The JOb 1 starts at other Node that is available.

Also, I also need to pass the SVN URL as a parameter to Job 1.

Any help will be appreciated

-Nooram.

On Tuesday, March 3, 2015 at 9:10:40 PM UTC+5:30, Katie Outram wrote:
>
> Has anyone had success using the Build Flow Plugin with the Node Label 
> Parameter Plugin?
>  
> Right now I have a build flow that executes some of the steps on Machine A 
> and other steps on Machine B, eventhough I am passing the NODE_NAME and 
> NODE_LABELS to the children jobs via an Environment Variable file.
>  
> If you have done this, do you have any suggestions on how to make certain 
> all of the builds that are part of the flow operate on either Machine A or 
> Machine B and not both?
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bbb75410-42c1-4415-8c74-70c35e521d0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build-flow plugin - fetching script from SVN/Git

2016-02-11 Thread nicolas de loof
You should look at Pipeline plugin, which do support storing build DSL
definition in project SCM (as so called "Jenkinsfile")
DSL syntax is not the same as build-flow, but comparable so as you just
started using it migrating will not be such an issue.

2016-02-11 14:48 GMT+01:00 Tomasz Szandała :

> Greetings,
> I have just started using DSL in my Jenkins.
> I have encountered a problem: how to keep DSL scripts under version
> control?
> I have:
>
> BUt the console log says:
>
> [EnvInject] - Loading node environment variables.
> [EnvInject] - Preparing an environment for the build.
> [EnvInject] - Keeping Jenkins system variables.
> [EnvInject] - Keeping Jenkins build variables.
> [EnvInject] - Executing and processing the following script content:
> svn export --force ${SVN_CREDENTIALS} 
> https://path.to.my.repo/szandala/factory_test 
> 
>  .
> echo "My workspace: ${WORKSPACE}"
> pwd
> [jenkins] $ /bin/sh -xe /var/tmp/hudson192879847093505.sh
> A.
> Afactory.dsl
> Exported revision 2450.
> + echo 'My workspace: '
> My workspace:
> + pwd
> /var/jenkins
> [EnvInject] - Script executed successfully.
> [EnvInject] - Injecting contributions.
> Building on master in workspace 
> /var/jenkins/jobs/szandala.factory_test/workspace
> [build-flow] reading DSL from file 'factory.dsl'
> FATAL: /var/jenkins/jobs/szandala.factory_test/workspace/factory.dsl (No such 
> file or directory)java.io.FileNotFoundException 
> :
>  /var/jenkins/jobs/szandala.factory_test/workspace/factory.dsl (No such file 
> or directory)
>   at java.io.FileInputStream.open(Native Method)
>   at java.io.FileInputStream.(FileInputStream.java:146)
>   at hudson.FilePath.read(FilePath.java:1752)
>   at hudson.FilePath.readToString(FilePath.java:1853)
>   at 
> com.cloudbees.plugins.flow.FlowRun$BuildWithWorkspaceRunnerImpl.doRun(FlowRun.java:177)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
>   at hudson.model.Run.execute(Run.java:1741)
>   at hudson.model.Run.run(Run.java:1679)
>   at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:153)
>   at hudson.model.ResourceController.execute(ResourceController.java:98)
>   at hudson.model.Executor.run(Executor.java:408)
> Finished: FAILURE
>
>
> How can I export DSL script from Git / SVN?
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/95c0553e-f447-4286-856d-c83ccb191205%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANMVJz%3DyxEF%2Bs9AUhOmhBT53bqi%2BvKRHNFH5M1C5qJrfv9%2BpLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Build-flow plugin - fetching script from SVN/Git

2016-02-11 Thread Tomasz Szandała
Greetings,
I have just started using DSL in my Jenkins.
I have encountered a problem: how to keep DSL scripts under version control?
I have:

BUt the console log says:

[EnvInject] - Loading node environment variables.
[EnvInject] - Preparing an environment for the build.
[EnvInject] - Keeping Jenkins system variables.
[EnvInject] - Keeping Jenkins build variables.
[EnvInject] - Executing and processing the following script content: 
svn export --force ${SVN_CREDENTIALS} 
https://path.to.my.repo/szandala/factory_test 

 .
echo "My workspace: ${WORKSPACE}"
pwd
[jenkins] $ /bin/sh -xe /var/tmp/hudson192879847093505.sh
A.
Afactory.dsl
Exported revision 2450.
+ echo 'My workspace: '
My workspace: 
+ pwd
/var/jenkins
[EnvInject] - Script executed successfully.
[EnvInject] - Injecting contributions.
Building on master in workspace 
/var/jenkins/jobs/szandala.factory_test/workspace
[build-flow] reading DSL from file 'factory.dsl'
FATAL: /var/jenkins/jobs/szandala.factory_test/workspace/factory.dsl (No such 
file or directory)java.io.FileNotFoundException 
: 
/var/jenkins/jobs/szandala.factory_test/workspace/factory.dsl (No such file or 
directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:146)
at hudson.FilePath.read(FilePath.java:1752)
at hudson.FilePath.readToString(FilePath.java:1853)
at 
com.cloudbees.plugins.flow.FlowRun$BuildWithWorkspaceRunnerImpl.doRun(FlowRun.java:177)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.Run.run(Run.java:1679)
at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:153)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)
Finished: FAILURE


How can I export DSL script from Git / SVN?

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/95c0553e-f447-4286-856d-c83ccb191205%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Build Flow Plugin: How to get possible parameter values from Job

2016-02-04 Thread Elias Kirchgässner
I' ve got a job which deploys the software to different customers. CUSTOMER 
 has e.g 4 options C1, C2, C3

Now I want to trigger a build for each of them with build flow plugin.

Pseudo code:
def customers=job("Deploy").getParameter(1).getOptions()
foreach(customer in customers){
build("Deploy", param1:customer)
}


Is it possible to get the possible options of a parameter from a job?

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d98c33cc-2d9b-4ce4-82a2-6b7fe3a61728%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error during release:prepare (using Build Flow plugin)

2015-10-14 Thread Scott Klein
I am just attempting to do a release:prepare with a development version set via 
a Jenkins Parameter

I have a job for the project (which for now is just our master pom) - that 
takes 3 jenkins parameters

1.   GOALS - maven goals to run

2.   PROFILES - maven profiles to use

3.   SVN_LOC - relative location in SVN (eg, "trunk" or "branches/Branch-A")

a.   This is used in our SVN URL so we can use the same job against various 
branches or the trunk

When I call this job directly with:

· GOALS = "-DdevelopmentVersion=1.1.0-SNAPSHOT release:prepare"

· PROFILES = (blank)

· SVN_LOC = "trunk"

It works just fine, as expected

However, I want to trigger this job from a Build Flow where I just have to 
specify the "developmentVersion" value.

My Build Flow script is pretty simple:

def GOALS = "-DdevelopmentVersion=" + params["developmentVersion"] + " 
release:prepare"
def PROFILES = ""
def SVN_LOC = "trunk"

build("Master POM (no clean)", GOALS: GOALS, PROFILES: PROFILES, SVN_LOC: 
SVN_LOC)

so that should be exactly the same as my direct job build, however I get a 
build error down in the project job due to the project being "banned" from the 
build. I have gone back and altered the maven goals so that both jobs run 
successfully multiple times in a row (basically just a "clean"). Yet this error 
continue to occur. I get nothing like this when I call the project job directly 
- even after this error occurs. I have ensured I don't have the tag in SVN and 
the POM version has been reverted, done release:rollback and clean's, etc, etc 
(even wiping out the whole Jenkins workspace doesn't help). My only guess is 
that Build Flow has something to do with this?



Started by upstream project "Trigger HEAD (Master POM - 
release-prepare)"
 build number 
20
 <-- This is the trigger job

originally caused by:

 Started by user Anonymous

Building in workspace /home/tomcat/.jenkins/workspace/Master POM (no clean) <-- 
This is the project job

Updating https://svn.com/XXX/trunk/master-pom at revision 
'2015-10-14T16:51:39.157 -0700'

At revision 30043

Parsing POMs

Established TCP socket on 57401

[Master POM (no clean)] $ 
/home/tomcat/.jenkins/tools/hudson.model.JDK/JDK_1.8/bin/java 
-Dmaven.test.skip=true -cp 
/home/tomcat/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven32-agent-1.7.jar:/home/tomcat/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.3.3/boot/plexus-classworlds-2.5.2.jar:/home/tomcat/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.3.3/conf/logging
 jenkins.maven3.agent.Maven32Main 
/home/tomcat/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.3.3 
/usr/share/apache-tomcat-7.0.29/webapps/jenkins/WEB-INF/lib/remoting-2.52.jar 
/home/tomcat/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven32-interceptor-1.7.jar
 
/home/tomcat/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.7.jar
 57401

<===[JENKINS REMOTING CAPACITY]===>channel started

Executing Maven:  -B -f /home/tomcat/.jenkins/workspace/Master POM (no 
clean)/pom.xml -DdevelopmentVersion=1.1.0-SNAPSHOT release:prepare

[INFO] Scanning for projects...

[INFO]

[INFO] 

[INFO] Building Master POM 1.0.0-SNAPSHOT

[INFO] 

Notifying upstream projects of job completion

Join notifier requires a CauseAction

[INFO]

[INFO] 

[INFO] Skipping Master POM

[INFO] This project has been banned from the build due to previous failures.

[INFO] 

[INFO] 

[INFO] BUILD FAILURE

[INFO] 

[INFO] Total time: 1.296 s

[INFO] Finished at: 2015-10-14T16:51:47-07:00

[INFO] Final Memory: 16M/107M

[INFO] 

[ERROR] Unknown lifecycle phase "-DdevelopmentVersion=1.1.0-SNAPSHOT". You must 
specify a valid lifecycle phase or a goal in the format : 
or :[:]:. Available 
lifecycle phases are: validate, initialize, generate-sources, process-sources, 
generate-resources, process-resources, compile, process-classes, 
generate-test-sources, process-test-sources, generate-test-resources, 
process-test-resources, test-compile, process-test-classes, test, 
prepare-package, package, pre-integration-test, integration-test, 
post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, 
pre-site, site, post-site, site-deploy. -> [Help 1]

[ERROR]

[ERROR] To see the full stack tr

Re: Generating parallel flow with Build Flow Plugin

2015-09-17 Thread Jay Neese
Just to follow up, I found a solution.  The code looks like this:

version = "4.1.0"
println "Deploying version " + version
def jobsList =  ["test1,test2"] - list of jobs, but first element has all 
jobs
def jobNamesString= jobsList.get(0) // Get the comma delimited string of 
job names
def jobs= jobNamesString.split(',') // Creates an array of jobNames that 
can be iterated
// construct and collect closures for LATER execution
buildClosures = []
for (int i = 0; i < jobs.size(); i++) {
   def jobName = jobs[i]
   def curClosure = {
build(jobName,Version:version)
}
buildClosures.add(curClosure)
}


// execute the closures in buildClosures in parallel
parallel(buildClosures)

*And here is the Console output:*

Deploying version 4.1.0
parallel {
Schedule job test1
Schedule job test2
Build test1 #12 started
Build test2 #10 started
test1 #12 completed 
test2 #10 completed 
}
Finished: SUCCESS

This post was a big help:  
http://jenkins-ci.361315.n4.nabble.com/BUILD-FLOW-parallel-closure-simple-example-td4699743.html

On Wednesday, September 16, 2015 at 10:34:26 PM UTC-5, Jay Neese wrote:
>
> I am using a similar configuration as OP, except that multiple *different* 
> jobs must be ran in parallel.  I have two separate build jobs (test1 and 
> test2)  that are being fed into the parallel function and rather than 
> running jobs test1 and test2, it is running test2 twice.  In my case the 
> jobs will be different, but the parameter (version) that is passed to the 
> jobs will not change. 
>
> *Here is the code:*
>
> version = "4.1.0" 
> println "Deploying version " + version 
> def components =  ["test1,test2"] 
> println components 
> def component = components.get(0) 
> println component 
> def values = component.split(',') 
> def jobsInParallel = []; 
> for ( myComponent  in values ) { 
>   println myComponent 
>   def parallelJob = { 
> def jobParams = [:] 
> jobParams = myComponent 
> println jobParams 
> build (jobParams,Version:version) 
>   } 
>   jobsInParallel.add(parallelJob) 
> } 
> parallel(jobsInParallel)
>
>
> *And here is the Console output:*
>
> Deploying version 4.1.0
> [test1,test2]
> test1,test2
> test1
> test2
> parallel {
> test2
> test2
> Schedule job test2
> Schedule job test2
> Build test2 #1 started
> Build test2 #1 started
> test2 #1 completed 
> test2 #1 completed 
> }
> Finished: SUCCESS
>
>
>
> Any ideas on why the test1 job isn't being included in the parallel build? 
>  Any help would be appreciated. 
>
> Thank You, 
>
> Jay
>
>
> On Monday, February 17, 2014 at 4:13:35 PM UTC-6, Stuart Rowe wrote:
>>
>> Hi Rodrigo, 
>>
>> BuildFlow's parallel function takes a list or map of closures - it will 
>> execute each in parallel. 
>>
>> For your situation, you should iterate over your list of servers, 
>> creating a 
>> closure for each and adding it to list. This list can the be passed as an 
>> argument to parallel(). 
>>
>> e.g. 
>>
>> // create a closure for the deploy job for each server 
>> def serverDeployJobs = [] 
>> for (server in servers) { 
>> def deployJob = { 
>> def jobParams = [:] 
>> // set up params for deploy job on current server here... 
>> 
>> // call build 
>> build(jobParams, DeployProjectName) 
>> } 
>> serverDeployJobs.add(deployJob) 
>> } 
>>
>> // schedule deploy jobs in parallel 
>> parallel(serverDeployJobs) 
>>
>> Hope that helps, 
>> Stuart 
>>
>>
>>
>> -- 
>> View this message in context: 
>> http://jenkins-ci.361315.n4.nabble.com/Generating-parallel-flow-with-Build-Flow-Plugin-tp4687604p4691098.html
>>  
>> Sent from the Jenkins users mailing list archive at Nabble.com. 
>>
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/704d414b-84ab-4b30-9fe6-bfc71fed5bab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Generating parallel flow with Build Flow Plugin

2015-09-16 Thread Jay Neese
I am using a similar configuration as OP, except that multiple *different* 
jobs must be ran in parallel.  I have two separate build jobs (test1 and 
test2)  that are being fed into the parallel function and rather than 
running jobs test1 and test2, it is running test2 twice.  In my case the 
jobs will be different, but the parameter (version) that is passed to the 
jobs will not change. 

*Here is the code:*

version = "4.1.0" 
println "Deploying version " + version 
def components =  ["test1,test2"] 
println components 
def component = components.get(0) 
println component 
def values = component.split(',') 
def jobsInParallel = []; 
for ( myComponent  in values ) { 
  println myComponent 
  def parallelJob = { 
def jobParams = [:] 
jobParams = myComponent 
println jobParams 
build (jobParams,Version:version) 
  } 
  jobsInParallel.add(parallelJob) 
} 
parallel(jobsInParallel)


*And here is the Console output:*

Deploying version 4.1.0
[test1,test2]
test1,test2
test1
test2
parallel {
test2
test2
Schedule job test2
Schedule job test2
Build test2 #1 started
Build test2 #1 started
test2 #1 completed 
test2 #1 completed 
}
Finished: SUCCESS



Any ideas on why the test1 job isn't being included in the parallel build? 
 Any help would be appreciated. 

Thank You, 

Jay


On Monday, February 17, 2014 at 4:13:35 PM UTC-6, Stuart Rowe wrote:
>
> Hi Rodrigo, 
>
> BuildFlow's parallel function takes a list or map of closures - it will 
> execute each in parallel. 
>
> For your situation, you should iterate over your list of servers, creating 
> a 
> closure for each and adding it to list. This list can the be passed as an 
> argument to parallel(). 
>
> e.g. 
>
> // create a closure for the deploy job for each server 
> def serverDeployJobs = [] 
> for (server in servers) { 
> def deployJob = { 
> def jobParams = [:] 
> // set up params for deploy job on current server here... 
> 
> // call build 
> build(jobParams, DeployProjectName) 
> } 
> serverDeployJobs.add(deployJob) 
> } 
>
> // schedule deploy jobs in parallel 
> parallel(serverDeployJobs) 
>
> Hope that helps, 
> Stuart 
>
>
>
> -- 
> View this message in context: 
> http://jenkins-ci.361315.n4.nabble.com/Generating-parallel-flow-with-Build-Flow-Plugin-tp4687604p4691098.html
>  
> Sent from the Jenkins users mailing list archive at Nabble.com. 
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/075f36ab-eb3e-4e1c-97b3-c724b5eb635b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Generating parallel flow with Build Flow Plugin

2015-09-16 Thread Jay Neese
I am using a similar configuration as OP, except that multiple *different* 
jobs must be ran in parallel.  I have two separate build jobs (test1 and 
test2)  that are being fed into the parallel function and rather 
than running 1 and 2, it is running the second job twice.  In my case the 
jobs will be different, but the parameter (version) passed to the jobs 
 will be the same for both jobs. 

*Here is the code:*

version = "4.1.0" 
println "Deploying version " + version 
def components =  ["test1,test2"] 
println components 
def component = components.get(0) 
println component 
def values = component.split(',') 
def jobsInParallel = []; 
for ( myComponent  in values ) { 
  println myComponent 
  def parallelJob = { 
def jobParams = [:] 
jobParams = myComponent 
println jobParams 
build (jobParams,Version:version) 
  } 
  jobsInParallel.add(parallelJob) 
} 
parallel(jobsInParallel) 



*And here is the Console output:*

Deploying version 4.1.0
[test1,test2]
test1,test2
test1
test2
parallel {
test2
test2
Schedule job test2 <http://10.176.112.25:8080/job/test2/>
Schedule job test2 <http://10.176.112.25:8080/job/test2/>
Build test2 #1 <http://10.176.112.25:8080/job/test2/1/> started
Build test2 #1 <http://10.176.112.25:8080/job/test2/1/> started
test2 #1 <http://10.176.112.25:8080/job/test2/1/> completed 
test2 #1 <http://10.176.112.25:8080/job/test2/1/> completed 
}
Finished: SUCCESS



Any ideas on why the test1 job isn't being included in the parallel build? 
 Any help would be appreciated. 

Thank You, 

Jay

On Monday, February 17, 2014 at 4:13:35 PM UTC-6, Stuart Rowe wrote:
>
> Hi Rodrigo, 
>
> BuildFlow's parallel function takes a list or map of closures - it will 
> execute each in parallel. 
>
> For your situation, you should iterate over your list of servers, creating 
> a 
> closure for each and adding it to list. This list can the be passed as an 
> argument to parallel(). 
>
> e.g. 
>
> // create a closure for the deploy job for each server 
> def serverDeployJobs = [] 
> for (server in servers) { 
> def deployJob = { 
> def jobParams = [:] 
> // set up params for deploy job on current server here... 
> 
> // call build 
> build(jobParams, DeployProjectName) 
> } 
> serverDeployJobs.add(deployJob) 
> } 
>
> // schedule deploy jobs in parallel 
> parallel(serverDeployJobs) 
>
> Hope that helps, 
> Stuart 
>
>
>
> -- 
> View this message in context: 
> http://jenkins-ci.361315.n4.nabble.com/Generating-parallel-flow-with-Build-Flow-Plugin-tp4687604p4691098.html
>  
> Sent from the Jenkins users mailing list archive at Nabble.com. 
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2e97f727-2ee5-4289-9104-1cc112b504c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [Build-flow plugin]

2015-09-08 Thread Ginga, Dick
Start your builds like this:

build2 = build( “job2”)

When that returns, you use the build2 variable to get at the log like this (you 
can use this call to get any number of lines)

var = build2.getLog()

you can use println just to print things to the console so:

println var

will put is in this jobs log.

I keep this link in my favorites. It tells all the functions you can call using 
the build2 object:

http://javadoc.jenkins-ci.org/index.html?hudson/model/AbstractBuild.html


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Cyril Gandon
Sent: Tuesday, September 08, 2015 4:19 AM
To: Jenkins Users
Subject: [Build-flow plugin]

Hi all,

I'm using the build flow 
plugin<https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin>

Let's say I have 3 jobs:

job1 says

  build( "job2")

And then, job2 says

  build( "job3")

I would like to see the output of each build in the "main" build job1.

In the ideal world, each console output should contains the output of their 
subbuilds.

job1 should contains information on job2 and job3
job2 should contains information on job3.

Is their a way to do that? I see that we have access to the variable out

You can also access some pre-defined variables in the DSL :
 - "out" the flow build console

But I have no idea how to use that variable to do what I need.

Thank you,

Cyril.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d85b87d8-c866-4124-80cc-a249662d932f%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/d85b87d8-c866-4124-80cc-a249662d932f%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E2D8667F6F%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.


[Build flow plugin] How to show output console of subbuild into the main build?

2015-09-08 Thread Cyril Gandon
Hi all,

I'm using the build flow plugin 
<https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin>

Let's say I have 3 jobs:

job1 says 

  build( "job2")

And then, job2 says

  build( "job3")

I would like to see the output of each build in the "main" build job1.

In the ideal world, each console output should contains the output of their 
subbuilds.

job1 should contains information on job2 and job3
job2 should contains information on job3.

Is their a way to do that? I see that we have access to the variable out

You can also access some pre-defined variables in the DSL : 
>  - "out" the flow build console


But I have no idea how to use that variable to do what I need.

Thank you,

Cyril.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a62076c8-f939-4734-84a9-9bcaf86866c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Build-flow plugin]

2015-09-08 Thread Cyril Gandon
Hi all,

I'm using the build flow plugin 
<https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin>

Let's say I have 3 jobs:

job1 says 

  build( "job2")

And then, job2 says

  build( "job3")

I would like to see the output of each build in the "main" build job1.

In the ideal world, each console output should contains the output of their 
subbuilds.

job1 should contains information on job2 and job3
job2 should contains information on job3.

Is their a way to do that? I see that we have access to the variable out

You can also access some pre-defined variables in the DSL : 
>  - "out" the flow build console


But I have no idea how to use that variable to do what I need.

Thank you,

Cyril.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d85b87d8-c866-4124-80cc-a249662d932f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow plugin -- hostnames of other parallel jobs?

2015-07-22 Thread Jovan Jevric
I'd give folowing a try:

Job execution should be bound on a node. Put matrix of hostnames/job into 
simple text file which is written in Workspace of Metajob(Main-Job). 
Pass path to this workspace via job parameter. You should be able to get this 
file via simple shell script though.


processed by David.fx 
Subject: Build Flow plugin -- hostnames of other parallel jobs? (07-Jul-2015 
15:03)
From:Adam Seering 
To:  j...@huber-online.com


Hi all, 
I have a Build Flow that launches a bunch of test jobs in parallel.  I'd 
like to have the jobs communicate over the network.  Is there a way for one of 
the jobs to get the list of hostnames of the machines where other jobs are 
running?  (Is there a tool other than Build Flow that is better for this type 
of scenario?)


Thanks,
Adam




-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4f3409f5-2f77-484c-9fff-ff0176dbfc2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DIIE.CA090075AB8B%40192.168.11.6.
For more options, visit https://groups.google.com/d/optout.


Re: Re: Re: Build Pipeline plugin and Build Flow plugin

2015-07-21 Thread nicolas de loof
yes, by intention, as the real world CD scenario I've considered aren't
static and can involve various steps depending on runtime context

start a new pipeline is just about re-trigger the initial step (which I
expect to be a git push)
re-run a build could make sense, but then you can just enable retry plugin
on the adequate jobs
manual steps aren't considered by build flow plugin (but fully supported by
workflow)


2015-07-21 17:02 GMT+02:00 Christoph Kutzinski :

> Am I right when saying the the buildgraphview-plugin is a king of 'after
> the fact' view of a pipeline run?
> *I.e. I can see the results of a pipeline afterwards, but I can not
> actively control a pipeline (lie in the Build Pipeline pluing):*
> *- starting a new pipeline run*
> *- re-running a build*
> *- triggering manul steps*
>
> *Gesendet:* Dienstag, 21. Juli 2015 um 14:45 Uhr
> *Von:* "nicolas de loof" 
> *An:* "jenkinsci-users@googlegroups.com"  >
> *Betreff:* Re: Re: Build Pipeline plugin and Build Flow plugin
>  build graph view do rely on upstreamCause so should handle most
> relations between builds
> and for the others (including build-flow) do offer an extension point to
> discover other relations
>
> 2015-07-21 16:44 GMT+02:00 Christoph Kutzinski :
>>
>>   Thanks!
>> I didn't know about
>> https://wiki.jenkins-ci.org/display/JENKINS/Build+Graph+View+Plugin
>>
>> Can I also define manual triggered steps in a setup of the Build-Flow
>> plugin and the build-graphview-plugin like you can do with the build
>> pipeline plugin?
>>
>> *Gesendet:* Dienstag, 21. Juli 2015 um 14:37 Uhr
>> *Von:* "nicolas de loof" 
>> *An:* "jenkinsci-users@googlegroups.com" <
>> jenkinsci-users@googlegroups.com>
>>
>> *Betreff:* Re: Build Pipeline plugin and Build Flow plugin
>>  build flow did introduce buildgraphview-plugin for this exact use case
>>
>>  build pipeline only can rendre static and mostly sequential pipelines
>>
>> 2015-07-21 16:19 GMT+02:00 Christoph Kutzinski :
>>>
>>>  Hi,
>>>
>>> I'm trying to set up a CD pipeline with Jenkins where I can
>>>
>>> I) concisely define the relationship (triggers) between the single
>>> pipeline steps (jobs)
>>> II) have a nice visualisation of the full pipeline
>>>
>>> The Build Flow plugin is a good fit for I, while the Build Pipeline
>>> plugin is a nice fit for II.
>>> However, the Build Pipeline plugin doesn't seem to understand the job
>>> dependencies defined via the Build Flow plugin.
>>>
>>> Does someone have experiences with similar setups? What is your solution
>>> for this?
>>>
>>>
>>> cheers
>>> Christoph
>>>
>>>
>>>
>>> --
>>> 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 on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41
>>> <https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> 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 on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmN%2BY7dUWkSh4cL4HnazzU%3DX2nQnoUhNQyXHKstpRDJmQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmN%2BY7dUWkSh4cL4HnazzU%3DX2nQnoUhNQyXHKstpRDJmQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> 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 on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/trinity-1f3325af-2b1

Aw: Re: Re: Build Pipeline plugin and Build Flow plugin

2015-07-21 Thread Christoph Kutzinski

Am I right when saying the the buildgraphview-plugin is a king of 'after the fact' view of a pipeline run?

I.e. I can see the results of a pipeline afterwards, but I can not actively control a pipeline (lie in the Build Pipeline pluing):

- starting a new pipeline run

- re-running a build

- triggering manul steps

 

Gesendet: Dienstag, 21. Juli 2015 um 14:45 Uhr
Von: "nicolas de loof" 
An: "jenkinsci-users@googlegroups.com" 
Betreff: Re: Re: Build Pipeline plugin and Build Flow plugin


build graph view do rely on upstreamCause so should handle most relations between builds
and for the others (including build-flow) do offer an extension point to discover other relations


 
2015-07-21 16:44 GMT+02:00 Christoph Kutzinski <ku...@gmx.de>:





Thanks!

I didn't know about https://wiki.jenkins-ci.org/display/JENKINS/Build+Graph+View+Plugin

 

Can I also define manual triggered steps in a setup of the Build-Flow plugin and the build-graphview-plugin like you can do with the build pipeline plugin?

 

Gesendet: Dienstag, 21. Juli 2015 um 14:37 Uhr
Von: "nicolas de loof" <nicolas.del...@gmail.com>
An: "jenkinsci-users@googlegroups.com" <jenkinsci-users@googlegroups.com>
Betreff: Re: Build Pipeline plugin and Build Flow plugin


build flow did introduce buildgraphview-plugin for this exact use case 

 
 

build pipeline only can rendre static and mostly sequential pipelines
 

 
2015-07-21 16:19 GMT+02:00 Christoph Kutzinski <ku...@gmx.de>: 




Hi,

 

I'm trying to set up a CD pipeline with Jenkins where I can

 

I) concisely define the relationship (triggers) between the single pipeline steps (jobs)

II) have a nice visualisation of the full pipeline

 

The Build Flow plugin is a good fit for I, while the Build Pipeline plugin is a nice fit for II.

However, the Build Pipeline plugin doesn't seem to understand the job dependencies defined via the Build Flow plugin.

 

Does someone have experiences with similar setups? What is your solution for this?

 

 

cheers

Christoph

 



 
--
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41.
For more options, visit https://groups.google.com/d/optout.



 
--
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmN%2BY7dUWkSh4cL4HnazzU%3DX2nQnoUhNQyXHKstpRDJmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.






 
--
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/trinity-1f3325af-2b1f-4711-80f9-8c1fa13f09ca-1437489871880%403capp-gmx-bs41.



For more options, visit https://groups.google.com/d/optout.





 
--
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzm6OBmC7pgunTgTjFX8qmdjAjQWxwaw-QHpsNbyoPRX4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.






-- 
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/trinity-6e98f37c-ab18-4f08-9ac4-6db9b3071625-1437490941266%403capp-gmx-bs41.
For more options, visit https://groups.google.com/d/optout.


Re: Re: Build Pipeline plugin and Build Flow plugin

2015-07-21 Thread nicolas de loof
build graph view do rely on upstreamCause so should handle most relations
between builds
and for the others (including build-flow) do offer an extension point to
discover other relations

2015-07-21 16:44 GMT+02:00 Christoph Kutzinski :

> Thanks!
> I didn't know about
> https://wiki.jenkins-ci.org/display/JENKINS/Build+Graph+View+Plugin
>
> Can I also define manual triggered steps in a setup of the Build-Flow
> plugin and the build-graphview-plugin like you can do with the build
> pipeline plugin?
>
> *Gesendet:* Dienstag, 21. Juli 2015 um 14:37 Uhr
> *Von:* "nicolas de loof" 
> *An:* "jenkinsci-users@googlegroups.com"  >
> *Betreff:* Re: Build Pipeline plugin and Build Flow plugin
>  build flow did introduce buildgraphview-plugin for this exact use case
>
> build pipeline only can rendre static and mostly sequential pipelines
>
> 2015-07-21 16:19 GMT+02:00 Christoph Kutzinski :
>>
>>  Hi,
>>
>> I'm trying to set up a CD pipeline with Jenkins where I can
>>
>> I) concisely define the relationship (triggers) between the single
>> pipeline steps (jobs)
>> II) have a nice visualisation of the full pipeline
>>
>> The Build Flow plugin is a good fit for I, while the Build Pipeline
>> plugin is a nice fit for II.
>> However, the Build Pipeline plugin doesn't seem to understand the job
>> dependencies defined via the Build Flow plugin.
>>
>> Does someone have experiences with similar setups? What is your solution
>> for this?
>>
>>
>> cheers
>> Christoph
>>
>>
>>
>> --
>> 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 on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41
>> <https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmN%2BY7dUWkSh4cL4HnazzU%3DX2nQnoUhNQyXHKstpRDJmQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmN%2BY7dUWkSh4cL4HnazzU%3DX2nQnoUhNQyXHKstpRDJmQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/trinity-1f3325af-2b1f-4711-80f9-8c1fa13f09ca-1437489871880%403capp-gmx-bs41
> <https://groups.google.com/d/msgid/jenkinsci-users/trinity-1f3325af-2b1f-4711-80f9-8c1fa13f09ca-1437489871880%403capp-gmx-bs41?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzm6OBmC7pgunTgTjFX8qmdjAjQWxwaw-QHpsNbyoPRX4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Aw: Re: Build Pipeline plugin and Build Flow plugin

2015-07-21 Thread Christoph Kutzinski

Thanks!

I didn't know about https://wiki.jenkins-ci.org/display/JENKINS/Build+Graph+View+Plugin

 

Can I also define manual triggered steps in a setup of the Build-Flow plugin and the build-graphview-plugin like you can do with the build pipeline plugin?

 

Gesendet: Dienstag, 21. Juli 2015 um 14:37 Uhr
Von: "nicolas de loof" 
An: "jenkinsci-users@googlegroups.com" 
Betreff: Re: Build Pipeline plugin and Build Flow plugin


build flow did introduce buildgraphview-plugin for this exact use case
 

build pipeline only can rendre static and mostly sequential pipelines


 
2015-07-21 16:19 GMT+02:00 Christoph Kutzinski <ku...@gmx.de>:




Hi,

 

I'm trying to set up a CD pipeline with Jenkins where I can

 

I) concisely define the relationship (triggers) between the single pipeline steps (jobs)

II) have a nice visualisation of the full pipeline

 

The Build Flow plugin is a good fit for I, while the Build Pipeline plugin is a nice fit for II.

However, the Build Pipeline plugin doesn't seem to understand the job dependencies defined via the Build Flow plugin.

 

Does someone have experiences with similar setups? What is your solution for this?

 

 

cheers

Christoph

 



 
--
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41.
For more options, visit https://groups.google.com/d/optout.



 
--
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmN%2BY7dUWkSh4cL4HnazzU%3DX2nQnoUhNQyXHKstpRDJmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.






-- 
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/trinity-1f3325af-2b1f-4711-80f9-8c1fa13f09ca-1437489871880%403capp-gmx-bs41.
For more options, visit https://groups.google.com/d/optout.


Re: Re: Build Pipeline plugin and Build Flow plugin

2015-07-21 Thread nicolas de loof
oh yes indeed, oss version only has a simplified step vizualisation

2015-07-21 16:42 GMT+02:00 Christoph Kutzinski :

> Yes,
> but it doesn't have any visualisation, either (unless I use Jenkins
> Enterprise), has it?
>
> *Gesendet:* Dienstag, 21. Juli 2015 um 14:37 Uhr
> *Von:* "nicolas de loof" 
> *An:* "jenkinsci-users@googlegroups.com"  >
> *Betreff:* Re: Build Pipeline plugin and Build Flow plugin
>  Did you considered using workflow plugin ?
>
> 2015-07-21 16:37 GMT+02:00 nicolas de loof :
>>
>> build flow did introduce buildgraphview-plugin for this exact use case
>>
>> build pipeline only can rendre static and mostly sequential pipelines
>>
>> 2015-07-21 16:19 GMT+02:00 Christoph Kutzinski :
>>>
>>>  Hi,
>>>
>>> I'm trying to set up a CD pipeline with Jenkins where I can
>>>
>>> I) concisely define the relationship (triggers) between the single
>>> pipeline steps (jobs)
>>> II) have a nice visualisation of the full pipeline
>>>
>>> The Build Flow plugin is a good fit for I, while the Build Pipeline
>>> plugin is a nice fit for II.
>>> However, the Build Pipeline plugin doesn't seem to understand the job
>>> dependencies defined via the Build Flow plugin.
>>>
>>> Does someone have experiences with similar setups? What is your solution
>>> for this?
>>>
>>>
>>> cheers
>>> Christoph
>>>
>>>
>>>
>>> --
>>> 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 on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41
>>> <https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>
>>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CANMVJz%3D%3DrnO8MxedwwrWBecgE%3Dz-vJVkAfgy%3DKZ04s8uqCBoAw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CANMVJz%3D%3DrnO8MxedwwrWBecgE%3Dz-vJVkAfgy%3DKZ04s8uqCBoAw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/trinity-66b6d313-9f9c-4a6f-a975-d2550388efd6-1437489730953%403capp-gmx-bs41
> <https://groups.google.com/d/msgid/jenkinsci-users/trinity-66b6d313-9f9c-4a6f-a975-d2550388efd6-1437489730953%403capp-gmx-bs41?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzneprg3%3De2QUPU%2Ba0aZtHU%3DzZQxnZKqU8Rojeig8qGsYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build Pipeline plugin and Build Flow plugin

2015-07-21 Thread nicolas de loof
build flow did introduce buildgraphview-plugin for this exact use case

build pipeline only can rendre static and mostly sequential pipelines

2015-07-21 16:19 GMT+02:00 Christoph Kutzinski :

> Hi,
>
> I'm trying to set up a CD pipeline with Jenkins where I can
>
> I) concisely define the relationship (triggers) between the single
> pipeline steps (jobs)
> II) have a nice visualisation of the full pipeline
>
> The Build Flow plugin is a good fit for I, while the Build Pipeline plugin
> is a nice fit for II.
> However, the Build Pipeline plugin doesn't seem to understand the job
> dependencies defined via the Build Flow plugin.
>
> Does someone have experiences with similar setups? What is your solution
> for this?
>
>
> cheers
> Christoph
>
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41
> <https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmN%2BY7dUWkSh4cL4HnazzU%3DX2nQnoUhNQyXHKstpRDJmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Aw: Re: Build Pipeline plugin and Build Flow plugin

2015-07-21 Thread Christoph Kutzinski

Yes,

but it doesn't have any visualisation, either (unless I use Jenkins Enterprise), has it?

 

Gesendet: Dienstag, 21. Juli 2015 um 14:37 Uhr
Von: "nicolas de loof" 
An: "jenkinsci-users@googlegroups.com" 
Betreff: Re: Build Pipeline plugin and Build Flow plugin


Did you considered using workflow plugin ?

 
2015-07-21 16:37 GMT+02:00 nicolas de loof <nicolas.del...@gmail.com>:


build flow did introduce buildgraphview-plugin for this exact use case
 

build pipeline only can rendre static and mostly sequential pipelines




 
2015-07-21 16:19 GMT+02:00 Christoph Kutzinski <ku...@gmx.de>:




Hi,

 

I'm trying to set up a CD pipeline with Jenkins where I can

 

I) concisely define the relationship (triggers) between the single pipeline steps (jobs)

II) have a nice visualisation of the full pipeline

 

The Build Flow plugin is a good fit for I, while the Build Pipeline plugin is a nice fit for II.

However, the Build Pipeline plugin doesn't seem to understand the job dependencies defined via the Build Flow plugin.

 

Does someone have experiences with similar setups? What is your solution for this?

 

 

cheers

Christoph

 



 
--
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41.
For more options, visit https://groups.google.com/d/optout.








 
--
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANMVJz%3D%3DrnO8MxedwwrWBecgE%3Dz-vJVkAfgy%3DKZ04s8uqCBoAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.






-- 
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/trinity-66b6d313-9f9c-4a6f-a975-d2550388efd6-1437489730953%403capp-gmx-bs41.
For more options, visit https://groups.google.com/d/optout.


Re: Build Pipeline plugin and Build Flow plugin

2015-07-21 Thread nicolas de loof
Did you considered using workflow plugin ?

2015-07-21 16:37 GMT+02:00 nicolas de loof :

> build flow did introduce buildgraphview-plugin for this exact use case
>
> build pipeline only can rendre static and mostly sequential pipelines
>
> 2015-07-21 16:19 GMT+02:00 Christoph Kutzinski :
>
>> Hi,
>>
>> I'm trying to set up a CD pipeline with Jenkins where I can
>>
>> I) concisely define the relationship (triggers) between the single
>> pipeline steps (jobs)
>> II) have a nice visualisation of the full pipeline
>>
>> The Build Flow plugin is a good fit for I, while the Build Pipeline
>> plugin is a nice fit for II.
>> However, the Build Pipeline plugin doesn't seem to understand the job
>> dependencies defined via the Build Flow plugin.
>>
>> Does someone have experiences with similar setups? What is your solution
>> for this?
>>
>>
>> cheers
>> Christoph
>>
>>
>> --
>> 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 on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41
>> <https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANMVJz%3D%3DrnO8MxedwwrWBecgE%3Dz-vJVkAfgy%3DKZ04s8uqCBoAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Build Pipeline plugin and Build Flow plugin

2015-07-21 Thread Christoph Kutzinski
Hi,

 

I'm trying to set up a CD pipeline with Jenkins where I can

 

I) concisely define the relationship (triggers) between the single pipeline steps (jobs)

II) have a nice visualisation of the full pipeline

 

The Build Flow plugin is a good fit for I, while the Build Pipeline plugin is a nice fit for II.

However, the Build Pipeline plugin doesn't seem to understand the job dependencies defined via the Build Flow plugin.

 

Does someone have experiences with similar setups? What is your solution for this?

 

 

cheers

Christoph

 



-- 
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 on the web visit https://groups.google.com/d/msgid/jenkinsci-users/trinity-a06e6a93-82f7-4ef9-b2a1-6f05cb05c735-1437488362066%403capp-gmx-bs41.
For more options, visit https://groups.google.com/d/optout.


Build flow plugin iterate builds for a job.

2015-07-17 Thread Jacek Tomaka
Hi, 
I have a few jenkins job that use promoted builds plugin. Each of jobs has a 
bunch of parameters. 

I promote builds on demand using "only when manually promoted". This is fine 
for single builds but usually i want to promote a set of builds (one per job) 
with matching parameter values. 

Now i would like to create a build flow job that would for jobs A,B,C iterate 
builds of A,B,C to see if the value is as required and if so, kick off the 
promotion process. 

Can this be done using build flow plugin? I mean, how do i iterate builds of a 
job by name?
I am thinking about something like: 

builds = job("A").getBuilds()

then iterating over the builds, getting parameters of each of them and if 
parameters match, save it's build number to execute promotion later.

How do i solve this?
Regards.
Jacek Tomaka

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/izebrtfajmzibxeqaync%40itcm.
For more options, visit https://groups.google.com/d/optout.


Build Flow plugin -- hostnames of other parallel jobs?

2015-07-07 Thread Adam Seering
Hi all,
I have a Build Flow that launches a bunch of test jobs in parallel. 
 I'd like to have the jobs communicate over the network.  Is there a way 
for one of the jobs to get the list of hostnames of the machines where 
other jobs are running?  (Is there a tool other than Build Flow that is 
better for this type of scenario?)

Thanks,
Adam


-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4f3409f5-2f77-484c-9fff-ff0176dbfc2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build flow plugin serialization

2015-06-24 Thread jan_lut
update:

Diving into stack trace has revealed the suspision that the line

myDSL.build.setDisplayName(params["PARAMETER"]) 

Caused the issue. The exact same syntax used in other jobs worked fine and
continued to work fine after the updates (or maybe just a coincidence?), but
for some reason refused to work in this particular job. It is worth being
mentioned that even job configs are relatively similar. Just out of pure
curiosity would be interesting what can cause this behavior. Anyone has got
an idea?

//Jan



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/Build-flow-plugin-serialization-tp4756393p4756402.html
Sent from the Jenkins users mailing list archive at Nabble.com.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1434723468894-4756402.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.


Build flow plugin serialization

2015-06-24 Thread jan_lut
Hi,

After upgrading  Build Flow Plugin
<https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin>   from 0.14
to 0.18 
and installing  Claim Plugin
<https://wiki.jenkins-ci.org/display/JENKINS/Claim+plugin>   I'm getting an
error when running fairly simple build flow dsl script:

import static hudson.model.Result.FAILURE
import static hudson.model.Result.SUCCESS

class test_trigger_arm_stub {

  def myDSL;

  def do_test_trigger(dsl, params) {
out.println "do_test_trigger started"
myDSL = dsl

myDSL.build.setDisplayName(params["PARAMETER"])

myDSL.retry 2, { myDSL.build("test",
  PARAMETER: params["PARAMETER"])}

out.println "do_test_trigger done"
  }
}


Any ideas what went wrong here? Downgrading the build flow plugin from 0.18
to 0.17 and then 0.14 didn't resolve the issue. Also, other dsl scripts seem
to execute just fine. Only this job fails. Jenkins core is 1580.3 and it
looks to be ok for these plugins.

ERROR: Failed to run DSL Script java.lang.RuntimeException: Failed to
serialize hudson.model.Actionable#actions for class
com.cloudbees.plugins.flow.FlowRun  at
hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:214)
 
at
hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:182)
 
at
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
 
at
hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:167)
 
at
hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:108)
 
at
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
 
at
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
 
at
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
 
at
com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) 
at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
 
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)  at
com.thoughtworks.xstream.XStream.marshal(XStream.java:1015) at
com.thoughtworks.xstream.XStream.toXML(XStream.java:988)at
hudson.XmlFile.write(XmlFile.java:178)  at
hudson.model.Run.save(Run.java:1915)at
hudson.model.Run.setDisplayName(Run.java:782)   at
hudson.model.Run$setDisplayName.call(Unknown Source)at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
 
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
 
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
 
at
test_trigger_arm_stub.do_test_trigger_arm_stub(test_trigger_yb_arm_stub.groovy:13)
 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
at java.lang.reflect.Method.invoke(Method.java:606) at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at
org.codehaus.groovy.runtime.metaclass.MixinInstanceMetaMethod.invoke(MixinInstanceMetaMethod.java:53)
 
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)   at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1079) at
groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1106)   at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903)  at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:723)  at
com.cloudbees.plugins.flow.FlowDelegate.invokeMethod(FlowDSL.groovy)at
hudson.util.spring.ClosureScript.invokeMethod(ClosureScript.java:83)at
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:72)
 
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
 
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
 
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
 
at Script1.run(Script1.groovy:3)at Script1$run.call(Unknown Source) 
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
 
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
 
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
 
at com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84) 
at
com.cloudbees.plugins.flow.FlowRun$FlyweightTaskRunnerImpl.run(FlowRun.java:219)
 
at hudson.model.Run.execute(Run.java:1745)  at
com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:155)at
hudson.model.ResourceController.execute(ResourceContr

[Build-Flow-Plugin] Parallel & Join operation

2015-06-11 Thread ramesh v r



Hello All,
 I am trying to use Jenkins build flow plugin to create below build chain.


<https://lh3.googleusercontent.com/-RiusPDtzJP8/VXlWpPCLBMI/ANA/3_G4K6MyLG0/s1600/Presentation1.png>


I have used below DSL to achieve up to build D. 
How to specify that Build E should start only after both Build D & Build C 
are completed?

// Declare all Build Results
def Build_A_Result
def Build_B_Result
def Build_C_Result
def Build_D_Result
def Build_E_Result

// Declare the build calls
def Build_A_Flow= { Build_A_Result= ignore(UNSTABLE) { build( 'Build_A' ) } 
}
def Build_B_Flow= { Build_B_Result= ignore(UNSTABLE) { build( 'Build_B' ) } 
}
def Build_C_Flow= { Build_C_Result= ignore(UNSTABLE) { build( 'Build_C' ) } 
}
def Build_D_Flow= { Build_D_Result= ignore(UNSTABLE) { build( 'Build_D' ) } 
}
def Build_E_Flow= { Build_E_Result= ignore(UNSTABLE) { build( 'Build_E' ) } 
}

//Start the process flow
def BuildBDFlow= {
[   Build_B_Flow,
Build_D_Flow
].each { it() }
}

def BuildABCFlow= {
[Build_A_Flow,
{ parallel(BuildBDFlow, Build_C_Flow) }
].each { it() }
}

[ BuildABCFlow ].each { it() }




-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/09279607-c353-4d58-b3a3-dc56ddd92671%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Build-Flow-Plugin] Parallel & Join operation

2015-06-11 Thread ramesh v r
Hello All,

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2cc02884-6387-43f8-8a13-6da9dbbd323a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


"hipchat" Plugin + "build-flow-plugin" Plugin = No notifications

2015-05-05 Thread Stephen Melrose
Hi all,

I'm trying to get HipChat notifications working for our Jenkins server, but 
I'm sadly running into issues.

I've added the config for HipChat into Jenkins' "Configure System" and hit 
"Test configuration", and everything works.

I've added the post build notification to one of our "normal" jobs and it's 
working as expected. I've then added it to one of our "build flow" jobs, 
which the vast majority of our main jobs are, and they're not working.

I've no idea whether this is hipchat or build-flow-plugin specific, but 
I've tried multiple permutations with the settings, and nothing is working. 
Everything else does.

Any ideas?

Jenkins Version: 1.612
hipchat Version: 0.1.9
build-flow-plugin Version: 0.17

Thanks

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c4f9462d-d697-4b73-b090-b60898a5b489%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Build Flow Plugin - Dynamic Job Invocation

2015-04-22 Thread Zile Rehman
I am trying to use the Build Flow Plugin 
(https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin) to 
dynamically define a parallel build job.

In my main script, I am dynamically defining a playCompBuilderList. Then I 
iterate through through the list and trigger the build for each item, as 
shown below.. My question is, how do I wrap it up in parallel statement to 
trigger the builds in parallel?


playCompBuilderList.each {
it.each {
comp, map -> build('play_comp_builder',
COMP: map['comp'],
COMP_TAG: map['comp_tag'],
CORUS_TAG   : map['corus_tag'],
DRAGONBALL_TAG  : map['dragonball_tag'],
PLAY_VERSION: map['play_version'])
}
}

This is a sample playCompBuilderList ==> [
{
"athena": {
"comp": "athena",
"comp_tag": "develop",
"corus_tag": "develop",
"dragonball_tag": "master",
"play_version": "2.3.6"
}
},
{
"atlas": {
"comp": "atlas",
"comp_tag": "develop",
"corus_tag": "develop",
"dragonball_tag": "master",
"play_version": "2.3.6"
}
}
]




I tried something like this but didn’t work:

*parallel (*
  playCompBuilderList.each {
it.each {
comp, map -> build('play_comp_builder',
COMP: map['comp'],
COMP_TAG: map['comp_tag'],
CORUS_TAG   : map['corus_tag'],
DRAGONBALL_TAG  : map['dragonball_tag'],
PLAY_VERSION: map['play_version'])
}
  }
*)*

Please help! Thanks.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/443b39af-a82b-42f1-86d8-e256c6450d4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Build flow plugin] Cannot load balance multiple workflows

2015-03-09 Thread Ty Satrang
I think you must be right, my solution was to stop caring where the flow 
runs, and focus on an alternative method of retrieving the report/log data. 
I used the Build Flow Toolbox which lets you copy files with the flow:
job = build('downstream job')
toolbox.copyFiles(job.workspace, build.workspace)
//Unrelated but also useful:
out.println job.build.log



On Sunday, March 8, 2015 at 9:03:30 AM UTC-7, stefan thomasson wrote:
>
> Hi,
> If i understood your description, i am wondering if this Isn't the 
> expected behaviour for buildflow as it is a "fly weight" job and therefore 
> do not consume any executors?
>
> 5 mar 2015 kl. 23:39 skrev Ty Satrang >:
>
> I am not sure how you want to receive that, but here is a gist of the 
> config that will reproduce the issue. 
> Flow: https://gist.github.com/tsatrangtw/73a391aa75b45cb38235
> Downsteam: https://gist.github.com/tsatrangtw/4c20c9a85ce63081c160
>
>
> On Thursday, March 5, 2015 at 2:15:47 PM UTC-8, rginga wrote:
>>
>>  Can you provide a simple example of your main buildflow job?
>>
>>  
>>
>> *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
>> Behalf Of *Ty Satrang
>> *Sent:* Thursday, March 05, 2015 5:12 PM
>> *To:* jenkins...@googlegroups.com
>> *Subject:* Re: [Build flow plugin] Cannot load balance multiple workflows
>>
>>  
>>  
>> Thank you, I did see this copy pasta in another thread, and I did try 
>> changing the scheduling strategy with a plug-in. It seems that this 
>> particular problem is somewhat exclusive to the Build Flow plugin. It 
>> doesn't just queue jobs up, as you can see in the image link, it runs the 
>> flow jobs all at once on a single node.
>>  
>>
>> On Thursday, March 5, 2015 at 11:46:37 AM UTC-8, rginga wrote:
>>  
>> Maybe I misunderstand your problem. Let’s keep it simple.
>>
>>  
>>
>> The reason the multiple runs of your build flow job run on the same node 
>> is because, when selecting a node, it tries to run it one the same node it 
>> previously ran on (#2 in the Strategy below). If your nodes had just 1 
>> executor defined, then any consecutive runs would run on different nodes. 
>> But with 8 executors, it just runs it there.
>>
>>  
>>
>> *Scheduling strategy*
>>
>> Some slaves are faster, while others are slow. Some slaves are closer 
>> (network wise) to a master, others are far away. So doing a good build 
>> distribution is a challenge. Currently, Jenkins employs the following 
>> strategy:
>>
>>1. If a project is configured to stick to one computer, that's always 
>>honored.
>>2. Jenkins tries to build a project on the same computer that it was 
>>previously built.
>>3. Jenkins tries to move long builds to slaves, because the amount of 
>>network interaction between a master and a slave tends to be logarithmic 
>> to 
>>the duration of a build (IOW, even if project A takes twice as long to 
>>build as project B, it won't require double network transfer.) So this 
>>strategy reduces the network overhead.
>>
>>  If you have interesting ideas (or better yet, implementations), please 
>> let me know.
>>
>>  
>>
>> *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
>> Behalf Of *Ty Satrang
>> *Sent:* Thursday, March 05, 2015 1:52 PM
>> *To:* jenkins...@googlegroups.com
>> *Subject:* Re: [Build flow plugin] Cannot load balance multiple workflows
>>
>>  
>>  
>> "if you have a label assigned to many slaves, each with one executor, it 
>> will do what you want"
>> My slaves do all share the same label and I tried to "Restrict where 
>> this project can be run" and I get the same behavior.
>>
>> "One way to do what you want is to have each “archive” whatever files 
>> you want which puts them onto the Jenkins server and then use “Copy 
>> artifacts from another project”"
>>  
>> I suppose this could work, but does it copy the files to the workspace or 
>> does it just archive them? I am using a plugin to publish reports from the 
>> workspace.
>>  
>>  
>>  
>>
>> On Thursday, March 5, 2015 at 8:12:59 AM UTC-8, rginga wrote:
>>  
>> Its strategy is to try to use the same node it last built on. If you have 
>> available executors, it will use one. if you have a label assigned to many 
>> slaves, each with one executor, it will do what you want.
>>
>>  
>>
>> One way to do what y

Re: [Build flow plugin] Cannot load balance multiple workflows

2015-03-08 Thread Stefan Thomasson
Hi,
If i understood your description, i am wondering if this Isn't the expected 
behaviour for buildflow as it is a "fly weight" job and therefore do not 
consume any executors?

> 5 mar 2015 kl. 23:39 skrev Ty Satrang :
> 
> I am not sure how you want to receive that, but here is a gist of the config 
> that will reproduce the issue. 
> Flow: https://gist.github.com/tsatrangtw/73a391aa75b45cb38235
> Downsteam: https://gist.github.com/tsatrangtw/4c20c9a85ce63081c160
> 
> 
>> On Thursday, March 5, 2015 at 2:15:47 PM UTC-8, rginga wrote:
>> Can you provide a simple example of your main buildflow job?
>> 
>>  
>> 
>> From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On 
>> Behalf Of Ty Satrang
>> Sent: Thursday, March 05, 2015 5:12 PM
>> To: jenkins...@googlegroups.com
>> Subject: Re: [Build flow plugin] Cannot load balance multiple workflows
>> 
>>  
>> 
>> Thank you, I did see this copy pasta in another thread, and I did try 
>> changing the scheduling strategy with a plug-in. It seems that this 
>> particular problem is somewhat exclusive to the Build Flow plugin. It 
>> doesn't just queue jobs up, as you can see in the image link, it runs the 
>> flow jobs all at once on a single node.
>> 
>> 
>> On Thursday, March 5, 2015 at 11:46:37 AM UTC-8, rginga wrote:
>> 
>> Maybe I misunderstand your problem. Let’s keep it simple.
>> 
>>  
>> 
>> The reason the multiple runs of your build flow job run on the same node is 
>> because, when selecting a node, it tries to run it one the same node it 
>> previously ran on (#2 in the Strategy below). If your nodes had just 1 
>> executor defined, then any consecutive runs would run on different nodes. 
>> But with 8 executors, it just runs it there.
>> 
>>  
>> 
>> Scheduling strategy
>> 
>> Some slaves are faster, while others are slow. Some slaves are closer 
>> (network wise) to a master, others are far away. So doing a good build 
>> distribution is a challenge. Currently, Jenkins employs the following 
>> strategy:
>> 
>> If a project is configured to stick to one computer, that's always honored.
>> Jenkins tries to build a project on the same computer that it was previously 
>> built.
>> Jenkins tries to move long builds to slaves, because the amount of network 
>> interaction between a master and a slave tends to be logarithmic to the 
>> duration of a build (IOW, even if project A takes twice as long to build as 
>> project B, it won't require double network transfer.) So this strategy 
>> reduces the network overhead.
>> If you have interesting ideas (or better yet, implementations), please let 
>> me know.
>> 
>>  
>> 
>> From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On 
>> Behalf Of Ty Satrang
>> Sent: Thursday, March 05, 2015 1:52 PM
>> To: jenkins...@googlegroups.com
>> Subject: Re: [Build flow plugin] Cannot load balance multiple workflows
>> 
>>  
>> 
>> "if you have a label assigned to many slaves, each with one executor, it 
>> will do what you want"
>> My slaves do all share the same label and I tried to "Restrict where this 
>> project can be run" and I get the same behavior.
>> 
>> "One way to do what you want is to have each “archive” whatever files you 
>> want which puts them onto the Jenkins server and then use “Copy artifacts 
>> from another project”"
>> 
>> I suppose this could work, but does it copy the files to the workspace or 
>> does it just archive them? I am using a plugin to publish reports from the 
>> workspace.
>> 
>>  
>> 
>> 
>> On Thursday, March 5, 2015 at 8:12:59 AM UTC-8, rginga wrote:
>> 
>> Its strategy is to try to use the same node it last built on. If you have 
>> available executors, it will use one. if you have a label assigned to many 
>> slaves, each with one executor, it will do what you want.
>> 
>>  
>> 
>> One way to do what you want is to have each “archive” whatever files you 
>> want which puts them onto the Jenkins server and then use “Copy artifacts 
>> from another project”
>> 
>>  
>> 
>> From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On 
>> Behalf Of Ty Satrang
>> Sent: Thursday, March 05, 2015 3:50 AM
>> To: jenkins...@googlegroups.com
>> Subject: [Build flow plugin] Cannot load balance multiple workflows
>> 
>>  
>> 
>> http://i.imgur.com/VEZ1Erc.png
>

Re: [Build flow plugin] Cannot load balance multiple workflows

2015-03-05 Thread Ty Satrang
I am using Jenkins to run tests for several teams, and I would like to be 
able to run tests concurrently rather than serially. I have a master job 
that takes parameters (team, tests, code to pull) that I pass using a build 
flow. I use Jenkins so that I can have this happen on demand or on a 
schedule. It appears I may be going about this the wrong way. Do you have 
any suggestions?

On Thursday, March 5, 2015 at 2:54:13 PM UTC-8, rginga wrote:
>
>  Ok, so your upper job Sample Flow does 
>
>  
>
> Build(Sample downstream job, node: name-name)
>
>  
>
> And Sample downstream job does a find grep command
>
>  
>
> And your image represents starting Sample flow job 9 times. Since there 
> are 9 available executors on dvm-qa5, all 9 Sample flow jobs start. I 
> expect that 8 of them pend waiting on Sample downstream job to finish 
> (unless you checked “Run concurrent”)
>
>  
>
> And I think you wanted those 9 jobs to be distributed among other nodes in 
> your group like dvm-qa2 and 1? 
>
>  
>
> I think that I don’t know how to get it to do what you want but I would 
> not call it a “problem”. This strategy “Jenkins tries to build a project on 
> the same computer that it was previously built.” Is called “affinity” and 
> it helps a great deal when jobs are pulling source code and/or building. It 
> can greatly speed up the process.
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Ty Satrang
> *Sent:* Thursday, March 05, 2015 5:39 PM
> *To:* jenkins...@googlegroups.com 
> *Subject:* Re: [Build flow plugin] Cannot load balance multiple workflows
>
>  
>  
> I am not sure how you want to receive that, but here is a gist of the 
> config that will reproduce the issue. 
>  
> Flow: https://gist.github.com/tsatrangtw/73a391aa75b45cb38235
> Downsteam: https://gist.github.com/tsatrangtw/4c20c9a85ce63081c160
>  
>  
>  
>
> On Thursday, March 5, 2015 at 2:15:47 PM UTC-8, rginga wrote:
>  
> Can you provide a simple example of your main buildflow job?
>
>  
>
> *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
> Behalf Of *Ty Satrang
> *Sent:* Thursday, March 05, 2015 5:12 PM
> *To:* jenkins...@googlegroups.com
> *Subject:* Re: [Build flow plugin] Cannot load balance multiple workflows
>
>  
>  
> Thank you, I did see this copy pasta in another thread, and I did try 
> changing the scheduling strategy with a plug-in. It seems that this 
> particular problem is somewhat exclusive to the Build Flow plugin. It 
> doesn't just queue jobs up, as you can see in the image link, it runs the 
> flow jobs all at once on a single node.
>  
>
> On Thursday, March 5, 2015 at 11:46:37 AM UTC-8, rginga wrote:
>  
> Maybe I misunderstand your problem. Let’s keep it simple.
>
>  
>
> The reason the multiple runs of your build flow job run on the same node 
> is because, when selecting a node, it tries to run it one the same node it 
> previously ran on (#2 in the Strategy below). If your nodes had just 1 
> executor defined, then any consecutive runs would run on different nodes. 
> But with 8 executors, it just runs it there.
>
>  
>
> *Scheduling strategy*
>
> Some slaves are faster, while others are slow. Some slaves are closer 
> (network wise) to a master, others are far away. So doing a good build 
> distribution is a challenge. Currently, Jenkins employs the following 
> strategy:
>
>1. If a project is configured to stick to one computer, that's always 
>honored.
>2. Jenkins tries to build a project on the same computer that it was 
>previously built.
>3. Jenkins tries to move long builds to slaves, because the amount of 
>network interaction between a master and a slave tends to be logarithmic 
> to 
>the duration of a build (IOW, even if project A takes twice as long to 
>build as project B, it won't require double network transfer.) So this 
>strategy reduces the network overhead.
>
>  If you have interesting ideas (or better yet, implementations), please 
> let me know.
>
>  
>
> *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
> Behalf Of *Ty Satrang
> *Sent:* Thursday, March 05, 2015 1:52 PM
> *To:* jenkins...@googlegroups.com
> *Subject:* Re: [Build flow plugin] Cannot load balance multiple workflows
>
>  
>  
> "if you have a label assigned to many slaves, each with one executor, it 
> will do what you want"
> My slaves do all share the same label and I tried to "Restrict where this 
> project can be run" and I get the same behavior.
>
> "One way to do what you want i

RE: [Build flow plugin] Cannot load balance multiple workflows

2015-03-05 Thread Ginga, Dick
Ok, so your upper job Sample Flow does

Build(Sample downstream job, node: name-name)

And Sample downstream job does a find grep command

And your image represents starting Sample flow job 9 times. Since there are 9 
available executors on dvm-qa5, all 9 Sample flow jobs start. I expect that 8 
of them pend waiting on Sample downstream job to finish (unless you checked 
“Run concurrent”)

And I think you wanted those 9 jobs to be distributed among other nodes in your 
group like dvm-qa2 and 1?

I think that I don’t know how to get it to do what you want but I would not 
call it a “problem”. This strategy “Jenkins tries to build a project on the 
same computer that it was previously built.” Is called “affinity” and it helps 
a great deal when jobs are pulling source code and/or building. It can greatly 
speed up the process.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ty Satrang
Sent: Thursday, March 05, 2015 5:39 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: [Build flow plugin] Cannot load balance multiple workflows

I am not sure how you want to receive that, but here is a gist of the config 
that will reproduce the issue.
Flow: https://gist.github.com/tsatrangtw/73a391aa75b45cb38235
Downsteam: https://gist.github.com/tsatrangtw/4c20c9a85ce63081c160


On Thursday, March 5, 2015 at 2:15:47 PM UTC-8, rginga wrote:
Can you provide a simple example of your main buildflow job?

From: jenkins...@googlegroups.com 
[mailto:jenkins...@googlegroups.com] On Behalf Of Ty Satrang
Sent: Thursday, March 05, 2015 5:12 PM
To: jenkins...@googlegroups.com
Subject: Re: [Build flow plugin] Cannot load balance multiple workflows

Thank you, I did see this copy pasta in another thread, and I did try changing 
the scheduling strategy with a plug-in. It seems that this particular problem 
is somewhat exclusive to the Build Flow plugin. It doesn't just queue jobs up, 
as you can see in the image link, it runs the flow jobs all at once on a single 
node.

On Thursday, March 5, 2015 at 11:46:37 AM UTC-8, rginga wrote:
Maybe I misunderstand your problem. Let’s keep it simple.

The reason the multiple runs of your build flow job run on the same node is 
because, when selecting a node, it tries to run it one the same node it 
previously ran on (#2 in the Strategy below). If your nodes had just 1 executor 
defined, then any consecutive runs would run on different nodes. But with 8 
executors, it just runs it there.

Scheduling strategy
Some slaves are faster, while others are slow. Some slaves are closer (network 
wise) to a master, others are far away. So doing a good build distribution is a 
challenge. Currently, Jenkins employs the following strategy:

  1.  If a project is configured to stick to one computer, that's always 
honored.
  2.  Jenkins tries to build a project on the same computer that it was 
previously built.
  3.  Jenkins tries to move long builds to slaves, because the amount of 
network interaction between a master and a slave tends to be logarithmic to the 
duration of a build (IOW, even if project A takes twice as long to build as 
project B, it won't require double network transfer.) So this strategy reduces 
the network overhead.
If you have interesting ideas (or better yet, implementations), please let me 
know.

From: jenkins...@googlegroups.com<mailto:jenkins...@googlegroups.com> 
[mailto:jenkins...@googlegroups.com] On Behalf Of Ty Satrang
Sent: Thursday, March 05, 2015 1:52 PM
To: jenkins...@googlegroups.com<mailto:jenkins...@googlegroups.com>
Subject: Re: [Build flow plugin] Cannot load balance multiple workflows

"if you have a label assigned to many slaves, each with one executor, it will 
do what you want"
My slaves do all share the same label and I tried to "Restrict where this 
project can be run" and I get the same behavior.

"One way to do what you want is to have each “archive” whatever files you want 
which puts them onto the Jenkins server and then use “Copy artifacts from 
another project”"
I suppose this could work, but does it copy the files to the workspace or does 
it just archive them? I am using a plugin to publish reports from the workspace.


On Thursday, March 5, 2015 at 8:12:59 AM UTC-8, rginga wrote:
Its strategy is to try to use the same node it last built on. If you have 
available executors, it will use one. if you have a label assigned to many 
slaves, each with one executor, it will do what you want.

One way to do what you want is to have each “archive” whatever files you want 
which puts them onto the Jenkins server and then use “Copy artifacts from 
another project”

From: jenkins...@googlegroups.com<mailto:jenkins...@googlegroups.com> 
[mailto:jenkins...@googlegroups.com] On Behalf Of Ty Satrang
Sent: Thursday, March 05, 2015 3:50 AM
To: jenkins...@googlegroups.com<mailto:jenkins...@googlegroups.com>
Subject: [Build flow plugin] Cannot load balanc

Re: [Build flow plugin] Cannot load balance multiple workflows

2015-03-05 Thread Ty Satrang
I am not sure how you want to receive that, but here is a gist of the 
config that will reproduce the issue. 
Flow: https://gist.github.com/tsatrangtw/73a391aa75b45cb38235
Downsteam: https://gist.github.com/tsatrangtw/4c20c9a85ce63081c160


On Thursday, March 5, 2015 at 2:15:47 PM UTC-8, rginga wrote:
>
>  Can you provide a simple example of your main buildflow job?
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Ty Satrang
> *Sent:* Thursday, March 05, 2015 5:12 PM
> *To:* jenkins...@googlegroups.com 
> *Subject:* Re: [Build flow plugin] Cannot load balance multiple workflows
>
>  
>  
> Thank you, I did see this copy pasta in another thread, and I did try 
> changing the scheduling strategy with a plug-in. It seems that this 
> particular problem is somewhat exclusive to the Build Flow plugin. It 
> doesn't just queue jobs up, as you can see in the image link, it runs the 
> flow jobs all at once on a single node.
>  
>
> On Thursday, March 5, 2015 at 11:46:37 AM UTC-8, rginga wrote:
>  
> Maybe I misunderstand your problem. Let’s keep it simple.
>
>  
>
> The reason the multiple runs of your build flow job run on the same node 
> is because, when selecting a node, it tries to run it one the same node it 
> previously ran on (#2 in the Strategy below). If your nodes had just 1 
> executor defined, then any consecutive runs would run on different nodes. 
> But with 8 executors, it just runs it there.
>
>  
>
> *Scheduling strategy*
>
> Some slaves are faster, while others are slow. Some slaves are closer 
> (network wise) to a master, others are far away. So doing a good build 
> distribution is a challenge. Currently, Jenkins employs the following 
> strategy:
>
>1. If a project is configured to stick to one computer, that's always 
>honored.
>2. Jenkins tries to build a project on the same computer that it was 
>previously built.
>3. Jenkins tries to move long builds to slaves, because the amount of 
>network interaction between a master and a slave tends to be logarithmic 
> to 
>the duration of a build (IOW, even if project A takes twice as long to 
>build as project B, it won't require double network transfer.) So this 
>strategy reduces the network overhead.
>
>  If you have interesting ideas (or better yet, implementations), please 
> let me know.
>
>  
>
> *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
> Behalf Of *Ty Satrang
> *Sent:* Thursday, March 05, 2015 1:52 PM
> *To:* jenkins...@googlegroups.com
> *Subject:* Re: [Build flow plugin] Cannot load balance multiple workflows
>
>  
>  
> "if you have a label assigned to many slaves, each with one executor, it 
> will do what you want"
> My slaves do all share the same label and I tried to "Restrict where this 
> project can be run" and I get the same behavior.
>
> "One way to do what you want is to have each “archive” whatever files you 
> want which puts them onto the Jenkins server and then use “Copy artifacts 
> from another project”"
>  
> I suppose this could work, but does it copy the files to the workspace or 
> does it just archive them? I am using a plugin to publish reports from the 
> workspace.
>  
>  
>  
>
> On Thursday, March 5, 2015 at 8:12:59 AM UTC-8, rginga wrote:
>  
> Its strategy is to try to use the same node it last built on. If you have 
> available executors, it will use one. if you have a label assigned to many 
> slaves, each with one executor, it will do what you want.
>
>  
>
> One way to do what you want is to have each “archive” whatever files you 
> want which puts them onto the Jenkins server and then use “Copy artifacts 
> from another project”
>
>  
>
> *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
> Behalf Of *Ty Satrang
> *Sent:* Thursday, March 05, 2015 3:50 AM
> *To:* jenkins...@googlegroups.com
> *Subject:* [Build flow plugin] Cannot load balance multiple workflows
>
>  
>  
> http://i.imgur.com/VEZ1Erc.png
>  
>  
>  
> For some reason my flow jobs like to all run on a single node instead of 
> choosing an idle node.
>  
>  
>  
> This is a problem for me because I am using the Node and Label parameter 
> plugin 
> <https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin> to 
> run the jobs on the same VM as the flow job so I can copy the reports and 
> logs to the parent workspace for publishing.
>  
>  
>  
> I tried using the Least Load plugin 
> <http://wiki.jenkins-ci.org/display/JENKINS/Least+Load+Plugin>, but I get

RE: [Build flow plugin] Cannot load balance multiple workflows

2015-03-05 Thread Ginga, Dick
Can you provide a simple example of your main buildflow job?

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ty Satrang
Sent: Thursday, March 05, 2015 5:12 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: [Build flow plugin] Cannot load balance multiple workflows

Thank you, I did see this copy pasta in another thread, and I did try changing 
the scheduling strategy with a plug-in. It seems that this particular problem 
is somewhat exclusive to the Build Flow plugin. It doesn't just queue jobs up, 
as you can see in the image link, it runs the flow jobs all at once on a single 
node.

On Thursday, March 5, 2015 at 11:46:37 AM UTC-8, rginga wrote:
Maybe I misunderstand your problem. Let’s keep it simple.

The reason the multiple runs of your build flow job run on the same node is 
because, when selecting a node, it tries to run it one the same node it 
previously ran on (#2 in the Strategy below). If your nodes had just 1 executor 
defined, then any consecutive runs would run on different nodes. But with 8 
executors, it just runs it there.

Scheduling strategy
Some slaves are faster, while others are slow. Some slaves are closer (network 
wise) to a master, others are far away. So doing a good build distribution is a 
challenge. Currently, Jenkins employs the following strategy:

  1.  If a project is configured to stick to one computer, that's always 
honored.
  2.  Jenkins tries to build a project on the same computer that it was 
previously built.
  3.  Jenkins tries to move long builds to slaves, because the amount of 
network interaction between a master and a slave tends to be logarithmic to the 
duration of a build (IOW, even if project A takes twice as long to build as 
project B, it won't require double network transfer.) So this strategy reduces 
the network overhead.
If you have interesting ideas (or better yet, implementations), please let me 
know.

From: jenkins...@googlegroups.com 
[mailto:jenkins...@googlegroups.com] On Behalf Of Ty Satrang
Sent: Thursday, March 05, 2015 1:52 PM
To: jenkins...@googlegroups.com
Subject: Re: [Build flow plugin] Cannot load balance multiple workflows

"if you have a label assigned to many slaves, each with one executor, it will 
do what you want"
My slaves do all share the same label and I tried to "Restrict where this 
project can be run" and I get the same behavior.

"One way to do what you want is to have each “archive” whatever files you want 
which puts them onto the Jenkins server and then use “Copy artifacts from 
another project”"
I suppose this could work, but does it copy the files to the workspace or does 
it just archive them? I am using a plugin to publish reports from the workspace.


On Thursday, March 5, 2015 at 8:12:59 AM UTC-8, rginga wrote:
Its strategy is to try to use the same node it last built on. If you have 
available executors, it will use one. if you have a label assigned to many 
slaves, each with one executor, it will do what you want.

One way to do what you want is to have each “archive” whatever files you want 
which puts them onto the Jenkins server and then use “Copy artifacts from 
another project”

From: jenkins...@googlegroups.com<mailto:jenkins...@googlegroups.com> 
[mailto:jenkins...@googlegroups.com] On Behalf Of Ty Satrang
Sent: Thursday, March 05, 2015 3:50 AM
To: jenkins...@googlegroups.com<mailto:jenkins...@googlegroups.com>
Subject: [Build flow plugin] Cannot load balance multiple workflows

http://i.imgur.com/VEZ1Erc.png

For some reason my flow jobs like to all run on a single node instead of 
choosing an idle node.

This is a problem for me because I am using the Node and Label parameter 
plugin<https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin> 
to run the jobs on the same VM as the flow job so I can copy the reports and 
logs to the parent workspace for publishing.

I tried using the Least Load 
plugin<http://wiki.jenkins-ci.org/display/JENKINS/Least+Load+Plugin>, but I get 
the same behavior.

I also tried the Throttle Concurrent Builds 
Plug-in<http://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin>
 to restrict the jobs per node to 1, to no effect.

I am just realizing this now but, maybe it would be easier to get the files to 
the parent workspace another way and let the flow jobs all run on whatever 
single node they want. (maybe? 
https://github.com/dnozay/build-flow-toolbox-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-use...@googlegroups.com<mailto:jenkinsci-use...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3d1d0150-3125-4b54-a846-b0a6687022cf%40googlegroups.com<https://groups.google.com/d/

Re: [Build flow plugin] Cannot load balance multiple workflows

2015-03-05 Thread Ty Satrang
Thank you, I did see this copy pasta in another thread, and I did try 
changing the scheduling strategy with a plug-in. It seems that this 
particular problem is somewhat exclusive to the Build Flow plugin. It 
doesn't just queue jobs up, as you can see in the image link, it runs the 
flow jobs all at once on a single node.

On Thursday, March 5, 2015 at 11:46:37 AM UTC-8, rginga wrote:
>
>  Maybe I misunderstand your problem. Let’s keep it simple.
>
>  
>
> The reason the multiple runs of your build flow job run on the same node 
> is because, when selecting a node, it tries to run it one the same node it 
> previously ran on (#2 in the Strategy below). If your nodes had just 1 
> executor defined, then any consecutive runs would run on different nodes. 
> But with 8 executors, it just runs it there.
>
>  
>
> *Scheduling strategy*
>
> Some slaves are faster, while others are slow. Some slaves are closer 
> (network wise) to a master, others are far away. So doing a good build 
> distribution is a challenge. Currently, Jenkins employs the following 
> strategy:
>
>1. If a project is configured to stick to one computer, that's always 
>honored.
>2. Jenkins tries to build a project on the same computer that it was 
>previously built.
>3. Jenkins tries to move long builds to slaves, because the amount of 
>network interaction between a master and a slave tends to be logarithmic 
> to 
>the duration of a build (IOW, even if project A takes twice as long to 
>build as project B, it won't require double network transfer.) So this 
>strategy reduces the network overhead.
>
>  If you have interesting ideas (or better yet, implementations), please 
> let me know.
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Ty Satrang
> *Sent:* Thursday, March 05, 2015 1:52 PM
> *To:* jenkins...@googlegroups.com 
> *Subject:* Re: [Build flow plugin] Cannot load balance multiple workflows
>
>  
>  
> "if you have a label assigned to many slaves, each with one executor, it 
> will do what you want"
> My slaves do all share the same label and I tried to "Restrict where this 
> project can be run" and I get the same behavior.
>
> "One way to do what you want is to have each “archive” whatever files you 
> want which puts them onto the Jenkins server and then use “Copy artifacts 
> from another project”"
>  
> I suppose this could work, but does it copy the files to the workspace or 
> does it just archive them? I am using a plugin to publish reports from the 
> workspace.
>  
>  
>  
>
> On Thursday, March 5, 2015 at 8:12:59 AM UTC-8, rginga wrote:
>  
> Its strategy is to try to use the same node it last built on. If you have 
> available executors, it will use one. if you have a label assigned to many 
> slaves, each with one executor, it will do what you want.
>
>  
>
> One way to do what you want is to have each “archive” whatever files you 
> want which puts them onto the Jenkins server and then use “Copy artifacts 
> from another project”
>
>  
>
> *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
> Behalf Of *Ty Satrang
> *Sent:* Thursday, March 05, 2015 3:50 AM
> *To:* jenkins...@googlegroups.com
> *Subject:* [Build flow plugin] Cannot load balance multiple workflows
>
>  
>  
> http://i.imgur.com/VEZ1Erc.png
>  
>  
>  
> For some reason my flow jobs like to all run on a single node instead of 
> choosing an idle node.
>  
>  
>  
> This is a problem for me because I am using the Node and Label parameter 
> plugin 
> <https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin> to 
> run the jobs on the same VM as the flow job so I can copy the reports and 
> logs to the parent workspace for publishing.
>  
>  
>  
> I tried using the Least Load plugin 
> <http://wiki.jenkins-ci.org/display/JENKINS/Least+Load+Plugin>, but I get 
> the same behavior.
>   
>  
>  
> I also tried the Throttle Concurrent Builds Plug-in 
> <http://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin>
>  to 
> restrict the jobs per node to 1, to no effect.
>  
>  
>  
> I am just realizing this now but, maybe it would be easier to get the 
> files to the parent workspace another way and let the flow jobs all run on 
> whatever single node they want. (maybe? 
> https://github.com/dnozay/build-flow-toolbox-plugin )
>  
>  
>   
>  
>  
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubs

RE: [Build flow plugin] Cannot load balance multiple workflows

2015-03-05 Thread Ginga, Dick
Maybe I misunderstand your problem. Let’s keep it simple.

The reason the multiple runs of your build flow job run on the same node is 
because, when selecting a node, it tries to run it one the same node it 
previously ran on (#2 in the Strategy below). If your nodes had just 1 executor 
defined, then any consecutive runs would run on different nodes. But with 8 
executors, it just runs it there.

Scheduling strategy
Some slaves are faster, while others are slow. Some slaves are closer (network 
wise) to a master, others are far away. So doing a good build distribution is a 
challenge. Currently, Jenkins employs the following strategy:

  1.  If a project is configured to stick to one computer, that's always 
honored.
  2.  Jenkins tries to build a project on the same computer that it was 
previously built.
  3.  Jenkins tries to move long builds to slaves, because the amount of 
network interaction between a master and a slave tends to be logarithmic to the 
duration of a build (IOW, even if project A takes twice as long to build as 
project B, it won't require double network transfer.) So this strategy reduces 
the network overhead.
If you have interesting ideas (or better yet, implementations), please let me 
know.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ty Satrang
Sent: Thursday, March 05, 2015 1:52 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: [Build flow plugin] Cannot load balance multiple workflows

"if you have a label assigned to many slaves, each with one executor, it will 
do what you want"
My slaves do all share the same label and I tried to "Restrict where this 
project can be run" and I get the same behavior.

"One way to do what you want is to have each “archive” whatever files you want 
which puts them onto the Jenkins server and then use “Copy artifacts from 
another project”"
I suppose this could work, but does it copy the files to the workspace or does 
it just archive them? I am using a plugin to publish reports from the workspace.


On Thursday, March 5, 2015 at 8:12:59 AM UTC-8, rginga wrote:
Its strategy is to try to use the same node it last built on. If you have 
available executors, it will use one. if you have a label assigned to many 
slaves, each with one executor, it will do what you want.

One way to do what you want is to have each “archive” whatever files you want 
which puts them onto the Jenkins server and then use “Copy artifacts from 
another project”

From: jenkins...@googlegroups.com 
[mailto:jenkins...@googlegroups.com] On Behalf Of Ty Satrang
Sent: Thursday, March 05, 2015 3:50 AM
To: jenkins...@googlegroups.com
Subject: [Build flow plugin] Cannot load balance multiple workflows

http://i.imgur.com/VEZ1Erc.png

For some reason my flow jobs like to all run on a single node instead of 
choosing an idle node.

This is a problem for me because I am using the Node and Label parameter 
plugin<https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin> 
to run the jobs on the same VM as the flow job so I can copy the reports and 
logs to the parent workspace for publishing.

I tried using the Least Load 
plugin<http://wiki.jenkins-ci.org/display/JENKINS/Least+Load+Plugin>, but I get 
the same behavior.

I also tried the Throttle Concurrent Builds 
Plug-in<http://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin>
 to restrict the jobs per node to 1, to no effect.

I am just realizing this now but, maybe it would be easier to get the files to 
the parent workspace another way and let the flow jobs all run on whatever 
single node they want. (maybe? 
https://github.com/dnozay/build-flow-toolbox-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-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3d1d0150-3125-4b54-a846-b0a6687022cf%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/3d1d0150-3125-4b54-a846-b0a6687022cf%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0a9cb8a5-d3ef-4f02-8506-0e4b0a986493%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/0a9cb8a5-d3ef-4f02-8506-0e4b0a986493%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.googl

Re: [Build flow plugin] Cannot load balance multiple workflows

2015-03-05 Thread Ty Satrang
"if you have a label assigned to many slaves, each with one executor, it 
will do what you want"
My slaves do all share the same label and I tried to "Restrict where this 
project can be run" and I get the same behavior.

"One way to do what you want is to have each “archive” whatever files you 
want which puts them onto the Jenkins server and then use “Copy artifacts 
from another project”"
I suppose this could work, but does it copy the files to the workspace or 
does it just archive them? I am using a plugin to publish reports from the 
workspace.


On Thursday, March 5, 2015 at 8:12:59 AM UTC-8, rginga wrote:
>
>  Its strategy is to try to use the same node it last built on. If you 
> have available executors, it will use one. if you have a label assigned to 
> many slaves, each with one executor, it will do what you want.
>
>  
>
> One way to do what you want is to have each “archive” whatever files you 
> want which puts them onto the Jenkins server and then use “Copy artifacts 
> from another project”
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Ty Satrang
> *Sent:* Thursday, March 05, 2015 3:50 AM
> *To:* jenkins...@googlegroups.com 
> *Subject:* [Build flow plugin] Cannot load balance multiple workflows
>
>  
>  
> http://i.imgur.com/VEZ1Erc.png
>  
>  
>  
> For some reason my flow jobs like to all run on a single node instead of 
> choosing an idle node.
>  
>  
>  
> This is a problem for me because I am using the Node and Label parameter 
> plugin 
> <https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin> to 
> run the jobs on the same VM as the flow job so I can copy the reports and 
> logs to the parent workspace for publishing.
>  
>  
>  
> I tried using the Least Load plugin 
> <http://wiki.jenkins-ci.org/display/JENKINS/Least+Load+Plugin>, but I get 
> the same behavior.
>   
>  
>  
> I also tried the Throttle Concurrent Builds Plug-in 
> <http://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin>
>  to 
> restrict the jobs per node to 1, to no effect.
>  
>  
>  
> I am just realizing this now but, maybe it would be easier to get the 
> files to the parent workspace another way and let the flow jobs all run on 
> whatever single node they want. (maybe? 
> https://github.com/dnozay/build-flow-toolbox-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-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/3d1d0150-3125-4b54-a846-b0a6687022cf%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/3d1d0150-3125-4b54-a846-b0a6687022cf%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>  

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0a9cb8a5-d3ef-4f02-8506-0e4b0a986493%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [Build flow plugin] Cannot load balance multiple workflows

2015-03-05 Thread Ginga, Dick
Its strategy is to try to use the same node it last built on. If you have 
available executors, it will use one. if you have a label assigned to many 
slaves, each with one executor, it will do what you want.

One way to do what you want is to have each “archive” whatever files you want 
which puts them onto the Jenkins server and then use “Copy artifacts from 
another project”

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ty Satrang
Sent: Thursday, March 05, 2015 3:50 AM
To: jenkinsci-users@googlegroups.com
Subject: [Build flow plugin] Cannot load balance multiple workflows

http://i.imgur.com/VEZ1Erc.png

For some reason my flow jobs like to all run on a single node instead of 
choosing an idle node.

This is a problem for me because I am using the Node and Label parameter 
plugin<https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin> 
to run the jobs on the same VM as the flow job so I can copy the reports and 
logs to the parent workspace for publishing.

I tried using the Least Load 
plugin<http://wiki.jenkins-ci.org/display/JENKINS/Least+Load+Plugin>, but I get 
the same behavior.

I also tried the Throttle Concurrent Builds 
Plug-in<http://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin>
 to restrict the jobs per node to 1, to no effect.

I am just realizing this now but, maybe it would be easier to get the files to 
the parent workspace another way and let the flow jobs all run on whatever 
single node they want. (maybe? 
https://github.com/dnozay/build-flow-toolbox-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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3d1d0150-3125-4b54-a846-b0a6687022cf%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/3d1d0150-3125-4b54-a846-b0a6687022cf%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E507091%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.


[Build flow plugin] Cannot load balance multiple workflows

2015-03-05 Thread Ty Satrang
http://i.imgur.com/VEZ1Erc.png

For some reason my flow jobs like to all run on a single node instead of 
choosing an idle node.

This is a problem for me because I am using the Node and Label parameter 
plugin 
 to 
run the jobs on the same VM as the flow job so I can copy the reports and 
logs to the parent workspace for publishing.

I tried using the Least Load plugin 
, but I get 
the same behavior.

I also tried the Throttle Concurrent Builds Plug-in 
 
to 
restrict the jobs per node to 1, to no effect.

I am just realizing this now but, maybe it would be easier to get the files 
to the parent workspace another way and let the flow jobs all run on 
whatever single node they want. (maybe? 
https://github.com/dnozay/build-flow-toolbox-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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3d1d0150-3125-4b54-a846-b0a6687022cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Build Flow Plugin with Node Label Parameter Plugin

2015-03-04 Thread Ginga, Dick
Found this as an explanation why you are getting builds on the same node:
Scheduling strategy
Some slaves are faster, while others are slow. Some slaves are closer (network 
wise) to a master, others are far away. So doing a good build distribution is a 
challenge. Currently, Jenkins employs the following strategy:

  1.  If a project is configured to stick to one computer, that's always 
honored.
  2.  Jenkins tries to build a project on the same computer that it was 
previously built.
  3.  Jenkins tries to move long builds to slaves, because the amount of 
network interaction between a master and a slave tends to be logarithmic to the 
duration of a build (IOW, even if project A takes twice as long to build as 
project B, it won't require double network transfer.) So this strategy reduces 
the network overhead.
If you have interesting ideas (or better yet, implementations), please let me 
know.


From: Ginga, Dick
Sent: Tuesday, March 03, 2015 3:33 PM
To: jenkinsci-users@googlegroups.com
Subject: RE: Build Flow Plugin with Node Label Parameter Plugin

Well, I don’t know how it chooses but I would not be surprised if there were no 
jobs running, that it would choose the same one first each time.

BTW, if your first build chooses one slave from a labeled group, you want to 
pass on to the next job the specific slave chosen. For example, you don’t care 
which Windows build machine the first job ends up on, but you want the other to 
follow suit.

def nodename=build.getBuiltOnStr()

out.println "This node is " + nodename

b = build ("second-job-core-builder",
BUILD_NODE:nodename)

Because what you want is the 2nd job to run an the specific slave that the 
first job selected. If you follow me?

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Katie Outram
Sent: Tuesday, March 03, 2015 2:32 PM
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
Subject: Re: Build Flow Plugin with Node Label Parameter Plugin

Thanks for this information!This is now farther along and my entire job is 
building on one slave (not on both).

I do have one other strange thing happening now.

I have two slaves configured in the node label parameter plugin, however 
everything is only executing on one slave, no mater how many builds I have 
running.   Do you have any idea as to why that is happening?


On Tuesday, March 3, 2015 at 10:47:03 AM UTC-5, rginga wrote:
I have had good success doing this but I pass the NODE_NAME as a specific 
parameter:

Build (“AnyBuild”,
BUILD_NODE:”BUILDHERE”)

Where BUILD_NODE is a NODE parameter

From: jenkins...@googlegroups.com 
[mailto:jenkins...@googlegroups.com] On Behalf Of Katie Outram
Sent: Tuesday, March 03, 2015 10:41 AM
To: jenkins...@googlegroups.com
Subject: Build Flow Plugin with Node Label Parameter Plugin

Has anyone had success using the Build Flow Plugin with the Node Label 
Parameter Plugin?

Right now I have a build flow that executes some of the steps on Machine A and 
other steps on Machine B, eventhough I am passing the NODE_NAME and NODE_LABELS 
to the children jobs via an Environment Variable file.

If you have done this, do you have any suggestions on how to make certain all 
of the builds that are part of the flow operate on either Machine A or Machine 
B and not both?
--
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-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/38fbb947-a6d2-494f-b2dd-7cad9e76a7db%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/38fbb947-a6d2-494f-b2dd-7cad9e76a7db%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/290c1f31-c24b-4e5d-99a1-ebd81bb2f7f2%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/290c1f31-c24b-4e5d-99a1-ebd81bb2f7f2%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 on the web visit 
http

RE: Build Flow Plugin with Node Label Parameter Plugin

2015-03-03 Thread Ginga, Dick
Well, I don’t know how it chooses but I would not be surprised if there were no 
jobs running, that it would choose the same one first each time.

BTW, if your first build chooses one slave from a labeled group, you want to 
pass on to the next job the specific slave chosen. For example, you don’t care 
which Windows build machine the first job ends up on, but you want the other to 
follow suit.

def nodename=build.getBuiltOnStr()

out.println "This node is " + nodename

b = build ("second-job-core-builder",
BUILD_NODE:nodename)

Because what you want is the 2nd job to run an the specific slave that the 
first job selected. If you follow me?

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Katie Outram
Sent: Tuesday, March 03, 2015 2:32 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: Build Flow Plugin with Node Label Parameter Plugin

Thanks for this information!This is now farther along and my entire job is 
building on one slave (not on both).

I do have one other strange thing happening now.

I have two slaves configured in the node label parameter plugin, however 
everything is only executing on one slave, no mater how many builds I have 
running.   Do you have any idea as to why that is happening?


On Tuesday, March 3, 2015 at 10:47:03 AM UTC-5, rginga wrote:
I have had good success doing this but I pass the NODE_NAME as a specific 
parameter:

Build (“AnyBuild”,
BUILD_NODE:”BUILDHERE”)

Where BUILD_NODE is a NODE parameter

From: jenkins...@googlegroups.com 
[mailto:jenkins...@googlegroups.com] On Behalf Of Katie Outram
Sent: Tuesday, March 03, 2015 10:41 AM
To: jenkins...@googlegroups.com
Subject: Build Flow Plugin with Node Label Parameter Plugin

Has anyone had success using the Build Flow Plugin with the Node Label 
Parameter Plugin?

Right now I have a build flow that executes some of the steps on Machine A and 
other steps on Machine B, eventhough I am passing the NODE_NAME and NODE_LABELS 
to the children jobs via an Environment Variable file.

If you have done this, do you have any suggestions on how to make certain all 
of the builds that are part of the flow operate on either Machine A or Machine 
B and not both?
--
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-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/38fbb947-a6d2-494f-b2dd-7cad9e76a7db%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/38fbb947-a6d2-494f-b2dd-7cad9e76a7db%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/290c1f31-c24b-4e5d-99a1-ebd81bb2f7f2%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/290c1f31-c24b-4e5d-99a1-ebd81bb2f7f2%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E505EBD%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow Plugin with Node Label Parameter Plugin

2015-03-03 Thread Katie Outram
Thanks for this information!This is now farther along and my entire job 
is building on one slave (not on both).
 
I do have one other strange thing happening now.   
 
I have two slaves configured in the node label parameter plugin, however 
everything is only executing on one slave, no mater how many builds I have 
running.   Do you have any idea as to why that is happening?
 

On Tuesday, March 3, 2015 at 10:47:03 AM UTC-5, rginga wrote:

>  I have had good success doing this but I pass the NODE_NAME as a 
> specific parameter:
>
>  
>
> Build (“AnyBuild”,
>
> BUILD_NODE:”BUILDHERE”)
>
>  
>
> Where BUILD_NODE is a NODE parameter
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Katie Outram
> *Sent:* Tuesday, March 03, 2015 10:41 AM
> *To:* jenkins...@googlegroups.com 
> *Subject:* Build Flow Plugin with Node Label Parameter Plugin
>
>  
>  
> Has anyone had success using the Build Flow Plugin with the Node Label 
> Parameter Plugin?
>  
>  
>  
> Right now I have a build flow that executes some of the steps on Machine A 
> and other steps on Machine B, eventhough I am passing the NODE_NAME and 
> NODE_LABELS to the children jobs via an Environment Variable file.
>  
>  
>  
> If you have done this, do you have any suggestions on how to make certain 
> all of the builds that are part of the flow operate on either Machine A or 
> Machine B and not both?
>  
> -- 
> 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-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/38fbb947-a6d2-494f-b2dd-7cad9e76a7db%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/38fbb947-a6d2-494f-b2dd-7cad9e76a7db%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>  

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/290c1f31-c24b-4e5d-99a1-ebd81bb2f7f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Build Flow Plugin with Node Label Parameter Plugin

2015-03-03 Thread Ginga, Dick
I have had good success doing this but I pass the NODE_NAME as a specific 
parameter:

Build (“AnyBuild”,
BUILD_NODE:”BUILDHERE”)

Where BUILD_NODE is a NODE parameter

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Katie Outram
Sent: Tuesday, March 03, 2015 10:41 AM
To: jenkinsci-users@googlegroups.com
Subject: Build Flow Plugin with Node Label Parameter Plugin

Has anyone had success using the Build Flow Plugin with the Node Label 
Parameter Plugin?

Right now I have a build flow that executes some of the steps on Machine A and 
other steps on Machine B, eventhough I am passing the NODE_NAME and NODE_LABELS 
to the children jobs via an Environment Variable file.

If you have done this, do you have any suggestions on how to make certain all 
of the builds that are part of the flow operate on either Machine A or Machine 
B and not both?
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/38fbb947-a6d2-494f-b2dd-7cad9e76a7db%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/38fbb947-a6d2-494f-b2dd-7cad9e76a7db%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E502E65%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.


Build Flow Plugin with Node Label Parameter Plugin

2015-03-03 Thread Katie Outram
Has anyone had success using the Build Flow Plugin with the Node Label 
Parameter Plugin?
 
Right now I have a build flow that executes some of the steps on Machine A 
and other steps on Machine B, eventhough I am passing the NODE_NAME and 
NODE_LABELS to the children jobs via an Environment Variable file.
 
If you have done this, do you have any suggestions on how to make certain 
all of the builds that are part of the flow operate on either Machine A or 
Machine B and not both?

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/38fbb947-a6d2-494f-b2dd-7cad9e76a7db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clean up after build using build flow plugin

2015-02-27 Thread Katie Outram
The information below does work as long as the location can see the child 
directory that needs to be cleaned up.
 

On Wednesday, February 25, 2015 at 12:15:40 PM UTC-5, Katie Outram wrote:

> So what I have done so far is  
>  
> cleanup=bParent.build.properties.environment('GIT_TREE')
>   println "find ${cleanup} -maxdepth 1 -not -name images -type f -exec rm 
> -f {} +".execute().text
>  
> However, the 
>   println "find ${cleanup} -maxdepth 1 -not -name images -type f -exec rm 
> -f {} +".execute().text 
> does not execute within the build flow plugin that we are using.
>  
> I have done just a 
>   println "find ${cleanup} -maxdepth 1 -not -name images -type f -exec rm 
> -f {} +"  - and this line is correct, and I can run this manually and it 
> works
>  
>  
> Does anyone have suggestions on how to make this work using the build flow 
> plugin?
>  
>
> On Tuesday, February 24, 2015 at 9:43:34 AM UTC-5, Katie Outram wrote:
>
>> After the build completes, I need to clean up the workspace that was 
>> created during execution of the build.   The workspace is defined in our 
>> scripts that get executed during the build.
>>  
>> what this comes down to is I want to remove the contents of the directory 
>> (bParent.build.properties.environment('GIT_TREE')) except a specific 
>> child folder in that directory.
>>  
>> From bash I can do this by executing
>>  
>>   
>>
>> find  -mindepth 1 -type 
>> d ! -iname images -exec rm -rf {} \;
>>
>> where  is translated to 
>> my working path.
>>
>> However when I have tried to even print my command at the end of my build 
>> execution I end up with an error.
>>
>> What I have tried (along with some variations) at this point is:
>>
>> shell(find ${bParent.build.properties.environment['GIT_TREE']} -mindepth 
>> 1 -type d ! -iname images )  - this fails with 
>>
>> Script1.groovy: 44: unexpected token: $ @ line 44, column 15.
>>  shell( find ${bParent.build.properties.environment['GIT_TREE']} 
>> -mindepth 1 -type d ! -iname images
>>
>>  
>>  println (find bParent.build.properties.environment['GIT_TREE'] -mindepth 
>> 1 -type d ! -iname images).execute - this fails with 
>>
>> Script1.groovy: 42: unexpected token: bParent @ line 42, column 15.
>>println (find bParent.build.properties.environment['GIT_TREE'] 
>> -mindepth 1 -type d ! -iname images)
>>
>>  
>> a basic 
>>   println bParent.build.properties.environment['GIT_TREE']  gives me the 
>> directory I want to clean up
>>  
>>  
>> I don't want to put this in a separate shell script and build job to keep 
>> our build graph clean and to not confuse our developers.I want this to 
>> execute at the end of the current process.  Does anyone have any 
>> suggestions on how to handle this situation?  
>>   
>>  
>>
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3a61220c-5a73-4cbf-9f00-eb2cf8fa8661%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-26 Thread Jesse Glick
On Thursday, February 26, 2015 at 2:55:17 PM UTC-5, Baptiste Mathus wrote:
>
> why aren't both of these just class
>> libraries for the groovy plugin with an easy way to add new ones for
>> common high-level operations?
>>
>
> Many reasons already given I guess (suspendable, etc.)
>

Right, the requirement for durability alone totally precluded use of any 
Build Flow code. 

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/17dc58f3-2d98-417d-aa6f-c16b1c16a237%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-26 Thread Baptiste Mathus
2015-02-26 17:09 GMT+01:00 Les Mikesell :

> On Thu, Feb 26, 2015 at 8:41 AM, Jesse Glick  wrote:
> > On Thursday, February 12, 2015 at 10:43:28 AM UTC-5, LesMikesell wrote:
> >>
> >> With workflow, if you trigger another build, how do you access that
> >> other build object?  For example to find the build number so you can
> >> copy its artifacts into the workflow job.Or find the SVN_REVISION
> >> so you can trigger other builds of that same revision?
> >
> >
> > This area is still relatively weak in Workflow, so I plan to add more
> > features here.
> >
> > https://issues.jenkins-ci.org/browse/JENKINS-26100
> > https://issues.jenkins-ci.org/browse/JENKINS-25851
> >
>
> Is there some reason workflow isn't just a superset of build flow,
>

The explanation you ask for has already been given here and there on the ML.

IIRC, Build flow plugin has been deemed a dead-end by its creator (Nicolas
De Loof, IIRC). That always happens in our field.
But that experience has somehow also served as another feedback to create a
far broader-scoped plugin.


> adding control of workspaces and inlining?   What's the point of
> having open source if everyone starts over from scratch whenever they
> have a new idea anyway?   Or, why aren't both of these just class
> libraries for the groovy plugin with an easy way to add new ones for
> common high-level operations?
>

Many reasons already given I guess (suspendable, etc.)

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6HtahhrgKhzPNkzzzOU3NbRk0XAA_VME1PRFXnbEZtDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-26 Thread Les Mikesell
On Thu, Feb 26, 2015 at 8:41 AM, Jesse Glick  wrote:
> On Thursday, February 12, 2015 at 10:43:28 AM UTC-5, LesMikesell wrote:
>>
>> With workflow, if you trigger another build, how do you access that
>> other build object?  For example to find the build number so you can
>> copy its artifacts into the workflow job.Or find the SVN_REVISION
>> so you can trigger other builds of that same revision?
>
>
> This area is still relatively weak in Workflow, so I plan to add more
> features here.
>
> https://issues.jenkins-ci.org/browse/JENKINS-26100
> https://issues.jenkins-ci.org/browse/JENKINS-25851
>

Is there some reason workflow isn't just a superset of build flow,
adding control of workspaces and inlining?   What's the point of
having open source if everyone starts over from scratch whenever they
have a new idea anyway?   Or, why aren't both of these just class
libraries for the groovy plugin with an easy way to add new ones for
common high-level operations?

-- 
   Les Mikesell
 lesmikes...@gmail.com

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAOAgVpyTmU-0uZRfXzo47E%2B%3D-hD1zWUYzLrWyoFzTqrnOH1P5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-26 Thread Jesse Glick
On Thursday, February 12, 2015 at 10:43:28 AM UTC-5, LesMikesell wrote:
>
> With workflow, if you trigger another build, how do you access that 
> other build object?  For example to find the build number so you can 
> copy its artifacts into the workflow job.Or find the SVN_REVISION 
> so you can trigger other builds of that same revision?
>

This area is still relatively weak in Workflow, so I plan to add more 
features here.

https://issues.jenkins-ci.org/browse/JENKINS-26100
https://issues.jenkins-ci.org/browse/JENKINS-25851

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/42b21938-3c1d-4b0b-8333-d400c03521d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clean up after build using build flow plugin

2015-02-25 Thread Katie Outram
So what I have done so far is  
 
cleanup=bParent.build.properties.environment('GIT_TREE')
  println "find ${cleanup} -maxdepth 1 -not -name images -type f -exec rm 
-f {} +".execute().text
 
However, the 
  println "find ${cleanup} -maxdepth 1 -not -name images -type f -exec rm 
-f {} +".execute().text 
does not execute within the build flow plugin that we are using.
 
I have done just a 
  println "find ${cleanup} -maxdepth 1 -not -name images -type f -exec rm 
-f {} +"  - and this line is correct, and I can run this manually and it 
works
 
 
Does anyone have suggestions on how to make this work using the build flow 
plugin?
 

On Tuesday, February 24, 2015 at 9:43:34 AM UTC-5, Katie Outram wrote:

> After the build completes, I need to clean up the workspace that was 
> created during execution of the build.   The workspace is defined in our 
> scripts that get executed during the build.
>  
> what this comes down to is I want to remove the contents of the directory (
> bParent.build.properties.environment('GIT_TREE')) except a specific child 
> folder in that directory.
>  
> From bash I can do this by executing
>  
>   
>
> find  -mindepth 1 -type 
> d ! -iname images -exec rm -rf {} \;
>
> where  is translated to 
> my working path.
>
> However when I have tried to even print my command at the end of my build 
> execution I end up with an error.
>
> What I have tried (along with some variations) at this point is:
>
> shell(find ${bParent.build.properties.environment['GIT_TREE']} -mindepth 1 
> -type d ! -iname images )  - this fails with 
>
> Script1.groovy: 44: unexpected token: $ @ line 44, column 15.
>  shell( find ${bParent.build.properties.environment['GIT_TREE']} 
> -mindepth 1 -type d ! -iname images
>
>  
>  println (find bParent.build.properties.environment['GIT_TREE'] -mindepth 
> 1 -type d ! -iname images).execute - this fails with 
>
> Script1.groovy: 42: unexpected token: bParent @ line 42, column 15.
>println (find bParent.build.properties.environment['GIT_TREE'] 
> -mindepth 1 -type d ! -iname images)
>
>  
> a basic 
>   println bParent.build.properties.environment['GIT_TREE']  gives me the 
> directory I want to clean up
>  
>  
> I don't want to put this in a separate shell script and build job to keep 
> our build graph clean and to not confuse our developers.I want this to 
> execute at the end of the current process.  Does anyone have any 
> suggestions on how to handle this situation?  
>   
>  
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1a82fe1a-cf60-448a-b676-12767d50cda5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Clean up after build using build flow plugin

2015-02-25 Thread John Mellor
Ø  Either try to use the workspace cleanup plugin and/or some groovy step to do 
that and retrieve that variable?

We use git, so ymmv.  Rather than cleaning up at the end of a build, I just 
leave it all there and check the “Wipe out repository & force clone” selection 
in the “Additional Behaviours” section of “Source Code Management”.  That will 
checkout a whole new workspace every time the build starts, which I believe 
will have the same effect as what you are attempting.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Baptiste Mathus
Sent: February-25-15 01:04
To: jenkinsci-users@googlegroups.com
Subject: Re: Clean up after build using build flow plugin


Either try to use the workspace cleanup plugin and/or some groovy step to do 
that and retrieve that variable?
My 2 cents
Le 24 févr. 2015 15:43, "Katie Outram" 
mailto:katie.out...@gmail.com>> a écrit :
After the build completes, I need to clean up the workspace that was created 
during execution of the build.   The workspace is defined in our scripts that 
get executed during the build.

what this comes down to is I want to remove the contents of the directory 
(bParent.build.properties.environment('GIT_TREE')) except a specific child 
folder in that directory.

>From bash I can do this by executing


find  -mindepth 1 -type d ! 
-iname images -exec rm -rf {} \;
where  is translated to my 
working path.
However when I have tried to even print my command at the end of my build 
execution I end up with an error.
What I have tried (along with some variations) at this point is:
shell(find ${bParent.build.properties.environment['GIT_TREE']} -mindepth 1 
-type d ! -iname images )  - this fails with
Script1.groovy: 44: unexpected token: $ @ line 44, column 15.
 shell( find ${bParent.build.properties.environment['GIT_TREE']} -mindepth 
1 -type d ! -iname images

 println (find bParent.build.properties.environment['GIT_TREE'] -mindepth 1 
-type d ! -iname images).execute - this fails with
Script1.groovy: 42: unexpected token: bParent @ line 42, column 15.
   println (find bParent.build.properties.environment['GIT_TREE'] -mindepth 1 
-type d ! -iname images)

a basic
  println bParent.build.properties.environment['GIT_TREE']  gives me the 
directory I want to clean up


I don't want to put this in a separate shell script and build job to keep our 
build graph clean and to not confuse our developers.I want this to execute 
at the end of the current process.  Does anyone have any suggestions on how to 
handle this situation?


--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a51f8bc3-d319-4ca6-b04e-2fea74d542b5%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/a51f8bc3-d319-4ca6-b04e-2fea74d542b5%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6QZyvKqxk2cGrJYJ%2B05k68P4g7Dqcqg4zyR_XAnwO02A%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6QZyvKqxk2cGrJYJ%2B05k68P4g7Dqcqg4zyR_XAnwO02A%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8b77b64c886a43509f910ea69eecb26a%40mbx01colo01p.esentire.local.
For more options, visit https://groups.google.com/d/optout.


Re: Clean up after build using build flow plugin

2015-02-24 Thread Baptiste Mathus
Either try to use the workspace cleanup plugin and/or some groovy step to
do that and retrieve that variable?
My 2 cents
Le 24 févr. 2015 15:43, "Katie Outram"  a écrit :

> After the build completes, I need to clean up the workspace that was
> created during execution of the build.   The workspace is defined in our
> scripts that get executed during the build.
>
> what this comes down to is I want to remove the contents of the directory (
> bParent.build.properties.environment('GIT_TREE')) except a specific child
> folder in that directory.
>
> From bash I can do this by executing
>
>
>
> find  -mindepth 1 -type
> d ! -iname images -exec rm -rf {} \;
>
> where  is translated to
> my working path.
>
> However when I have tried to even print my command at the end of my build
> execution I end up with an error.
>
> What I have tried (along with some variations) at this point is:
>
> shell(find ${bParent.build.properties.environment['GIT_TREE']} -mindepth 1
> -type d ! -iname images )  - this fails with
>
> Script1.groovy: 44: unexpected token: $ @ line 44, column 15.
>  shell( find ${bParent.build.properties.environment['GIT_TREE']}
> -mindepth 1 -type d ! -iname images
>
>
>  println (find bParent.build.properties.environment['GIT_TREE'] -mindepth
> 1 -type d ! -iname images).execute - this fails with
>
> Script1.groovy: 42: unexpected token: bParent @ line 42, column 15.
>println (find bParent.build.properties.environment['GIT_TREE']
> -mindepth 1 -type d ! -iname images)
>
>
> a basic
>   println bParent.build.properties.environment['GIT_TREE']  gives me the
> directory I want to clean up
>
>
> I don't want to put this in a separate shell script and build job to keep
> our build graph clean and to not confuse our developers.I want this to
> execute at the end of the current process.  Does anyone have any
> suggestions on how to handle this situation?
>
>
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/a51f8bc3-d319-4ca6-b04e-2fea74d542b5%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6QZyvKqxk2cGrJYJ%2B05k68P4g7Dqcqg4zyR_XAnwO02A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Clean up after build using build flow plugin

2015-02-24 Thread Katie Outram
After the build completes, I need to clean up the workspace that was 
created during execution of the build.   The workspace is defined in our 
scripts that get executed during the build.
 
what this comes down to is I want to remove the contents of the directory (
bParent.build.properties.environment('GIT_TREE')) except a specific child 
folder in that directory.
 
>From bash I can do this by executing
 
  

find  -mindepth 1 -type d 
! -iname images -exec rm -rf {} \;

where  is translated to 
my working path.

However when I have tried to even print my command at the end of my build 
execution I end up with an error.

What I have tried (along with some variations) at this point is:

shell(find ${bParent.build.properties.environment['GIT_TREE']} -mindepth 1 
-type d ! -iname images )  - this fails with 

Script1.groovy: 44: unexpected token: $ @ line 44, column 15.
 shell( find ${bParent.build.properties.environment['GIT_TREE']} 
-mindepth 1 -type d ! -iname images

 
 println (find bParent.build.properties.environment['GIT_TREE'] -mindepth 1 
-type d ! -iname images).execute - this fails with 

Script1.groovy: 42: unexpected token: bParent @ line 42, column 15.
   println (find bParent.build.properties.environment['GIT_TREE'] -mindepth 
1 -type d ! -iname images)

 
a basic 
  println bParent.build.properties.environment['GIT_TREE']  gives me the 
directory I want to clean up
 
 
I don't want to put this in a separate shell script and build job to keep 
our build graph clean and to not confuse our developers.I want this to 
execute at the end of the current process.  Does anyone have any 
suggestions on how to handle this situation?  
  
 

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a51f8bc3-d319-4ca6-b04e-2fea74d542b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow Plugin questions on how to access defined values

2015-02-24 Thread Katie Outram
Thanks!
 
What worked for me was 
println bParent.build.properties.environment['GIT_TREE']  
 
The issue I had was due to the quotes and how I was using them.
 
Thanks for your help!

On Thursday, February 19, 2015 at 10:53:47 AM UTC-5, rginga wrote:

>  I’m thinking that this:
>
>  
>
> println “${TOOL_BRANCH}”  
>
>  
>
> needs to be this:
>
>  
>
> println params[‘TOOL_BRANCH’] 
>
>  
>
> what you cannot do is “Create” a new environment or parameter value inside 
> your build-flow and access that outside in a real post-build step.
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Katie Outram
> *Sent:* Thursday, February 19, 2015 10:43 AM
> *To:* jenkins...@googlegroups.com 
> *Subject:* Build Flow Plugin questions on how to access defined values
>
>  
>  
> I am new to the build-flow-plugin and have been asked to add some steps to 
> an existing job.   While I have a shell script that does this, it was 
> requested that I use the build-flow-plugin instead.   I am familiar with 
> Groovy as I use it to access information within jenkins, but the DSL/Groovy 
> build flow plugin confuses me.   Can someone explain to me how to grab a 
> value from Jenkins, or a value that is currently being used in existing 
> build-flow, and then go and use it in a later step after everything is 
> completed to execute some action.
>
> This is a reduced list of what is currently configured for the existing 
> build flow
>  
> bParent = build ("build_start", 
>  
>   TOOL_BRANCH : params['TOOL_BRANCH'], 
>  
>   TOOL_CHANGE_NUMBER : 
> params['TOOL_CHANGE_NUMBER']
>  
>   ) 
>  
> if (bParent.build.properties.environment['TOOL_CHANGE_MERGED'] == 'TRUE') {
>  
> return 0
>  
> } 
>  
> parallel (
>
> {build ("update_issue", EnvVarFile : 
> bParent.build.properties.environment['ENV_VAR_FILE']) },
>
> {build ("verify_commit_message", EnvVarFile : 
> bParent.build.properties.environment['ENV_VAR_FILE']) } 
>
> )
>  
> My ultimate goal is to clean up after the steps listed above (rm -rf 
> several directories but keep certain directories).   I have tried breaking 
> this down to just println a value from Jenkins, and everytime I do this, my 
> script fails.
>  
> These are the actions I have taken and I included a brief comment about 
> each action.
>
> println “${TOOL_BRANCH}”  - my parameter from above
>
> println “${BUILD_ID}”   - Jenkins parameter
>
> println “bParent.build.properties.environment['GIT_TREE']”  - this is the 
> directory I want to clean up from the ENV_VAR_FILE, however I can use a 
> combination of other values, to obtain the same result
>
> Whenever I try anything above or anything similar I get the following 
> error.   What am I missing?
>
> ERROR: Failed to run DSL Script
>
> groovy.lang.MissingPropertyException 
> <http://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingPropertyException>:
>  
> No such property: TOOL_BRANCH for class: Script1
>
> at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap&entity=method>
>
> at 
> org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty&entity=method>
>
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty&entity=method>
>
> at Script1.run(Script1.groovy:42) 
> <http://stacktrace.jenkins-ci.org/search/?query=Script1.run&entity=method>
>
> at Script1$run.call(Unknown Source)
>
> at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
>
> at Script1$run.call(Unknown Source)
>
> at 
> com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84)
>
> at 
> com.cloudbees.plugins.flow.FlowRun$FlyweightTaskRunnerImpl.run(FlowRun.java:219)
>
> at hudson.model.Run.execute(Run.java:1665)
>
> at com.cloudbees.plugins.flow.FlowRun.ru

RE: Build Flow Plugin questions on how to access defined values

2015-02-19 Thread Ginga, Dick
I’m thinking that this:

println “${TOOL_BRANCH}”

needs to be this:

println params[‘TOOL_BRANCH’]

what you cannot do is “Create” a new environment or parameter value inside your 
build-flow and access that outside in a real post-build step.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Katie Outram
Sent: Thursday, February 19, 2015 10:43 AM
To: jenkinsci-users@googlegroups.com
Subject: Build Flow Plugin questions on how to access defined values

I am new to the build-flow-plugin and have been asked to add some steps to an 
existing job.   While I have a shell script that does this, it was requested 
that I use the build-flow-plugin instead.   I am familiar with Groovy as I use 
it to access information within jenkins, but the DSL/Groovy build flow plugin 
confuses me.   Can someone explain to me how to grab a value from Jenkins, or a 
value that is currently being used in existing build-flow, and then go and use 
it in a later step after everything is completed to execute some action.
This is a reduced list of what is currently configured for the existing build 
flow
bParent = build ("build_start",
  TOOL_BRANCH : params['TOOL_BRANCH'],
  TOOL_CHANGE_NUMBER : params['TOOL_CHANGE_NUMBER']
  )
if (bParent.build.properties.environment['TOOL_CHANGE_MERGED'] == 'TRUE') {
return 0
}
parallel (
{build ("update_issue", EnvVarFile : 
bParent.build.properties.environment['ENV_VAR_FILE']) },
{build ("verify_commit_message", EnvVarFile : 
bParent.build.properties.environment['ENV_VAR_FILE']) }
)
My ultimate goal is to clean up after the steps listed above (rm -rf several 
directories but keep certain directories).   I have tried breaking this down to 
just println a value from Jenkins, and everytime I do this, my script fails.
These are the actions I have taken and I included a brief comment about each 
action.
println “${TOOL_BRANCH}”  - my parameter from above
println “${BUILD_ID}”   - Jenkins parameter
println “bParent.build.properties.environment['GIT_TREE']”  - this is the 
directory I want to clean up from the ENV_VAR_FILE, however I can use a 
combination of other values, to obtain the same result
Whenever I try anything above or anything similar I get the following error.   
What am I missing?
ERROR: Failed to run DSL Script
groovy.lang.MissingPropertyException<http://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingPropertyException>:
 No such property: TOOL_BRANCH for class: Script1
at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)<http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap&entity=method>
at 
org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)<http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty&entity=method>
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)<http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty&entity=method>
at 
Script1.run(Script1.groovy:42)<http://stacktrace.jenkins-ci.org/search/?query=Script1.run&entity=method>
at Script1$run.call(Unknown Source)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at Script1$run.call(Unknown Source)
at 
com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84)
at 
com.cloudbees.plugins.flow.FlowRun$FlyweightTaskRunnerImpl.run(FlowRun.java:219)
at hudson.model.Run.execute(Run.java:1665)
at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:155)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:246)
at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)

--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/eb6e8b8a-aaad-4e3a-90c0-75b32eae19f7%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/eb6e8b8a-aaad-4e3a-90c0-75b32eae19f7%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users&q

Build Flow Plugin questions on how to access defined values

2015-02-19 Thread Katie Outram
 

I am new to the build-flow-plugin and have been asked to add some steps to 
an existing job.   While I have a shell script that does this, it was 
requested that I use the build-flow-plugin instead.   I am familiar with 
Groovy as I use it to access information within jenkins, but the DSL/Groovy 
build flow plugin confuses me.   Can someone explain to me how to grab a 
value from Jenkins, or a value that is currently being used in existing 
build-flow, and then go and use it in a later step after everything is 
completed to execute some action.

This is a reduced list of what is currently configured for the existing 
build flow
bParent = build ("build_start", 
  TOOL_BRANCH : params['TOOL_BRANCH'], 
  TOOL_CHANGE_NUMBER : 
params['TOOL_CHANGE_NUMBER']
  ) 

if (bParent.build.properties.environment['TOOL_CHANGE_MERGED'] == 'TRUE') {
return 0
} 

parallel (

{build ("update_issue", EnvVarFile : 
bParent.build.properties.environment['ENV_VAR_FILE']) },
{build ("verify_commit_message", EnvVarFile : 
bParent.build.properties.environment['ENV_VAR_FILE']) } 

)
 My ultimate goal is to clean up after the steps listed above (rm -rf 
several directories but keep certain directories).   I have tried breaking 
this down to just println a value from Jenkins, and everytime I do this, my 
script fails.

These are the actions I have taken and I included a brief comment about 
each action.

println “${TOOL_BRANCH}”  - my parameter from above

println “${BUILD_ID}”   - Jenkins parameter

println “bParent.build.properties.environment['GIT_TREE']”  - this is the 
directory I want to clean up from the ENV_VAR_FILE, however I can use a 
combination of other values, to obtain the same result

Whenever I try anything above or anything similar I get the following 
error.   What am I missing?

ERROR: Failed to run DSL Script

*groovy.lang.MissingPropertyException* 
<http://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingPropertyException>:
 
No such property: TOOL_BRANCH for class: Script1

at 
*org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)*
 
<http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap&entity=method>

at 
*org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)*
 
<http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty&entity=method>

at 
*org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)*
 
<http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty&entity=method>

at *Script1.run(Script1.groovy:42)* 
<http://stacktrace.jenkins-ci.org/search/?query=Script1.run&entity=method>

at Script1$run.call(Unknown Source)

at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)

at Script1$run.call(Unknown Source)

at 
com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84)

at 
com.cloudbees.plugins.flow.FlowRun$FlyweightTaskRunnerImpl.run(FlowRun.java:219)

at hudson.model.Run.execute(Run.java:1665)

at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:155)

at 
hudson.model.ResourceController.execute(ResourceController.java:88)

at hudson.model.Executor.run(Executor.java:246)
at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)
 

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/eb6e8b8a-aaad-4e3a-90c0-75b32eae19f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Build Flow Plugin + Aggregator test Result - Is there any way to change job name in Aggregator Test Result page

2015-02-13 Thread vidhyadharan D


Hello Expects,


I have  BulidFlow like this


My job is parameterized for different tests. 

out.println 'Checking out & creating workspace and TestDrive T:'
build( "workspace_checkout" )
ignore(UNSTABLE) {
betaSuite =build ("suite_test", suiteToTest: 
"T:/TestLab/betaSuiteTests.xml" )
}
ignore(UNSTABLE){
availabilityTest =build ("suite_test", suiteToTest: 
"T:/TestLab/AvailabilityTest.xml" )
}

Test results are showing as per build job name. 
*Is there any way to change the job name in the aggregated test results?  *



Original post updated here : 
https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Test+Aggregator+Plugin?focusedCommentId=75891296&#comment-75891296

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c37ba57f-8faf-4ae5-b944-1f48a03ae2f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Generating parallel flow with Build Flow Plugin

2015-02-12 Thread Derek Goss
I can't upvote this enough, this does the trick. I was stuck for a while on 
building jobs in parallel based on a dynamically-populated job list.

Nice work.

On Monday, February 17, 2014 at 2:13:35 PM UTC-8, Stuart Rowe wrote:
>
> Hi Rodrigo, 
>
> BuildFlow's parallel function takes a list or map of closures - it will 
> execute each in parallel. 
>
> For your situation, you should iterate over your list of servers, creating 
> a 
> closure for each and adding it to list. This list can the be passed as an 
> argument to parallel(). 
>
> e.g. 
>
> // create a closure for the deploy job for each server 
> def serverDeployJobs = [] 
> for (server in servers) { 
> def deployJob = { 
> def jobParams = [:] 
> // set up params for deploy job on current server here... 
> 
> // call build 
> build(jobParams, DeployProjectName) 
> } 
> serverDeployJobs.add(deployJob) 
> } 
>
> // schedule deploy jobs in parallel 
> parallel(serverDeployJobs) 
>
> Hope that helps, 
> Stuart 
>
>
>
> -- 
> View this message in context: 
> http://jenkins-ci.361315.n4.nabble.com/Generating-parallel-flow-with-Build-Flow-Plugin-tp4687604p4691098.html
>  
> Sent from the Jenkins users mailing list archive at Nabble.com. 
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/149be8dc-fa38-4cc5-87e1-a198e6aad7b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-12 Thread Muhammad Faizan-Ul-Haq
Ahan,

I am going to look into workflow plugin after upgrading my jenkins to 
latest version

Thanks for answering guys.

Regards,


On Wednesday, February 11, 2015 at 5:11:28 PM UTC+1, Muhammad Faizan-Ul-Haq 
wrote:
>
> Hi,
>
> I have started using BUILD FLOW PLUGIN for job orchestration. 
> Now the DSL in my job configuration has become quite lengthy and it is 
> becoming difficult to maintain it there.
> I want to move it to my repository (SVN) and read it from file. 
>
> I understood that it is possible to read it form file but I am missing the 
> syntax ?
> What should be the file extension and how to invoke it.
>
> any help would be appreciated and sorry for posting such a naive question.
>
> Faizan
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4a58a2e7-64a1-43a4-8771-599ad31a066e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-12 Thread Les Mikesell
On Thu, Feb 12, 2015 at 6:35 AM, Baptiste Mathus  wrote:
> Why would you be sad? I know more the workflow plugin than the build flow,
> but seems to me you should be able to do the same things as easily with the
> workflow plugin, but it's just designed to be able to do much much more.
> With the workflow plugin you can also trigger another build.

With workflow, if you trigger another build, how do you access that
other build object?  For example to find the build number so you can
copy its artifacts into the workflow job.Or find the SVN_REVISION
so you can trigger other builds of that same revision?

-- 
Les Mikesell
  lesmikes...@gmail.com

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAOAgVpyiZtyJ3YPVX7BaPhp%3DTRDxLfqiMU%3DjD88MjScH-f9JWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-12 Thread Ginga, Dick
I know that this thread is wandering but I too and a little worried about the 
Build Flow plugin being replaced. I hope that I can just drop my Build Flow 
statements into a workflow step and they will run unaltered.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Baptiste Mathus
Sent: Thursday, February 12, 2015 7:36 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: reading DSL script from file for BUILD FLOW PLUGIN


Why would you be sad? I know more the workflow plugin than the build flow, but 
seems to me you should be able to do the same things as easily with the 
workflow plugin, but it's just designed to be able to do much much more. With 
the workflow plugin you can also trigger another build.
I'm actually pretty sad about this, the build flow plugin is pretty simple to 
use, especially for orchestrating multiple jobs which I don't want to pull into 
a single job.

On Wed Feb 11 2015 at 2:55:07 PM Baptiste Mathus 
mailto:m...@batmat.net>> wrote:

Build flow is on the way to deprecation. The workflow plugin is the one to use. 
It's standard with this one to use a scm URL for your workflow declaration 
(through combobox+textfield for your scm url and you're done).

Cheers
Le 11 févr. 2015 17:11, "Muhammad Faizan-Ul-Haq" 
mailto:faiza...@gmail.com>> a écrit :

Hi,

I have started using BUILD FLOW PLUGIN for job orchestration.
Now the DSL in my job configuration has become quite lengthy and it is becoming 
difficult to maintain it there.
I want to move it to my repository (SVN) and read it from file.

I understood that it is possible to read it form file but I am missing the 
syntax ?
What should be the file extension and how to invoke it.

any help would be appreciated and sorry for posting such a naive question.

Faizan
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ed6dc25c-b90b-4ae5-bcaf-e00743998c07%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/ed6dc25c-b90b-4ae5-bcaf-e00743998c07%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS69_8kMndkebHt_TyN3VPDeaD4O4t6_0KvMQ0-W8-zPVw%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS69_8kMndkebHt_TyN3VPDeaD4O4t6_0KvMQ0-W8-zPVw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcO8u%2ByG-hThcCKPUK1FxGfWkkwBxQyR%2B_eh%2B-ONnFRAQ%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcO8u%2ByG-hThcCKPUK1FxGfWkkwBxQyR%2B_eh%2B-ONnFRAQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5oqpZrep9z000Co_yUJoxC0N_Bt2jkdvR1nvf7Sn5b9Q%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5oqpZrep9z000Co_yUJoxC0N_Bt2jkdvR1nvf7Sn5b9Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F697A%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.


Re: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-12 Thread Baptiste Mathus
Why would you be sad? I know more the workflow plugin than the build flow,
but seems to me you should be able to do the same things as easily with the
workflow plugin, but it's just designed to be able to do much much more.
With the workflow plugin you can also trigger another build.
I'm actually pretty sad about this, the build flow plugin is pretty simple
to use, especially for orchestrating multiple jobs which I don't want to
pull into a single job.

On Wed Feb 11 2015 at 2:55:07 PM Baptiste Mathus  wrote:

> Build flow is on the way to deprecation. The workflow plugin is the one to
> use. It's standard with this one to use a scm URL for your workflow
> declaration (through combobox+textfield for your scm url and you're done).
>
> Cheers
> Le 11 févr. 2015 17:11, "Muhammad Faizan-Ul-Haq"  a
> écrit :
>
> Hi,
>>
>> I have started using BUILD FLOW PLUGIN for job orchestration.
>> Now the DSL in my job configuration has become quite lengthy and it is
>> becoming difficult to maintain it there.
>> I want to move it to my repository (SVN) and read it from file.
>>
>> I understood that it is possible to read it form file but I am missing
>> the syntax ?
>> What should be the file extension and how to invoke it.
>>
>> any help would be appreciated and sorry for posting such a naive question.
>>
>> Faizan
>>
>> --
>> 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 on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/ed6dc25c-b90b-4ae5-bcaf-e00743998c07%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/ed6dc25c-b90b-4ae5-bcaf-e00743998c07%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS69_8kMndkebHt_TyN3VPDeaD4O4t6_0KvMQ0-W8-zPVw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS69_8kMndkebHt_TyN3VPDeaD4O4t6_0KvMQ0-W8-zPVw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
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 on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcO8u%2ByG-hThcCKPUK1FxGfWkkwBxQyR%2B_eh%2B-ONnFRAQ%40mail.gmail.com
<https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcO8u%2ByG-hThcCKPUK1FxGfWkkwBxQyR%2B_eh%2B-ONnFRAQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5oqpZrep9z000Co_yUJoxC0N_Bt2jkdvR1nvf7Sn5b9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-11 Thread Slide
I'm actually pretty sad about this, the build flow plugin is pretty simple
to use, especially for orchestrating multiple jobs which I don't want to
pull into a single job.

On Wed Feb 11 2015 at 2:55:07 PM Baptiste Mathus  wrote:

> Build flow is on the way to deprecation. The workflow plugin is the one to
> use. It's standard with this one to use a scm URL for your workflow
> declaration (through combobox+textfield for your scm url and you're done).
>
> Cheers
> Le 11 févr. 2015 17:11, "Muhammad Faizan-Ul-Haq"  a
> écrit :
>
> Hi,
>>
>> I have started using BUILD FLOW PLUGIN for job orchestration.
>> Now the DSL in my job configuration has become quite lengthy and it is
>> becoming difficult to maintain it there.
>> I want to move it to my repository (SVN) and read it from file.
>>
>> I understood that it is possible to read it form file but I am missing
>> the syntax ?
>> What should be the file extension and how to invoke it.
>>
>> any help would be appreciated and sorry for posting such a naive question.
>>
>> Faizan
>>
>> --
>> 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 on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/ed6dc25c-b90b-4ae5-bcaf-e00743998c07%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/ed6dc25c-b90b-4ae5-bcaf-e00743998c07%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS69_8kMndkebHt_TyN3VPDeaD4O4t6_0KvMQ0-W8-zPVw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS69_8kMndkebHt_TyN3VPDeaD4O4t6_0KvMQ0-W8-zPVw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcO8u%2ByG-hThcCKPUK1FxGfWkkwBxQyR%2B_eh%2B-ONnFRAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: reading DSL script from file for BUILD FLOW PLUGIN

2015-02-11 Thread Baptiste Mathus
Build flow is on the way to deprecation. The workflow plugin is the one to
use. It's standard with this one to use a scm URL for your workflow
declaration (through combobox+textfield for your scm url and you're done).

Cheers
Le 11 févr. 2015 17:11, "Muhammad Faizan-Ul-Haq"  a
écrit :

> Hi,
>
> I have started using BUILD FLOW PLUGIN for job orchestration.
> Now the DSL in my job configuration has become quite lengthy and it is
> becoming difficult to maintain it there.
> I want to move it to my repository (SVN) and read it from file.
>
> I understood that it is possible to read it form file but I am missing the
> syntax ?
> What should be the file extension and how to invoke it.
>
> any help would be appreciated and sorry for posting such a naive question.
>
> Faizan
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/ed6dc25c-b90b-4ae5-bcaf-e00743998c07%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/ed6dc25c-b90b-4ae5-bcaf-e00743998c07%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS69_8kMndkebHt_TyN3VPDeaD4O4t6_0KvMQ0-W8-zPVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


reading DSL script from file for BUILD FLOW PLUGIN

2015-02-11 Thread Muhammad Faizan-Ul-Haq
Hi,

I have started using BUILD FLOW PLUGIN for job orchestration. 
Now the DSL in my job configuration has become quite lengthy and it is 
becoming difficult to maintain it there.
I want to move it to my repository (SVN) and read it from file. 

I understood that it is possible to read it form file but I am missing the 
syntax ?
What should be the file extension and how to invoke it.

any help would be appreciated and sorry for posting such a naive question.

Faizan

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ed6dc25c-b90b-4ae5-bcaf-e00743998c07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: workspace for a build flow plugin

2015-02-03 Thread Baptiste Mathus
BTW, even more if you're still in discovery mode, you should better use the
workflow-plugin. Build-flow-plugin is largely superseded by the previous
and likely to be deprecated.

Cheers
Le 3 févr. 2015 08:44, "Timur Batyrshin"  a écrit :

> Hi Dillon,
>
> You need to wrap your code inside node { ... } block.
> You can also use the ws { ... } block to explicitly allocate a workspace.
> Don't know yet what is the use case for this as node {} works fine for me.
>
> Regards,
> Timur
>
> вторник, 3 февраля 2015 г., 3:32:35 UTC+3 пользователь Dillon Hall написал:
>>
>> Hello all,
>>
>> I'm using a build flow plug in Jenkins.  However, I can't find the
>> workspace.  Any one have any idea's where it could be?  Thank you.
>>
>  --
> 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 on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/4727ac92-428f-4586-bb84-b61445c5fa44%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/4727ac92-428f-4586-bb84-b61445c5fa44%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4%2BkDPy2ohCdjGFOmhBL19QhVRMaeuNeWCJJ0fAJxfa4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: workspace for a build flow plugin

2015-02-02 Thread Timur Batyrshin
Hi Dillon,

You need to wrap your code inside node { ... } block.
You can also use the ws { ... } block to explicitly allocate a workspace. 
Don't know yet what is the use case for this as node {} works fine for me.

Regards,
Timur 

вторник, 3 февраля 2015 г., 3:32:35 UTC+3 пользователь Dillon Hall написал:
>
> Hello all,
>
> I'm using a build flow plug in Jenkins.  However, I can't find the 
> workspace.  Any one have any idea's where it could be?  Thank you.
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4727ac92-428f-4586-bb84-b61445c5fa44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


workspace for a build flow plugin

2015-02-02 Thread Dillon Hall
Hello all,

I'm using a build flow plug in Jenkins.  However, I can't find the 
workspace.  Any one have any idea's where it could be?  Thank you.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c07d7510-2b87-4b0d-846b-f6e0b9d48c84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[build flow plugin] NullPointerException when I try to wrap a build in a concurrent.Future

2015-01-27 Thread Dave Mills
I'm trying to implement node fail-over logic. Like the *retry* block, but 
each time on a different node.

So I supply a list of nodes, and use code like the following where the 
*node *parameter is a Nodes and Labels 
<https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin> 
parameter:


def failover(b, nodes) {
  guard {
b(nodes.head())
  } rescue {
recurse(b, nodes.tail())
  }
}

failover({ n -> build("_node", NODE:n) }, ["one", "two", "three", "four"
, "five"])


This works fine. The problem I'm having is that if one of the nodes is 
offline, it hangs forever. I've tried using the Build Timeout Plugin 
<https://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin> on that 
job, but it doesn't work, presumably because the job itself never starts.

So I'm trying to wrap the build in a concurrent.Future so that I can time 
it out from the DSL:


f = { build("_node", NODE:"one") } as Callable
executor = Executors.newSingleThreadExecutor()
future = executor.submit(f)
result = future.get(2, TimeUnit.SECONDS)
executor.shutdownNow()


This gives me a massive stack trace:

ERROR: Failed to run DSL Scriptjava.util.concurrent.ExecutionException 
<http://stacktrace.jenkins-ci.org/search?query=java.util.concurrent.ExecutionException>:
 java.lang.NullPointerException
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) 
<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask$Sync.innerGet&entity=method>
at java.util.concurrent.FutureTask.get(FutureTask.java:111) 
<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.get&entity=method>
at java_util_concurrent_Future$get.call(Unknown Source)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at Script1.run(Script1.groovy:15)



Caused by: java.lang.NullPointerException
at 
org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.acceptGetProperty(GetEffectivePojoPropertySite.java:51)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
at 
com.cloudbees.plugins.flow.FlowDelegate.statusCheck(FlowDSL.groovy:167)
at com.cloudbees.plugins.flow.FlowDelegate.build(FlowDSL.groovy:173)
at sun.reflect.GeneratedMethodAccessor5604.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)




Looking at the source code for the FlowDSL 
<https://github.com/jenkinsci/build-flow-plugin/blob/cbdf3fa9f0ad0acee7315a1cde5991c0234d06b7/src/main/groovy/com/cloudbees/plugins/flow/FlowDSL.groovy#L410>,
 
I see that when they do this sort of thing for the *parallel *block, they 
muck around with ACLs, Contexts, and FlowStates.

Before I start tunneling to the center of the earth, does anyone know how I 
can get this to work?

Thanks! 

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/19e9d718-d9c3-4766-95f4-6794a76166fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Build Flow plugin

2014-12-29 Thread Alex Brodov
I'm running a groovy script using the build flow plugin, the thing is that 
i'm getting erros each time one of the builds hasn't succeed when trying to 
run the next build, this is my script:

def RavenAppToBuild = params["project"] + "_Flow"
out.println "Building " + RavenAppToBuild
b = build(RavenAppToBuild, PlatformProject: params["PlatformProject"], 
PLATFORM_PATH: params["PLATFORM_PATH"])
def ProjectName= b.environment.get("JOB_NAME")
out.println "The application job name is : " + ProjectName
out.println "Updating the platdorm recommended link..."
build ("Update_Platform_Recommended_Link_Flow", PlatformProject: 
params["PlatformProject"] , NewBaseline: params["NewBaseline"], 
ProjectName: ProjectName )
out.println "Recommending ive baseline..."
build ("recommend_ive_baseline_Flow", PlatformProject: 
params["PlatformProject"], ProjectName: ProjectName  )
def chassisToRecommend = params["PlatformProject"] + 
"_Chassis_Recommended_Flow"
out.println "Building " + chassisToRecommend
build (chassisToRecommend, ProjectName: ProjectName)
out.println "Running release notes job"
build ("release_notes_Flow", PlatformProject: 
params["PlatformProject"], BaselineToCompare: params["BaselineToCompare"])

How can i control my this process, i'm not sure that using the build status 
(FAIL/SUCCESS) is quite efficient with a lot of conditions.
Is there any way to stop the procees if one of the builds is failing.

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5eb2b949-d3c8-4678-84c7-d06d6d57e0f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Build Flow Plugin Retry for Multi-Configuration Project

2014-11-21 Thread Andrew Zellman
Hi, I'm using a combination of the Build Flow Plugin, Matrix Project Plugin and 
Naginator Plugin. Specifically, I have some intermittent failures with my 
project, so I'd like to retry after failure (enter Naginator). The failures 
exist within a Multi-Configuration (Matrix) job, so I'd like to restart the 
failures, without starting the whole matrix over again.

Currently, when I try to implement this, the Naginator kicks in outside the 
scope of the Build Flow, so the flow status gets set to FAILURE even though the 
Naginator retries resulted in SUCCESS. Build Flow's retry functionality would 
re-run the entire matrix. Is there a way I can hold up the flow to wait and see 
what happens with the retried matrix jobs? Can I use guard-rescue for this?

Thanks,
Andrew

-- 
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 on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D094DF71.4AB35%25zellman%40adobe.com.
For more options, visit https://groups.google.com/d/optout.


RE: how to run all jobs in parallel using build flow plugin which are stored in string array

2014-11-11 Thread Rob Mandeville
I’ve dealt with this problem.  You generate a list of closures, and then run 
the list through parallel.  I’ve changed the constants to protect my employer, 
but the code goes like this:

Jobs_to_build = [ ‘foo’, ‘bar’, ‘baz’, ‘xyzzy’]
  jobs_to_build.each { String job_name ->
  a_closure = { ->
build(job_name,
PARAMETER_1: ‘You can add all the parameters you want here as key-value 
pairs’,
PARAMETER_2: ‘Or just use build(job_name) if they don’t take parameters’
)
  }
  build_closures.add(a_closure)
}
// Run all build jobs for this project/branch tuple in parallel
parallel(build_closures)
  }
}

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of niraj nandane
Sent: Tuesday, November 11, 2014 5:24 AM
To: jenkinsci-users@googlegroups.com
Subject: how to run all jobs in parallel using build flow plugin which are 
stored in string array

Hi,
I want to run the jobs in parallel which are stored in string array using 
build-flow plugin's parallel method.
Any help would be greatly appreciated.
Thanks,
Niraj
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.


Click 
here<https://www.mailcontrol.com/sr/tyvBwV!0D0bGX2PQPOmvUihCLhWP7Wj9hNznH0s0xN+HlCIE6hbY3M4YnGFX!boy+pKcdHXFkglAlVq5uz6AOA==>
 to report this email as spam.


This e-mail and the information, including any attachments it contains, are 
intended to be a confidential communication only to the person or entity to 
whom it is addressed and may contain information that is privileged. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error, please 
immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


how to run all jobs in parallel using build flow plugin which are stored in string array

2014-11-11 Thread niraj nandane
Hi,
I want to run the jobs in parallel which are stored in string array using 
build-flow plugin's parallel method.
Any help would be greatly appreciated.
Thanks,
Niraj

-- 
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.
For more options, visit https://groups.google.com/d/optout.


RE: Let Build Flow Plugin pass all parent parameters

2014-09-12 Thread James Nord (jnord)
Hi Eric,

You can just pass a map and all the parameters of the flow are defined in a 
variable "params"
build(params, "jobname")

/James


> -Original Message-
> From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-
> us...@googlegroups.com] On Behalf Of Eric Engel
> Sent: 12 September 2014 10:53
> To: 'jenkinsci-users@googlegroups.com'
> Subject: Let Build Flow Plugin pass all parent parameters
> 
> Hello Jenkins Users,
> 
> I am using the Build Flow Plugin https://wiki.jenkins-
> ci.org/display/JENKINS/Build+Flow+Plugin and want to start a build using all
> paramters of the parent job stored at the pre-defined params variable.
> At the plugin page the following example for a single parameter is given:
> 
> build("job1", parent_param1: params["param1"])
> 
> what I want is kind of:
> 
> build("job1", $parameterName:params[$parameterName])
> 
> So that all values in params are passed to the new job. From the plugin
> description it is not clear if this can be done without explicitly writing 
> down all
> parameters. It would be great if this is possible, because there may be
> changes in parameters I do not want to adjust manually every time.
> 
> Regards,
> Eric
> 
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Let Build Flow Plugin pass all parent parameters

2014-09-12 Thread Eric Engel
Hello Jenkins Users,

I am using the Build Flow Plugin 
https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin and want to start 
a build using all paramters of the parent job stored at the pre-defined params 
variable.
At the plugin page the following example for a single parameter is given:

build("job1", parent_param1: params["param1"])

what I want is kind of:

build("job1", $parameterName:params[$parameterName])

So that all values in params are passed to the new job. From the plugin 
description it is not clear if this can be done without explicitly writing down 
all parameters. It would be great if this is possible, because there may be 
changes in parameters I do not want to adjust manually every time.

Regards,
Eric

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow Plugin - issues with basic parallel build

2014-08-17 Thread Chris Meisinger
Please disregard, this appears to be an issue with Brakeman output step 
which was included via template.  It seems to have triggered the following 
bug.  https://issues.jenkins-ci.org/browse/JENKINS-22779

Thanks!  



On Sunday, August 17, 2014 11:40:26 PM UTC-5, Chris Meisinger wrote:
>
> Hi!
>
> I'm trying to do a proof of concept parallel build and running into an odd 
> issue.   Am I missing something here?
>
> The following DSL is what I'm using...
>
> 
> parallel (
> { build("test1") },
> { build("test2") }
> )
> 
>
> I have two jobs, test1/test2.  They are basic git clones and then a build 
> step that runs an 'exit 0' in the shell.  When run individually, they pass 
> as expected.  When the buildflow job is run, I see the following console 
> output, and the job never finishes, however both test1/test2 jobs complete 
> successfully.   It looks like it's waiting for 'test2' to finish, which it 
> does, but the signal gets lost somewhere.
>
> 
>
> Started by user Me
> parallel {
> Schedule job test1
> Schedule job test2
> Build test1 #7 started
> Build test2 #10 started
> test1 #7 completed 
> -
>
>
> Cloudbees buildflow plugin ver: 0.12
> Jenkins version: 1.575
>
>
> Thanks!
> Chris
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Build Flow Plugin - issues with basic parallel build

2014-08-17 Thread Chris Meisinger
Hi!

I'm trying to do a proof of concept parallel build and running into an odd 
issue.   Am I missing something here?

The following DSL is what I'm using...


parallel (
{ build("test1") },
{ build("test2") }
)


I have two jobs, test1/test2.  They are basic git clones and then a build 
step that runs an 'exit 0' in the shell.  When run individually, they pass 
as expected.  When the buildflow job is run, I see the following console 
output, and the job never finishes, however both test1/test2 jobs complete 
successfully.   It looks like it's waiting for 'test2' to finish, which it 
does, but the signal gets lost somewhere.



Started by user Me
parallel {
Schedule job test1
Schedule job test2
Build test1 #7 started
Build test2 #10 started
test1 #7 completed 
-


Cloudbees buildflow plugin ver: 0.12
Jenkins version: 1.575


Thanks!
Chris


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Generating parallel flow with Build Flow Plugin

2014-05-31 Thread Rodrigo García Peláez
Hi,

I forgot to reply to this. Just wanted to confirm your suggested solution 
works Stuart, thanks for that and sorry for late response!

Rodrigo

On Tuesday, 18 February 2014 17:33:35 UTC, Rodrigo García Peláez wrote:
>
> Hi Stuart,
>
> I'm not very familiar with groovy but I think it makes sense :)  
> I'll give that a go
>
> To be honest I hadn't tried again to sort this out because in the end I 
> created a fixed job to deploy to the servers I had to, but it will be 
> useful if I get it working for the future
>
> Thanks for your help! I'll post a reply here after I try it
> Regards
> Rodrigo
>
> On Monday, 17 February 2014 22:13:35 UTC, Stuart Rowe wrote:
>>
>> Hi Rodrigo, 
>>
>> BuildFlow's parallel function takes a list or map of closures - it will 
>> execute each in parallel. 
>>
>> For your situation, you should iterate over your list of servers, 
>> creating a 
>> closure for each and adding it to list. This list can the be passed as an 
>> argument to parallel(). 
>>
>> e.g. 
>>
>> // create a closure for the deploy job for each server 
>> def serverDeployJobs = [] 
>> for (server in servers) { 
>> def deployJob = { 
>> def jobParams = [:] 
>> // set up params for deploy job on current server here... 
>> 
>> // call build 
>> build(jobParams, DeployProjectName) 
>> } 
>> serverDeployJobs.add(deployJob) 
>> } 
>>
>> // schedule deploy jobs in parallel 
>> parallel(serverDeployJobs) 
>>
>> Hope that helps, 
>> Stuart 
>>
>>
>>
>> -- 
>> View this message in context: 
>> http://jenkins-ci.361315.n4.nabble.com/Generating-parallel-flow-with-Build-Flow-Plugin-tp4687604p4691098.html
>>  
>> Sent from the Jenkins users mailing list archive at Nabble.com. 
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow plugin and DSL editor

2014-05-27 Thread John Knottenbelt
Ah, ok. Thanks. Actually I find it quite usable after all for my simple
needs.


On Mon, May 26, 2014 at 6:59 PM, Daniel Beck  wrote:

> No. _That_ is the "DSL editor". The entire documentation is only on the
> wiki page of the plugin as well, last time I checked.
>
> On 26.05.2014, at 18:36, j...@introversion.co.uk wrote:
>
> > I was taking a look at the Build Flow plugin
> https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin and there
> was a reference there to a DSL editor:
> >
> > "Use the DSL editor to define the flow."
> >
> > In the job configuration I see a text box for editing the DSL, but I was
> wondering if there was a more interactive / helpful tool for editing
> Build-Flow DSL?
> >
> > --
> > 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.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/bERv7WaHbnw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow plugin and DSL editor

2014-05-26 Thread Daniel Beck
No. _That_ is the "DSL editor". The entire documentation is only on the wiki 
page of the plugin as well, last time I checked.

On 26.05.2014, at 18:36, j...@introversion.co.uk wrote:

> I was taking a look at the Build Flow plugin 
> https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin and there was a 
> reference there to a DSL editor:
> 
> "Use the DSL editor to define the flow."
> 
> In the job configuration I see a text box for editing the DSL, but I was 
> wondering if there was a more interactive / helpful tool for editing 
> Build-Flow DSL?
> 
> -- 
> 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.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Build Flow plugin and DSL editor

2014-05-26 Thread john
I was taking a look at the Build Flow 
plugin https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin and 
there was a reference there to a DSL editor:

"Use the DSL editor to define the flow."

In the job configuration I see a text box for editing the DSL, but I was 
wondering if there was a more interactive / helpful tool for editing 
Build-Flow DSL?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow Plugin and Folder Plugin issue

2014-05-12 Thread EK
I new it !!! CommonJobs/A  solved the issue , 
I was thinking that this is the only thing I didn't try , thank you very 
much for your quick reply and helpful information.

On Monday, May 12, 2014 12:34:59 AM UTC+3, Daniel Beck wrote:
>
>
> On 11.05.2014, at 22:30, EK > wrote: 
>
> > I tried to pass the path for the job "A" as follow "CommonJobs\A" - 
> (also tried "CommonJobs\\A") but with no luck ! 
>
> CommonJobs/A and /CommonJobs/A should both be valid values. Even 
> ../CommonJobs/A should work. 
>
> IOW, think less like a Windows user ;-) 
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow Plugin and Folder Plugin issue

2014-05-12 Thread EK
I new it !!! CommonJobs/A  solved the issue , 
I was thinking that this is the only thing I didn't try , thank you very 
much for your quick reply and helpful information.

On Sunday, May 11, 2014 11:30:55 PM UTC+3, EK wrote:
>
> Hi ...
>
> I am not able to call a job found in some other folder when running using 
> build flow, 
> my use case is as follow :
> 1. CommonJobs Folder which contain several jobs where "A" is a job among 
> them
> 2. Project1 Folder which contains several jobs and the build flow job.
>
> if the build flow job in Project1 call a jobs found directly under 
> Project1 Folder every thing works fine
> if the build flow job in Project1 Folder call a job found in jenkins 
> default jobs folder every thing works fine 
> if the build flow job in Project1 Folder call a job found in CommonJobs 
> Folder an exception of "JobNotFoundException" is thrown
> this occurs - I think - in the following location:
>
> build-flow-plugin/blob/master/src/main/groovy/com/cloudbees/plugins/flow/JobInvocation.groovy
> at lines 76-78 for some how build flow does not know to look for job in 
> other folders ( beside current and default).
>
> The question is did anyone else try to do this? is there any workaround to 
> make this work ?
> I tried to pass the path for the job "A" as follow "CommonJobs\A" - (also 
> tried "CommonJobs\\A") but with no luck !
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow Plugin and Folder Plugin issue

2014-05-11 Thread Daniel Beck

On 11.05.2014, at 22:30, EK  wrote:

> I tried to pass the path for the job "A" as follow "CommonJobs\A" - (also 
> tried "CommonJobs\\A") but with no luck !

CommonJobs/A and /CommonJobs/A should both be valid values. Even 
../CommonJobs/A should work.

IOW, think less like a Windows user ;-)

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Build Flow Plugin and Folder Plugin issue

2014-05-11 Thread EK
Hi ...

I am not able to call a job found in some other folder when running using 
build flow, 
my use case is as follow :
1. CommonJobs Folder which contain several jobs where "A" is a job among 
them
2. Project1 Folder which contains several jobs and the build flow job.

if the build flow job in Project1 call a jobs found directly under Project1 
Folder every thing works fine
if the build flow job in Project1 Folder call a job found in jenkins 
default jobs folder every thing works fine 
if the build flow job in Project1 Folder call a job found in CommonJobs 
Folder an exception of "JobNotFoundException" is thrown
this occurs - I think - in the following location:
build-flow-plugin/blob/master/src/main/groovy/com/cloudbees/plugins/flow/JobInvocation.groovy
at lines 76-78 for some how build flow does not know to look for job in 
other folders ( beside current and default).

The question is did anyone else try to do this? is there any workaround to 
make this work ?
I tried to pass the path for the job "A" as follow "CommonJobs\A" - (also 
tried "CommonJobs\\A") but with no luck !


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Build Flow Plugin firing rescues I don't think are needed

2014-04-10 Thread Tim Jackson
I just got back to this issue and re-read the Guard/Rescue description 
where it is defined as a Try/Finally  OK, my mistake, but I find the 
reality useless.  Why isn't there a Try/Catch-like construct?  If the Guard 
jobs fail, then run the Rescue jobs - if they don't fail, skip the Rescue. 
 The way it is set up is basically an ignore() with another build job 
listed below it.

On Thursday, March 6, 2014 9:40:43 AM UTC-7, Tim Jackson wrote:
>
> Given this flow:
>
> def Build = { "" + it + 
> "" }
>
> def BVT2Rescue = { 
> build("Restart_NRobotRemote", Test_Automation_Workstation: 
> BVT2.build.properties['builtOnStr'], WORKSPACE: BVT2.build.workspace)
> build("BVT_CR2600", BN2: Build(B2.build.number))
> }
>
> def BVT4Rescue = {
> build("Restart_NRobotRemote", Test_Automation_Workstation: 
> BVT4.build.properties['builtOnStr'], WORKSPACE: BVT4.build.workspace)
> build("BVT_CR4405", BN4: Build(B4.build.number))
> }
>
> def BVT8Rescue = {
> build("Restart_NRobotRemote", Test_Automation_Workstation: 
> BVT8.build.properties['builtOnStr'], WORKSPACE: BVT8.build.workspace)
> build("BVT_CR1000", BN8: Build(B8.build.number))
> }
> parallel(
> { B2 = build("Build_CR2600_Trunk")
> guard {
> retry 2, {
> BVT2 = build("BVT_CR2600", BN2: Build(B2.build.number))
> }
> } rescue { BVT2Rescue }
> },
> { B4 = build("Build_CR4400_Trunk")
> guard {
> retry 2, {
> BVT4 = build("BVT_CR4405", BN4: Build(B4.build.number))
> }
> } rescue { BVT4Rescue }
> },
> { B8 = build("Build_CR8000_Trunk")
> guard {
> retry 2, {
> BVT8 = build("BVT_CR1000", BN8: Build(B8.build.number))
> }
> } rescue { BVT8Rescue }
> }
> )
>
> build(
> "Publish_Artifacts", 
> BN2: Build(B2.build.number), 
> BN4: Build(B4.build.number),
> BN8: Build(B8.build.number)
> )
>
>
> I am getting these results.  I don't understand why the rescue is being 
> called at all - nothing is failing.  It is also confusing that the output 
> gets mixed together for the parallel jobs.
>
> Started by timer
> [EnvInject] - Loading node environment variables.
> Building on master in workspace 
> /var/lib/jenkins/jobs/Nightly_Build_All_Trunk/workspace
> No emails were triggered.
> parallel {
> Schedule job Build_CR8000_Trunk
> Schedule job Build_CR2600_Trunk
> Schedule job Build_CR4400_Trunk
> Build Build_CR4400_Trunk #121 started
> Build Build_CR8000_Trunk #141 started
> Build Build_CR2600_Trunk #124 started
> Build_CR8000_Trunk #141 completed 
> guard {
> retry (attempt 1) {
> Schedule job BVT_CR1000
> Build BVT_CR1000 #186 started
> Build_CR4400_Trunk #121 completed 
> guard {
> retry (attempt 1) {
> Schedule job BVT_CR4405
> Build_CR2600_Trunk #124 completed 
> guard {
> retry (attempt 1) {
> Schedule job BVT_CR2600
> Build BVT_CR4405 #155 started
> BVT_CR1000 #186 completed 
> }
> } rescue {
> Build BVT_CR2600 #112 started
> Schedule job Restart_NRobotRemote
> BVT_CR4405 #155 completed 
> }
> } rescue {
> Schedule job Restart_NRobotRemote
> BVT_CR2600 #112 completed 
> }
> } rescue {
> Build Restart_NRobotRemote #31 started
> Schedule job Restart_NRobotRemote
> Restart_NRobotRemote #31 completed 
> Schedule job BVT_CR1000
> Build Restart_NRobotRemote #32 started
> Restart_NRobotRemote #32 completed 
> Schedule job BVT_CR4405
> Build Restart_NRobotRemote #33 started
> Build BVT_CR1000 #187 started
> Restart_NRobotRemote #33 completed 
> Schedule job BVT_CR2600
> Build BVT_CR4405 #156 started
> BVT_CR1000 #187 completed 
> }
> Build BVT_CR2600 #113 started
> BVT_CR4405 #156 completed 
> }
> BVT_CR2600 #113 completed 
> }
> }
> No emails were triggered.
> Notifying upstream projects of job completion
> Finished: SUCCESS
>
> What am I missing?
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with Build Flow plugin 0.10 on Jenkins 1.532.1

2014-04-06 Thread Sascha Herrmann
Hi James,

thanks for you assistance.

Sascha

Am Freitag, 4. April 2014 22:49:15 UTC+2 schrieb teilo:
>
> Hi Sascha,
>
> Fix is at https://github.com/jenkinsci/build-flow-plugin/pull/42 if you 
> want to get the source and do a local build.
> Otherwise wait for the code to be accepted and either grab the latest 
> build from Jenkins, or wait for the release.
>
> /James
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   >