Skip to content

Commit

Permalink
Add support for Copy_TO_PDS build report records in deploy.groovy (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
drbruce-git authored Aug 25, 2020
1 parent cf8acf7 commit 0867e2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Build/MortgageApplication/build/deploy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def dependencies = buildReport.getRecords().findAll{it.getType()==DefaultRecordF
println("** Find deployable outputs in the build report ")
// the following example finds all the build output with deployType set
def executes= buildReport.getRecords().findAll{
it.getType()==DefaultRecordFactory.TYPE_EXECUTE &&
!it.getOutputs().findAll{ o ->
(it.getType()==DefaultRecordFactory.TYPE_EXECUTE || it.getType()==DefaultRecordFactory.TYPE_COPY_TO_PDS) &&
!it.getOutputs().findAll{ o ->
o.deployType != null
}.isEmpty()
}
Expand Down Expand Up @@ -78,7 +78,8 @@ xml.manifest(type:"MANIFEST_SHIPLIST"){
resource(name:member, type:"PDSMember", deployType:output.deployType){
// add any custom properties needed
property(name:"buildcommand", value:execute.getCommand())
property(name:"buildoptions", value:execute.getOptions())
if (execute.getType()==DefaultRecordFactory.TYPE_EXECUTE)
property(name:"buildoptions", value:execute.getOptions())
// add source information
inputs(url : ""){
input(name : execute.getFile(), compileType : "Main")
Expand Down

0 comments on commit 0867e2e

Please sign in to comment.