Dependency Graph builder.

2016-06-24 Thread Jacek Tomaka
Hi, 

 

TL;DR: 

Do you know if there is a plugin already that allows to schedule building of
jobs according to their dependencies? 

i.e. I have three jobs A, B and they both (conditionally) trigger build C.
Is there a plugin that given jobs A, B, C figures out the right build order
and schedules them in the correct order? In this case the correct order is
A, B should be run in parallel and once they are both done build C should be
triggered. 

 

FULL Problem description: 

 

I have two sets of build types: CI and FULL, CI builds are incremental
builds that get build when there is an SCM change. FULL builds happen
nightly and they include cleaning up workspaces. 

 

Once a CI build is finished I want it to trigger builds that depend on it. 

I do not want to trigger dependent builds when I am building FULL build.
This is because single build can have multiple dependencies, and I do not
want multiple FULL builds of the same job to be triggered. 

 

So my current solution is to configure conditional build triggering (if
BUILD_TYPE=CI then builds that depend on the current build are triggered). 

For nightly build I am using modified build flow plugin but I need to
specify dependencies again in build flow DSL. So currently I need to
maintain information about the dependencies in two places (build flow DSLs
and individual jobs configuration). I want to avoid this duplication and I
the information about the dependencies is already in Dependency Graph so I
need a piece of code that just schedules the builds in the correct order. 

 

I am happy to write a plugin to do this but this email is to ensure that it
is not there yet. Also some technical advice about if this should be a new
plugin or an extension to some other plugin would be appreciated .

 

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/041f01d1cea7%241a2ea5a0%244e8bf0e0%24%40poczta.fm.
For more options, visit https://groups.google.com/d/optout.


AWS Elastic Beanstalk No Downtime Upgrade /Cname swap.

2015-09-12 Thread Jacek Tomaka
Hi, 
Is there a plugin allowing to do CNAME swap upgrades of Elastic Beanstalk app?

Any plans to implement this feature in one of the following plugins?
https://wiki.jenkins-ci.org/display/JENKINS/AWS+Beanstalk+Publisher+Plugin
https://wiki.jenkins-ci.org/display/JENKINS/AWSEB+Deployment+Plugin

Any other Jenkins plugin tackling this?

Any success stories using maven plugin directly or other tools?
I see that the following maven plugin seems to support CNAME swap but it seems 
to talk in terms of .war files whereas we are deploying docker images in a zip. 
http://beanstalker.ingenieux.com.br/beanstalk-maven-plugin/usage.html

How are you dealing with this problem?

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/afjrjktgpaqeybcolxbg%40cxye.
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.


Re: warnings plugin. Filtering builds for trend graph and differences by parameter.

2015-05-24 Thread Jacek Tomaka

https://github.com/jenkinsci/analysis-core-plugin/pull/30

Użytkownik "Ullrich Hafner"  napisał(a): 
> Temat: Re: warnings plugin. Filtering builds for trend graph and differences 
> by parameter.
> Data: 2015-05-20 0:15
> Nadawca: "Ullrich Hafner" 
> Adresat: jenkinsci-users@googlegroups.com; 
> 
> No, this is not possible.
> 
> > Am 19.05.2015 um 14:42 schrieb Jacek Tomaka :
> > 
> > Hi,
> > Does warnings plugin allow to filter builds that appear on the warning 
> trends graph?
> > 
> > We do incremental builds during the day and only full builds (in clear 
> workspace) nightly.
> > 
> > These builds differ by value of parameter BUILD_TYPE. It is either FULL 
> or CI.
> > 
> > It makes little sense to include trend graphs for CI builds as they 
> build only changed files so the number of warnings drops significantly only 
> to raise again on the next full build.
> > 
> > Also the difference and information about fixed warnings should follow 
> the same rules.
> > 
> > Is there a way to configure the graph to include a build if a parameter 
> has certain value?
> > 
> > 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/iydxotysoncahilxhakk%40zyum.
> > 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/034CD5C3-9423-4FE3-8E5A-ED12915E40B1%40gmail.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/rxbfdfdzqnvoxijtwkxu%40dcur.
For more options, visit https://groups.google.com/d/optout.


