Skip to content

Commit

Permalink
Merge pull request #3 from jbyibm/v1.0.6.1-branch
Browse files Browse the repository at this point in the history
Exclude output without a deployType
  • Loading branch information
dennis-behm authored Jun 24, 2020
2 parents d259d57 + aa1978b commit d39ffae
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions Pipeline/CreateUCDComponentVersion/dbb-ucd-packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -66,30 +66,19 @@ def dependencies = buildReport.getRecords().findAll{it.getType()==DefaultRecordF

// parse build report to find the build outputs to be deployed.
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 -> o.deployType != null
// }.isEmpty()
//}

// the following example finds all the build outputs with and without deployType
def executes= buildReport.getRecords().findAll{
it.getType()==DefaultRecordFactory.TYPE_EXECUTE
}


// the following example finds all the build output in *.LOAD data set
//def executes= buildReport.getRecords().findAll{
// it.getType()==DefaultRecordFactory.TYPE_EXECUTE &&
// !it.getOutputs().findAll{ o ->
// def (ds,member) = getDatasetName(o.dataset)
// return ds.endsWith(".LOAD")
// }.isEmpty()
// it.getType()==DefaultRecordFactory.TYPE_EXECUTE
//}


// the following example finds all the build outputs with a deployType
def executes= buildReport.getRecords().findAll{
it.getType()==DefaultRecordFactory.TYPE_EXECUTE &&
!it.getOutputs().findAll{ o ->
o.deployType != null
}.isEmpty()
}

executes.each { it.getOutputs().each { println(" ${it.dataset}, ${it.deployType}")}}

Expand Down Expand Up @@ -260,4 +249,4 @@ def parseInput(String[] cliArgs){
throw e
}
return properties
}
}

0 comments on commit d39ffae

Please sign in to comment.