0

my server has an extra drive for logging but Jenkins doesn't use it and fills up / instead.so i want to change it to use /log instead of /var/log.

i tried to go to Manage Jenkins => Global Properties => Environment variables but couldn't see Environment Variables to set or change path of jenkins logs.

Nakilon
  • 34,866
  • 14
  • 107
  • 142
shab
  • 989
  • 1
  • 15
  • 31
  • As an alternative, you could mount your extra drive to /var/log or even create a symbolic link to point back to it. – KeepCalmAndCarryOn Nov 04 '14 at 00:41
  • For changing the location of the job data folder (past builds): http://stackoverflow.com/questions/28034663/relocating-jenkins-home-on-windows-when-installed-as-service – Ohad Schneider Apr 04 '16 at 12:05

1 Answers1

2

Jenkins does not write to the log file. Instead Jenkins writes to its standard output. Probably some script you use to start Jenkins redirects the output to a file under /var/log.

Maybe this already gives you a hint on what you need to change. If not, please tell what is your operating system, how you installed Jenkins and how you start it. It is impossible to give detailed instructions without knowing more details of your environment.

sti
  • 11,047
  • 1
  • 27
  • 27