In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I encountered a problem when deploying jenkins. It can be said to modify your jenkins according to your own project requirements, because when you go to pull the code, the working directory of the default installation of jenkins, you can see is under .jenkins, the configuration of your installation of jenkins and the place where your pull code is compiled are all under this working directory. I deployed a shared storage like nfs. I wanted to put our project separately under this shared storage file and it was convenient for me to manage it, so I modified the configuration.
Modify directory location
My jenkins is a war package deployed under the tomact container
So I need to modify it under the bin directory of tomact and add parameters under the configuration of catalina.sh.
# OS... Add the configuration export JENKINS_HOME=/home/ Jekins1 [root @ master bin] # vim catalina.sh export JENKINS_HOME=/opt/k8s/projectOS specific support above. $var _ must_ be set to either true or false.cygwin=falsedarwin=falseos400=falsehpux=falsecase "`uname`" inCYGWIN*) cygwin=true;;Darwin*) darwin=true;;OS400*) os400=true;;HP-UX*) hpux=true;;esacresolve links-$0 may be a softlink
Modify / etc/profile
Modify the configuration before the web container starts
Add a configuration within the profile file
Export JENKINS_HOME=/opt/k8s/project
Just make the profile file effective.
Source / etc/profile
Then restart the war package under your tomcat.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.