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

Enhance PackageBuildOutputs sample #100

Merged
merged 7 commits into from
Feb 28, 2022

Conversation

dennis-behm
Copy link
Member

@dennis-behm dennis-behm commented Feb 22, 2022

This is an enhancement of the current version of the PackageBuildOutputs. The changes propose to

  • Externalise the Map of last level qualifier to the DBB CopyMode into a property file.
  • Allows to include additional build outputs from USS to the tar file via cli --includeLogs option or through the property includeLogs the property file (Comma-separated).
  • Ability to configure the deployTypeFilter in the property file.
  • lists the tar file contents when running in verbose mode

Please note, that the cli options have changed. -prop/--propertyFile for the Artifactory properties should be replaced with -artifactory/--artifactoryPropertiesFile. Using -prop/--propertyFile is marked as deprecated and might be removed in the next version.

@dennis-behm
Copy link
Member Author

This PR addresses #97 and #99

Copy link
Member

@jbyibm jbyibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment.

Comment on lines +41 to +43
* -artifactory,
* --artifactoryPropertiesFile <propertyFile> Absolute path of a property file
* containing application specific
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wrong, or you are breaking the current behavior?
Can we keep the -prop,--propertyFile <propertyFile>with a deprecated notice?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now implemented. Resolved

Comment on lines 337 to 344
// read properties file
if (opts.properties){
def propertiesFile = new File(opts.properties)
if (propertiesFile.exists()){
propertiesFile.withInputStream { props.load(it) }
}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add an else block to read the default property file you shipped in your PR ? (to avoid the assertion later and add backward compatibility)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default packageBuildOutputs.properties file is tried to be read, if the --properties option was not passed.

Copy link
Member

@jbyibm jbyibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just left a comment.
Look good.

@dennis-behm dennis-behm merged commit 1f3aa16 into IBM:main Feb 28, 2022
@dennis-behm dennis-behm deleted the 97-packageBuildOutputs-update branch February 28, 2022 13:49
johnmnemec pushed a commit to johnmnemec/dbb that referenced this pull request Sep 6, 2022
* externalize copymodes and allow packaging of additional build logs

* Update readme

* implements IBM#97 to mask artifactory password

* Cli option -prop marked as deprecated

Signed-off-by: John Nemec <john.nemec@ibm.com>
johnmnemec pushed a commit to johnmnemec/dbb that referenced this pull request Sep 6, 2022
* externalize copymodes and allow packaging of additional build logs

* Update readme

* implements IBM#97 to mask artifactory password

* Cli option -prop marked as deprecated

Signed-off-by: John Nemec <john.nemec@ibm.com>
johnmnemec pushed a commit to johnmnemec/dbb that referenced this pull request Sep 9, 2022
* externalize copymodes and allow packaging of additional build logs

* Update readme

* implements IBM#97 to mask artifactory password

* Cli option -prop marked as deprecated

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 this pull request may close these issues.

2 participants