Hi Basanta ,
you can try custom implementation for parallal stage something like below.
def parallelConverge(instanceNames, targets, runPhase, customParam) {
def parallelNodes = [:]
for (instance in instanceNames) {
def moduleName = instance
else {
parallelNodes[moduleName] = this.getNodeForInstance(moduleName, targets)
}
}
parallel parallelNodes
}
and
Closure getNodeForInstance(instanceName, target) {
return {
try {
stageName = "Build_" + instanceName
stage(stageName) {
{
else {
sh "ant -DBUILD_MODULES='${instanceName}' -Dpatch.number='' -buildfile ${BUILD_ROOT}/build/build.xml " + target
}
}
}
catch (e) {
println 'exception occured at module' + instanceName + "exception occured is" + e
}
}
}
Parameterise method as per your requirements .
Hope it willl solve your problem