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

Expose filename from input step #133

Open
jglick opened this issue Dec 13, 2022 · 1 comment
Open

Expose filename from input step #133

jglick opened this issue Dec 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jglick
Copy link
Member

jglick commented Dec 13, 2022

#105 (comment)

If I recall correctly how #30 works,

or would record filename information but the input step will only call
@Override public Object getValue() {
return base64;
}
which ignores it; only applies to build parameters. Perhaps Base64FileParameterDefinition could have an option for getValue to expose a wrapper object or Map which encodes the Base64-encoded value, the raw value, and (when available) the filename.

@jglick jglick added the enhancement New feature or request label Dec 13, 2022
@marslo
Copy link

marslo commented Sep 28, 2023

workaround:

String getFilename( String paramName ) {
  env.getEnvironment().find{ "${paramName}_FILENAME" == it.key }?.value ?: ''
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants