Add {pom} variable for stage-site-java jobs 51/16951/2
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Mon, 2 Oct 2017 23:43:10 +0000 (16:43 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Mon, 2 Oct 2017 23:57:41 +0000 (16:57 -0700)
For versions:set step, if there is no pom.xml the job will
assume a root pom.xml.
This is not always valid like the case of portal/sdk.
Need to add the pom variable so that the job picks up the defined
pom.xml

Change-Id: Icafcb51fc22e8de819701968b3846278f4299e44
Issue-ID: CIMAN-97
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
jjb/global-templates-java.yaml

index 7ddd070..713ea2f 100644 (file)
     name: '{project-name}-{stream}-stage-site-java'
     project-type: freestyle
     node: '{build-node}'
+    pom: 'pom.xml'
 
     properties:
       - infra-properties:
           properties-file: version.properties
       - maven-target:
           maven-version: '{maven-version}'
+          pom: '{pom}'
           goals: 'versions:set versions:update-child-modules versions:commit -B'
           properties:
             - 'newVersion=${{release_version}}'