Multiple projects, same commands

22 views
Skip to first unread message

tps800

unread,
Jun 19, 2015, 3:17:24 PM6/19/15
to jenkins...@googlegroups.com
Hi!

I have to build and test some projects. All these use the same commands. I've made them each into a project:

  1. checkout
  2. build1
  3. build2
  4. install1
  5. install2
  6. build3
  7. install3
  8. test

This has to be done multiple times on different hardware. At now I defined multiple projects doing the same:

  • LinuxA, ARM6
  • LinuxA, ARM7
  • LinuxA, i686
  • LinuxA, amd64
  • Solaris, amd64
  • Solaris, sparc
  • FreeBSD, amd64

Is it in any way possible to define a "Master Project" and call the subprojects with parameters and keep the logs destinct? Someting like:

  • LinuxA, ARM6
    1. checkout
    2. build1
    3. build2
    4. install1
    5. install2
    6. build3
    7. install3
    8. test
  • LinuxA, ARM7
    1. checkout
    2. build1
    3. build2
    4. install1
    5. install2
    6. build3
    7. install3
    8. test
  • LinuxA, i686
    1. checkout
    2. build1
    3. build2
    4. install1
    5. install2
    6. build3
    7. install3
    8. test
So changing configuration of say "1. checkout" would magically change configuration for all projects using this subproject?

Thanks for any hint or idea in advance!
Thomas

Jacek.Tomaka

unread,
Jun 19, 2015, 3:29:36 PM6/19/15
to jenkins...@googlegroups.com
Hi Thomas,
You might be interested in inheritance plugin.
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ac99d8cf-e139-4d17-8168-55ebdde50b57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Khai Do

unread,
Jul 15, 2015, 1:09:05 AM7/15/15
to jenkins...@googlegroups.com
You may want to take a look at the jenkins-job-builder (https://pypi.python.org/pypi/jenkins-job-builder) project.  It's specifically designed to simply your task.  We use it to manage ~6000 jobs.  Many of them have similar patterns just like your use case.  

Reply all
Reply to author
Forward
0 new messages