For now I just use this script to delete the file after build
// do not store the secret files on master's disk
systemGroovyCommand('''
import java.io.File;
new File(build.getRootDir(), "fileParameters").deleteDir();
''')
On Mon, Aug 17, 2020 at 4:10 PM [email protected] <
[email protected]> wrote:
>
> Jenkins has file and password parameter types, but I'm looking for a
> combination of the two.
> [image: Screenshot_20200817_160840.png]
>
> My problem with file parameter is that the file is stored in the build and
> can be retrieved later.
> Is there some parameter implementation that would handle files without
> making them available later?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-dev/pr04Pf-p89U/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/265098f7-1269-4b9b-9dfe-4bb4094cf210n%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/265098f7-1269-4b9b-9dfe-4bb4094cf210n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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/CAGiELgoyB3NKv%2B-0GMtZSjYxi3cAOkGsS%2BVtvZjimW%2Bgrt%3Drgg%40mail.gmail.com.