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

Packaging scripts update for zFS files #188

Merged
merged 5 commits into from
Nov 23, 2023

Conversation

M-DLB
Copy link
Collaborator

@M-DLB M-DLB commented Nov 10, 2023

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.

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>
Copy link
Member

@dennis-behm dennis-behm left a 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(',')
Copy link
Member

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.

Copy link
Collaborator Author

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.

Pipeline/PackageBuildOutputs/PackageBuildOutputs.groovy Outdated Show resolved Hide resolved
Pipeline/PackageBuildOutputs/PackageBuildOutputs.groovy Outdated Show resolved Hide resolved
Signed-off-by: Mathieu Dalbin <mathieu.dalbin@fr.ibm.com>
Signed-off-by: Mathieu Dalbin <mathieu.dalbin@fr.ibm.com>
Copy link
Member

@dennis-behm dennis-behm left a 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.

@dennis-behm dennis-behm merged commit 2d41276 into IBM:main Nov 23, 2023
1 check passed
@M-DLB M-DLB deleted the Packaging-scripts-update-for-zFS-files branch April 3, 2024 12:32
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 this pull request may close these issues.

2 participants