On Fri, Sep 25, 2020 at 2:06 AM Paul <[email protected]> wrote:
> Is there a way I can do this using Jelly?

Yes, though file uploads are tricky.
https://github.com/jenkinsci/plain-credentials-plugin/blob/83be2ca41c6c5e6f96eb6c9a47ebdd394b2a6dbc/src/main/java/org/jenkinsci/plugins/plaincredentials/impl/FileCredentialsImpl.java#L138-L164
+ 
https://github.com/jenkinsci/plain-credentials-plugin/blob/83be2ca41c6c5e6f96eb6c9a47ebdd394b2a6dbc/src/main/resources/org/jenkinsci/plugins/plaincredentials/impl/FileCredentialsImpl/credentials.jelly#L27-L47
may be helpful for hints.

Beware that there are a number of sorts of security vulnerabilities
you could introduce if you do not write this code very defensively. If
the tool is uploaded to the controller (Jenkins server), how does it
get to the agent where the build runs? Have you considered malicious
filenames? Etc.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0NjXHMnmdBXUukB%2B7do2Y3N9f0OsQEuTC1OjxCfEcKwA%40mail.gmail.com.

Reply via email to