@Mark: thx a lot for Your helpful considerations. I see the point now and agree, that another deploy step is the better choice. Even more, since I have better control then - in case the build fails ;-)
Am Freitag, 31. August 2018 13:38:23 UTC+2 schrieb Mark Waite: > > Jenkins generally prefers that workspaces are not hard-coded locations on > specific machines. Setting a workspace as a hard-coded location causes > problems like: > > - Only one build can run at a time (throughput limit) > - Only one machine can run the build (performance limit) > - Source repository is copied into the workspace (undesirable for > websites since it risks making your site history available through your > web > server accidentally) > - Accidental tool and file system dependencies are not detected > because the same machine and dir is used for every build > > Rather than using /srv/www/htdocs as a Jenkins workspace, you should > create a "deploy step" in your build process that copies from a working > directory (assigned by Jenkins automatically) to /srv/www/htdocs after all > the build and verification steps are complete. > > Mark Waite > > On Thu, Aug 30, 2018 at 9:43 AM Gorgonz ola <[email protected] > <javascript:>> wrote: > >> env: opensuse leap 15 >> >> well, I'm completely new in using jenkins. In fact I just did my first >> project, that only clones a specific git branch and thats it. >> >> This works fine and the files are copied to /var/lib/jenkins/workspace. >> >> But it is a website project, where I prefer /srv/www/htdocs/. >> >> Where do I have to set this alternative workspace? >> >> Any suggestions? >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/57e3040e-0c93-48df-b87b-cfcf8b5f6db6%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/57e3040e-0c93-48df-b87b-cfcf8b5f6db6%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/f71ec1a1-bdaf-42cf-bde5-67b9306d25db%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
