In my project, I have 3 web applications, all depend on one all-commons project.
I built 4 jobs on my Jenkins server, all-commons_RELEASE , web-A_RELEASE , web-B_RELEASE and web-C_RELEASE . The role of these jobs is to create artifacts that are deployed on our Nexus. Then someone retrieves these artifacts on Nexus and deploys them on our dev / homologation servers.
What I want is to have one (optional?) Task that will run all 4 assemblies in sequential order. Thus, as soon as this task is completed, all RELEASE tasks will be completed. Of course, if one assembly fails, the process stops.
My first thought was to list web-A_RELEASE in the Build list of other Post-build all-commons_RELEASE action projects. Then web-B_RELEASE depends on web-A_RELEASE , etc.
However, I want to be able to run any of them separately, which is not possible if I indicate the dependence on projects. For example, if I manually started web-B_RELEASE , then web-B_RELEASE will be built, which is not what I want ...
Do you have an idea how I can achieve this, or a plugin that will help me do this?
Sincerely.
ps: Jenkins 1.430, and all the RELEASE jobs are free-style projects (they mix the Maven and bash commands).
source share