Some build tools use $HOME environment variable to determine path for storing settings or temp files. When starting Jenkins from root $HOME contains "/root" path. And when Jenkins executing such build tools they fail to write into "/root". Fix: This can be fixed by adding these lines to jenkins rc.d script before starting Jenkins: export HOME=${jenkins_home} cd $HOME
Responsible Changed From-To: freebsd-ports-bugs->lwhsu Over to maintainer (via the GNATS Auto Assign Tool)
Author: lwhsu Date: Fri Jul 5 19:15:48 2013 New Revision: 322350 URL: http://svnweb.freebsd.org/changeset/ports/322350 Log: - Update to 1.521 [1] [2] - Improve rc script, use `su -l` for execuing jenkins for fresh environment [3] PR: ports/178948 [1] ports/179456 [2] ports/178197 [3] Submitted by: Volodymyr Kostyrko <c.kworr@gmail.com> [1] skreuzer [2] Mikhail Krasilnikov <mk@dvaslona.ru> [3] Modified: head/UIDs head/devel/jenkins/Makefile head/devel/jenkins/distinfo head/devel/jenkins/files/jenkins.in Modified: head/UIDs ============================================================================== --- head/UIDs Fri Jul 5 19:12:56 2013 (r322349) +++ head/UIDs Fri Jul 5 19:15:48 2013 (r322350) @@ -196,7 +196,7 @@ bnetd:*:700:700::0:0:Bnetd user:/nonexis bopm:*:717:717::0:0:Blitzed Open Proxy Monitor:/nonexistent:/bin/sh openxpki:*:777:777::0:0:OpenXPKI Owner:/nonexistent:/usr/sbin/nologin puppet:*:814:814::0:0:Puppet Daemon:/nonexistent:/usr/sbin/nologin -jenkins:*:818:818::0:0:Jenkins CI:/usr/local/jenkins:/usr/sbin/nologin +jenkins:*:818:818::0:0:Jenkins CI:/usr/local/jenkins:/bin/sh openacs:*:820:820::0:0:OpenACS Daemon User:/nonexistent:/usr/sbin/nologin dotlrn:*:821:821::0:0:.LRN Daemon User:/nonexistent:/usr/sbin/nologin polw:*:825:825::0:0:Policyd-weight Cache Owner:/nonexistent:/sbin/nologin Modified: head/devel/jenkins/Makefile ============================================================================== --- head/devel/jenkins/Makefile Fri Jul 5 19:12:56 2013 (r322349) +++ head/devel/jenkins/Makefile Fri Jul 5 19:15:48 2013 (r322350) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= jenkins -PORTVERSION= 1.514 +PORTVERSION= 1.521 CATEGORIES= devel java MASTER_SITES= http://mirrors.jenkins-ci.org/war/${PORTVERSION}/ DISTNAME= jenkins Modified: head/devel/jenkins/distinfo ============================================================================== --- head/devel/jenkins/distinfo Fri Jul 5 19:12:56 2013 (r322349) +++ head/devel/jenkins/distinfo Fri Jul 5 19:15:48 2013 (r322350) @@ -1,2 +1,2 @@ -SHA256 (jenkins/1.514/jenkins.war) = a1511e3926dbead09f9f4cf7a3f81e0953a415e070d800c04755ae8efd056475 -SIZE (jenkins/1.514/jenkins.war) = 56824686 +SHA256 (jenkins/1.521/jenkins.war) = a48d8f82de2c96e09977f22b1bbb024c13066b2e75e734a0c5aa1cf980ade88c +SIZE (jenkins/1.521/jenkins.war) = 61308761 Modified: head/devel/jenkins/files/jenkins.in ============================================================================== --- head/devel/jenkins/files/jenkins.in Fri Jul 5 19:12:56 2013 (r322349) +++ head/devel/jenkins/files/jenkins.in Fri Jul 5 19:15:48 2013 (r322350) @@ -64,6 +64,7 @@ command_args="-p ${pidfile} ${java_cmd} required_files="${java_cmd}" start_precmd="jenkins_prestart" +start_cmd="jenkins_command start" jenkins_prestart() { if [ ! -f "${jenkins_log_file}" ]; then @@ -79,4 +80,13 @@ jenkins_prestart() { fi } +jenkins_command() +{ + check_startmsgs && echo "Starting ${name}." + su -l ${jenkins_user} -c "exec ${command} ${command_args} ${rc_arg}" +} + +export HOME=${jenkins_home} +cd ${HOME} + run_rc_command "$1" _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!