Job Orchestration: Interdependent maven projects

12 views
Skip to first unread message

RM

unread,
Aug 17, 2015, 3:01:56 PM8/17/15
to Jenkins Users
Hello,

I have a set of interdependent maven projects and release jobs for each of them. I'd like to call them in a sequence and have the pom dependency sections updated intermittently.

To illustrate, lets assume i have three projects A > B > C (A depends on B depends on C)

I'd like to do the following:
  1. Trigger Job for Release 'A'
  2. Update 'B' POM for 'A' dependency
  3. Trigger Job for Release 'B'
  4. Update 'C' POM for 'B' dependency
  5. Trigger Job for Release 'C'
I want to be able to represent this into a single flow/orchestration. I would like to use the existing release jobs and the maven versions plugin to update pom dependency sections.

I looked @ Build Flow Plugin but it doesn't seem to give me the option of executing a shell script so i can perform steps 2 and 4

Here is what i cannot do (due to our limitations)
  • Implement A,B,C as maven modules instead of maven projects
  • Refactor the existing release jobs and make a single workflow style job to release A,B and C.I would really like to use my existing jobs. I just want to tie them in a workflow i described earlier
I am wondering how others have accomplished this because i don't think my problem is that unique. Any pointers would help

Regards,
Rahul
Reply all
Reply to author
Forward
0 new messages