Jenkins LTS版本升级
时间: 2024-01-16 12:54:11 浏览: 206
要升级Jenkins的LTS版本,你可以按照以下步骤进行操作:
1. 首先,在目录"/var"下创建一个名为"jenkins"的文件夹,并进入该文件夹:
```shell
mkdir /var/jenkins
cd /var/jenkins
```
2. 使用wget命令下载最新的Jenkins LTS版本的war包。你可以访问"mirrors.jenkins.io/war"找到需要的版本,将"latest"替换为对应的版本号。例如,下载最新的LTS版本可以使用以下命令:
```shell
wget http://mirrors.jenkins.io/war/latest/jenkins.war
```
3. 退出当前的Docker容器并重启容器:
```shell
exit
docker restart 容器ID
```
4. 将下载的最新war包移动到"/usr/lib/jenkins"目录下:
```shell
mv /var/jenkins/jenkins.war /usr/lib/jenkins/
```
这样,你就完成了Jenkins的LTS版本升级。请确保替换命令中的"容器ID"为实际的Docker容器ID,并根据需要替换版本号。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [如何升级Jenkins版本](https://blog.csdn.net/XXX1238XGH/article/details/122218742)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [jenkins 版本升级](https://blog.csdn.net/m0_63132578/article/details/125305317)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文