SoFunction
Updated on 2025-03-03

Tomcat jenkins migration implementation steps

Recently, due to frequent errors in our test and production environment jenkins, we simply tried to do jenkins migration on Alibaba Cloud.

In Alibaba Cloud Jenkins installation mode, it is installed and deployed using tomcat

[root@k8s-master local]# ls
aegis  bin  cloudmonitor  etc  games  go  ilogtail  include  lib  lib64  libexec  sbin  share  src  tomcat  
[root@k8s-master local]# pwd
/usr/local
[root@k8s-master local]# 

Just throw it in /usr/local directory, then decompress it and enter the /usr/local/tomcat/bin directory

[root@k8s-master local]# cd tomcat/
[root@k8s-master tomcat]# ls
bin    conf    lib  LICENSE  logs  NOTICE    RELEASE-NOTES    temp  webapps  work
[root@k8s-master tomcat]# cd bin
[root@k8s-master bin]# ls
                                     
                                               
                                             
[root@k8s-master bin]# 

Execute the command to start tomcat

sh 

In this way, jenkins will get up, and the access address is ip:8080/jenkins

[root@k8s-master ~]# ls -la
total 1488644
dr-xr-x---. 12 root root       4096 Aug 19 15:01 .
dr-xr-xr-x. 22 root root       4096 Aug 19 14:54 ..
-rw-------   1 root root      35132 Aug 19 11:05 .bash_history
-rw-r--r--.  1 root root         18 Dec 29  2013 .bash_logout
-rw-r--r--.  1 root root        176 Dec 29  2013 .bash_profile
-rw-r--r--.  1 root root        289 Jun 20 19:24 .bashrc
drwx------   5 root root       4096 Aug 19 15:01 .cache
-rw-r--r--.  1 root root        100 Dec 29  2013 .cshrc
drwx------   2 root root       4096 Aug 19 15:50 .docker
-rw-r--r--   1 root root  149052534 Apr 21  2023 go1.19.
drwxr-x---   3 root root       4096 Aug 19 14:11 .groovy
drwxr-x---   3 root root       4096 Aug 19 14:01 .java
drwxr-x---  13 root root       4096 Aug 19 15:51 .jenkins
-rw-r--r--   1 root root 1375191040 Aug 19 10:29 
drwxr-xr-x   3 root root       4096 Jun 24 10:22 .kube
drwxr-xr-x   2 root root       4096 Nov 30  2021 .pip
drwxr-----   3 root root       4096 Jun 22 15:48 .pki
-rw-r--r--   1 root root        206 Jun 20 18:19 .
-rw-------   1 root root       1024 Jun 24 10:22 .rnd
drwx------   2 root root       4096 Jul 18 13:54 .ssh
-rw-r--r--.  1 root root        129 Dec 29  2013 .tcshrc
drwxr-xr-x   2 root root       4096 Jul 18 13:54 temp
-rw-------   1 root root       5417 Aug 19 15:01 .viminfo
[root@k8s-master ~]# 

Just decompress the packaged ones in the current directory, and cover them all

tar -xvf 

Then restart jenkins

This is the end of this article about tomcat jenkins migration. For more related tomcat jenkins migration content, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!