Ok thanks! I will look into stash. On Tuesday, 16 February 2016, James Nord <jn...@cloudbees.com> wrote:
> short answer no - it is not guaranteed. > > - you may have more than 1 executor on that node and you may have multiple > simultaneous runs of the same pipeline so they would get different > workspaces. > > There are also other reasons why you should not do that... > > If you need the files to be there look at the `stash` command. > > On Tuesday, February 16, 2016 at 5:31:04 PM UTC, Nick Witkowski wrote: >> >> Hi, >> >> I have a question regarding workflow or now the pipeline plugin. >> If I execute the following workflow job: >> >> node('A') { >> sh "pwd" >> } >> >> node('A') { >> sh "pwd" >> } >> >> Is the second execution guaranteed to execute on the same node and >> directory? >> >> What I really want to do is: >> parallel(build stuff in parallel) >> //no errors >> parallel(upload binaries to repo) >> >> Therefore I'd like to know if executing on a node always yields the same >> job directory. >> >> Thank you! >> >> Nick >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-users/ioWrnYV0hdI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > jenkinsci-users+unsubscr...@googlegroups.com > <javascript:_e(%7B%7D,'cvml','jenkinsci-users%2bunsubscr...@googlegroups.com');> > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/5cf121ba-d0f2-422e-b41a-0b9d6f48c968%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/5cf121ba-d0f2-422e-b41a-0b9d6f48c968%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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAFOKb_Qqn5F7-7%2Bb9Bw%2B0uS25UdO6vui2iviqerAZ_XMdOKM4g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.