-
Notifications
You must be signed in to change notification settings - Fork 133
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
Packaging scripts update for zFS files #188
Packaging scripts update for zFS files #188
Conversation
Links to IBM DevOps Acceleration Program Solution Page (IBM#186)
Signed-off-by: Mathieu Dalbin <mathieu.dalbin@fr.ibm.com>
Signed-off-by: Mathieu Dalbin <mathieu.dalbin@fr.ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@M-DLB I have a couple of comments on the code around improving readability of it.
We should run a pretty print on both scripts as well, because the indentation seems to be inconsistent.
USSRecords.each{ USSRecord -> | ||
ArrayList<ArrayList> outputs = [] | ||
USSRecord.getAttribute("outputs").split(';').collectEntries { entry -> | ||
outputs += entry.replaceAll('\\[|\\]', '').split(',') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use the .add()
method to add to the output list. Difficult to read this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried, I couldn't find the right syntax with add()
. It's using the groovy style of coding, not the Java style.
Signed-off-by: Mathieu Dalbin <mathieu.dalbin@fr.ibm.com>
Signed-off-by: Mathieu Dalbin <mathieu.dalbin@fr.ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@M-DLB Thanks for the updates! And apologies, that I am late with my second review.
This PR adds support for zFS files in the two packaging scripts (UCDCreateComponentVersion and PackageBuildOutputs).
It leverages a specific record type introduced in zAppBuild to support zFS outputs from build (currently used in CRB, zCEE3 and zCEE2 processing). This USS_RECORD is an AnyTypeRecord implementation.