I assume that you have two build.xml files, one for doing the build, one for doing the "update modules" (I still have no idea what it means to update modules...). So one of you options is to combine the two build.xml files into one that does the tasks for both. How easy or difficult that is depends on the contents of the build.xml files - if you carefully crafted them, you should be able to copy the ""update modules" related tasks to the build.xml file that does the build.
If you want to, instead, add the "update modules" job to the existing build job in Jenkins, for the build job, click on the Configure link, then scroll down to the Build section or Post Steps section. Click on the button that allows you to add a build step or post-build step. The button should have a drop-down menu that gives options, select Invoke Ant, and then provide the details as to run the "update module" script. You might also have to add an additional source control URL in the Source Code Management section if the "update modules" build.xml file is not part of the same source code as the source code used for "build".
Another thought - Jenkins lets you specify that after finishing one job that another job should be run. This can be done on the Configure page, in the Post Build Actions section, just check the Build other projects option. So for the build job you could add running the "update modules" job as a post build action.
Joined: Aug 20, 2011
Thank you Peter for your nice explanation.
the problem was, we had a clearcase view and i need to update that view in the build job itself.
for this we our company has their own plugin and in that we has option update view that i selected.