That seems like a bug to me if I've understood your phrasing correctly. I don't expect the stash from one build (for example, build number 14) to be included in later builds (for example, build number 15).
Within a single build (for example, build number 14), I would initially assume (until proven otherwise) that multiple references to write to a stash of the same name would append to a single stash. Mark Waite On Wed, Dec 27, 2017 at 10:44 AM red 888 <[email protected]> wrote: > Jenkins docs > <https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#code-stash-code-stash-some-files-to-be-used-later-in-the-build> > seem > ambiguous about this: > > Stashed files are not otherwise available and are generally discarded at > the end of the build. > > Soooo "generally" means what? They *should* get discarded by default? Do > I need to do something to have them discarded? > > > Because my stashed files aren't getting discarded. I run this in my job: > > stash name: "myZip", includes: "${differentEveryTime}.zip" > > > And every time the job runs it keeps adding the new zip file to the > "myZip" stash. > > I couldn't find anything in the docs about how to control this. I want > myZip to clobber everything previously or start empty each job run. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" 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-users/b879399c-2179-485c-bfdc-793769b70227%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/b879399c-2179-485c-bfdc-793769b70227%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/CAO49JtF-34WcWgL%2BUVHnzgLF75yD3vvyvph-q2v40mayQeWOvw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
