In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.