-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat:[CI-15236]: Added IMAGE_TAR_PATH as output variable for the plugin. #132
base: main
Are you sure you want to change the base?
Conversation
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.
add a validation check to ensure the directory for plugin_tar_path exists before use by making use of filepath.Dir
, you can add this in if p.Build.TarPath != ""
also add some ut's to cover the same functionality for edge scenarios like in case of privileged and non-privileged k8s scenarios
|
||
if len(output) == 0 { | ||
return fmt.Errorf("no values to write to output file") | ||
} |
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.
if len(output) == 0 { | |
return fmt.Errorf("no values to write to output file") | |
} |
IMAGE_TAR_PATH is now accessible via a output variable and can also be used in STO steps as expression -
<+steps.STEP_ID.output.outputVariables.IMAGE_TAR_PATH>