I need to change the location of log files of jenkins outside of jenkins home(installation) directory. I checked in jenkins.xml file but did not found any parameter to set.
Gone through some articles but they suggest to create symlinks.
Please let suggest if anyone already did it.
You can change the log location by changing the default location for the logs in %JENKINS_HOME%/jenkins.xml. By default the logs get stored at %JENKINS_HOME%/jenkins.out and %JENKINS_HOME%/jenkins.err.
Related
I do something like this
-javaagent:/usr/local/lib/perfino/perfino.jar=server=ybperfino,name=${HSTNAMESHORT}-${APPNAME},group=${YBENV}/${HSTNAMESHORT},logMBean=10,logFile=${LOG_DIR}/perfinologs/${HSTNAMESHORT}-${APPNAME}.log
basically I want the log files to be created in the log directory for the app not the home directory for the userid
but it seems like the log file isn't being created either with logfile argument or with out !
using java11 if that makes any difference.
Found the answer - I had a competing java agent that was loading before it.
After I changed the order both java agents worked.
i have an issue that Jenkins can't file location after build the apk. Even though i already set the file location in the right place see the picture. Can you help me?
write full path your .apk
this error is occured it can't found your file
I'm trying to set up a non-default URL as part of a puppet script that installs Jenkins. I know how to edit the value via the web UI but I can't seem to find where the value is actually stored. I've looked through the jenkins_home folder and apache and have yet to find it.
It stores it in a rather unlikely place: hudson.tasks.Mailer.xml in Jenkins home folder.
I'm on Jenkins 2.68 and it's stored at jenkins.model.JenkinsLocationConfiguration.xml under the Jenkins home folder.
If you don't find the URL when grepping Jenkins home, it's because you didn't saved the configuration. If not set, Jenkins fallback to request URL, without saving it on disk.
root#jenkins-dev:/var/lib/jenkins# grep jenkinsUrl *.xml
jenkins.model.JenkinsLocationConfiguration.xml: <jenkinsUrl>http://jenkins-dev.lxc/</jenkinsUrl>
root#jenkins-dev:/var/lib/jenkins#
The url can be found in the UI/web app under configuration > Jenkins Location; alternatively, login to your server and cat the contents at this location:
var/lib/jenkins/jenkins.model.JenkinsLocationConfiguration.xml
The file config.xml in the Jenkins home folder.
I did a grep for "http" in my Jenkins root directory led me to hudson.model.UpdateCenter.xml
I'm using Jenkins version 1.462
I want to change the location of the .grails directory. I have read about using working directories, but this is not what I want. For some reason my .grails directory gets put in the "Administrator" user folder instead of in my user folder. How do I correct this?
The grailsWorkDir property controls the location. You can change the value in the BuildConfig.groovy file.
See the Grails documentation section 5.5 Customising the build:
There is an issue with Java and the user.home property in Windows. See this SO question for more details:
Java user.home is being set to %userprofile% and not being resolved
On Windows 7, the values in the registry for "Shell Folders" AND "User Shell Folders" in the registry path "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" affect the user.home and in turn the location of the ".grails" folder.
Try to setup the user.home JVM arg correctly on windows environment
I've tried Googling and searching stackoverflow, but have yet to find a solution too my local development woes.
My User directory on Win7 is synced with a back-up service and I'd like to avoid syncing, but no matter what I've found so far will not change the Ivy cache location.
I've tried the following:
Setting GRAILS_OPTS env variable
Setting GRAILS_AGENT_CACHE_DIR env variable
Modifed my BuildConfig.groovy and entered System.setProperty "ivy.default.ivy.user.dir", "C:\\.ivy2"
I only recently started using IntelliJ, so I'm not sure if the IDE is the root cause.
Put this in your BuildConfig.groovy or ~/.grails/settings.groovy
grails.dependency.cache.dir = "C:\\.ivy2"