dongmou3615 2013-06-18 13:28
浏览 173

如何通过修改hudson.xml配置文件在Windows中设置上下文路径

There are so many question with this topics I could not found a proper answer,

I referred this link : http://wiki.hudson-ci.org/display/HUDSON/Running+Hudson+behind+Apache

So I want to run my jenkins behind apache, How can i do that ?

  • 写回答

1条回答 默认 最新

  • doulangtiao4508 2013-06-18 14:09
    关注

    As stated by Toby Jackson here

    You need to specify the context/prefix of the Jenkins instance, this can be done by modifying the Jenkins configuration as follows; Either, set the context path by modifying the jenkins.xml configuration file and adding --prefix=/jenkins (or similar) to the entry. Or Set the context path when using by adding --prefix=/jenkins to JENKINS_ARGS in /etc/default/jenkins (Ubuntu) or in an appropriate startup file.

    So, how to find these things...

    The Jenkins.xml file should be in the $JENKINS_HOME directory, I'm not sure if Mac OS has the "updatedb" and "locate " commands, but you could try doing updatedb && locate jenkins.xml

    Also, have a look in the startup scripts; /etc/init.d if installed from a package, or add the JENKINS_ARGS to the environment properties for the User running Jenkins (append to ~user/.profile) or the arguments for the container running Jenkins.

    You might have been confused when this said "hudson.xml" - Hudson is Jenkins' former name, and you appear to be using outdated documentation. The last time this was updated was Jan 27, 2011.

    use https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+apache instead.

    评论

报告相同问题?

悬赏问题

  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)