warnings plugin. Filtering builds for trend graph and differences by parameter.

2015-05-19 Thread Jacek Tomaka
Hi, 
Does warnings plugin allow to filter builds that appear on the warning trends 
graph?

We do incremental builds during the day and only full builds (in clear 
workspace) nightly. 

These builds differ by value of parameter BUILD_TYPE. It is either FULL or CI. 

It makes little sense to include trend graphs for CI builds as they build only 
changed files so the number of warnings drops significantly only to raise again 
on the next full build. 

Also the difference and information about fixed warnings should follow the same 
rules. 

Is there a way to configure the graph to include a build if a parameter has 
certain value?

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


Re: 'inheritance-plugin' vs. matrix jobs

2015-05-19 Thread Jacek Tomaka
Łukasz, 
I am not sure what you want to achieve and i am not the expert on matrix jobs 
but i believe you might want to have a look at "mating" in inheritance project. 

But afaik you cannot mix inheritance and matrix type of jobs. 

--End of answer to question.

Mating allows you to configure classes of projects, let's say class A(with 
projects A1, A2 belonging to it) and B (with B1, B2) and then you can generate 
a matrix of projects : 
A1B1, A1B2, A2B1, A2B2. This works in a way that it generates a transient 
projects which inherit from their parents, so A1B1 inherits from A1 and B1. 

You can also configure compounds. This allows to define some parameters on 
project A1 and B1. But even the author admits that it is too inflexible for 
broader use.

But it has some cool features because you can have multiple children of the 
same parent if you specify variance. 

I am working to make it a bit more flexible so that you are able to: 
1. Configure assigned label, to be able to specify nodes a compound will run 
on. 
2. Change priorities of parameters, etc between two parents...
3. Update projects. 
4. Fixing "Full build flow" to get the view of the fully derived job as seen by 
Jenkins. 
The repository with this changes is here: 
https://github.com/J-cztery/jenkins-inheritance-plugin

The problem with that is that the original maintainer seems dormant and does 
not respond do emails, so i do not know if i am going towards the right 
direction. At least I hope it would work for our project. 

Our project has multiple branches we work on. Each branch has pretty much the 
same job configurations as previous(we build 4 msvc variances on Windows, a few 
jobs on Linux, OSX, iOS and for Android). It is probably around 10-20 projects 
in single branch. We build the projects on ~10 slaves. Branching is a headache 
currently because it requires copying so many projects and changing parameters 
in each of them. 

So what i want to achieve is to configure a class of project for a branch, that 
would define a few parameters that are specific for this branch and "mate" it 
with 10 other projects that would contain configuration for Windows, Linux, 
etc... 

Then branching a project would consist of copying the branch project, changing 
parameters on it, and the rest would happen automatically. 

But maybe I could achieve this using matrix projects? What are you doing to 
solve this kind of problems? Does matrix allow to configure on which node will 
a job run? Or set any other parameter?

Regards.
Jacek Tomaka

Użytkownik "Łukasz Kurek"  napisał(a): 
> Temat: 'inheritance-plugin' vs. matrix jobs
> Data: 2015-05-19 10:07
> Nadawca: "Łukasz Kurek" 
> Adresat: jenkinsci-users@googlegroups.com; 
> 
> Hello all,
> 
> It seems for me that Jenkins 'inheritance-plugin' does not support 
> matrix jobs ("Multi-configuration projects"). But maybe I'm missing 
> something. Can anyone confirm that?
> 
> -- 
> Wszebor
> 
> -- 
> 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/555AEF22.6070108%40parasoft.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/yfajjwblbqrfcxonpoch%40tysz.
For more options, visit https://groups.google.com/d/optout.