Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UCD Package Script Duplicate Input Record #87

Closed
dennis-behm opened this issue Aug 10, 2021 · 0 comments · Fixed by #88
Closed

UCD Package Script Duplicate Input Record #87

dennis-behm opened this issue Aug 10, 2021 · 0 comments · Fixed by #88

Comments

@dennis-behm
Copy link
Member

I am facing an issue with a duplicate INPUT record , leading BUZTOOL.sh to fail with:

Shiplist pre-processing error: Input 'App-EPSM/link/epsmlist.lnk' duplicated in container JENKINS.PROG.EPSM.S4.LOAD.

The below referenced section needs to make sure that the Main Input is not referenced a second time:

inputUrl = (buildResultProperties != null && properties.git_treeURL_prefix && githash!="") ? "${properties.git_treeURL_prefix}/${githash}/"+ execute.getFile() : ""
inputs(url : "${inputUrl}"){
input(name : execute.getFile(), compileType : "Main", url : inputUrl)
// dependencies
def dependencySets = buildReport.getRecords().findAll{
it.getType()==DefaultRecordFactory.TYPE_DEPENDENCY_SET && it.getFile()==execute.getFile()
};
Set<String> dependencyCache = new HashSet<String>()
dependencySets.unique().each{
it.getAllDependencies().each{
if (it.isResolved() && !dependencyCache.contains(it.getLname())){
def displayName = it.getFile() ? it.getFile() : it.getLname()
def dependencyUrl =""
if (it.getFile() && (it.getCategory()=="COPY"||it.getCategory()=="SQL INCLUDE")) dependencyUrl = (buildResultProperties != null && properties.git_treeURL_prefix && githash!="") ? "${properties.git_treeURL_prefix}/${githash}/"+ it.getFile() : ""
input(name : displayName , compileType : it.getCategory(), url : dependencyUrl)
dependencyCache.add(it.getLname())
}
}
}
}
}
}
}
}
}

johnmnemec pushed a commit to johnmnemec/dbb that referenced this issue Sep 6, 2022
fixes IBM#87

Signed-off-by: John Nemec <john.nemec@ibm.com>
johnmnemec pushed a commit to johnmnemec/dbb that referenced this issue Sep 6, 2022
fixes IBM#87

Signed-off-by: John Nemec <john.nemec@ibm.com>
johnmnemec pushed a commit to johnmnemec/dbb that referenced this issue Sep 9, 2022
fixes IBM#87

Signed-off-by: John Nemec <john.nemec@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant