首页 > 其他分享 >Jenkins Debian Packages

Jenkins Debian Packages

时间:2022-12-19 16:00:38浏览次数:70  
标签:-- war much jenkins Jenkins Packages root Debian

https://pkg.jenkins.io/debian/

install

This is the Debian package repository of Jenkins to automate installation and upgrade. To use this repository, first add the key to your system:

  curl -fsSL https://pkg.jenkins.io/debian/jenkins.io.key | sudo tee \
    /usr/share/keyrings/jenkins-keyring.asc > /dev/null

Then add a Jenkins apt repository entry:

  echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
    https://pkg.jenkins.io/debian binary/ | sudo tee \
    /etc/apt/sources.list.d/jenkins.list > /dev/null

Update your local package index, then finally install Jenkins:

  sudo apt-get update
  sudo apt-get install fontconfig openjdk-11-jre
  sudo apt-get install jenkins

The apt packages were signed using this key:

pub   rsa4096 2020-03-30 [SC] [expires: 2023-03-30]
      62A9756BFD780C377CF24BA8FCEF32E745F2C3D5
uid                      Jenkins Project 
sub   rsa4096 2020-03-30 [E] [expires: 2023-03-30]

upgrade

https://cloud.tencent.com/developer/article/1860268

下载更新版本

https://get.jenkins.io/war-stable/

https://get.jenkins.io/war/

确认安装路径

[主页]->[Manage Jenkins]->[System Information]


可以看到安装路径为 /usr/lib/jenkins/jenkins.war

停止服务

主页面会提示 Jenkins is going to shut down

然后在没有运行任务的情况下安全地停止 Jenkins 服务

[root@much tmp]# ps faux | grep jenkins  -i
root      3269  0.0  0.0 112648  1028 pts/0    S+   18:03   0:00  |       \_ grep --color=auto jenkins -i
jenkins   1630  2.7 17.6 3720188 714756 ?      Ssl  16:36   2:24 /etc/alternatives/java -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
[root@much tmp]# systemctl stop jenkins

备份和替换 WAR

[root@much tmp]# cd /usr/lib/jenkins/
[root@much jenkins]# mv jenkins.war jenkins.war.old.20180120
[root@much jenkins]# cp /root/jenkins.war .

启动服务

[root@much jenkins]# systemctl start jenkins
[root@much jenkins]# systemctl status jenkins

标签:--,war,much,jenkins,Jenkins,Packages,root,Debian
From: https://www.cnblogs.com/wl30564/p/16992307.html

相关文章

  • Jenkins使用笔记
    jenkins搭建部署分为三个步骤;第一步,jenkins安装第二步,插件安装和配置第三步,PushSSH第四步,部署项目准备环境:​​JDK:1.8:安装​​maven3.5‘安装Jenkins:2.83Centos:7.......
  • Jenkins实践指南-07-pipeline 内置基础步骤
    3.3pipeline内置基础步骤3.3.1pipeline中使用脚本  [作者:Surpassme]在实际项目,可能在某些步骤需要使用少量的脚本,这个时候可以使用script来实现,示例如下所示:pipe......
  • docker部署jenkins
    docker部署jenkins1、拉取镜像dockerpulljenkins/jenkins:jdk112、启动容器dockerrun--namejenkins-p8120:8080jenkins/jenkins:jdk113、一直下一步安装即......
  • jenkins
    [root@jenkinsjenkins]#catdocker-compose.ymlversion:'3.1'services:jenkins:#image:jenkins/jenkins:ltsimage:jenkins:2.340volumes:-/data/jenkins/d......
  • Android Studio工程目录介绍,Ubuntu/Debian 系统切换Java(JVM),修改Java版本,JAVA_HOME
    AndroidStudio工程目录介绍 du1@dePc:~/asProjs/sms$./gradlewcleanERROR:JAVA_HOMEissettoaninvaliddirectory:/home/du1/aset/as/sdkPleasesettheJAVA......
  • Jenkins 实战
    目录一.常用设置修改Jenkinsfile的路径修改时区允许匿名用户访问自动删除过期的流水线二.一些坑问题1.Errorfetchingremoterepo‘origin’causedby:...command......
  • The build restored NuGet packages. Build the project again to include these pack
    在VisualStudio2022中构建代码时出现此错误。严重性代码说明项目文件行禁止显示状态错误ThebuildrestoredNuGetpackages.Buildtheprojectagaintoin......
  • Jenkins实践指南-06-Jenkins pipeline 语法02
    3.2.6parameters  [作者:Surpassme]parameters又称参数化,通过参数化可以决定pipeline运行期的行为。pipeline主要支持两种形式的参数化parameters命令参数化和插件参......
  • Docker 安装 Jenkins
    拉去镜像:dockerpulljenkins/jenkins:latest运行镜像:dockerrun-d--name=jenkins-p12000:8080-p50000:50000-v/root/jenkins:/var/jenkins_homejenkins/jenkins......
  • 【实战】企业级持续集成(DevOps/TestOps自动化平台):git + gitlab + jenkins + pipeline
    为什么要写企业级持续集成(jenkins+pipeline+k8s)?目前网上自动化持续集成的资料很多,但基本上都是局限于jenkins自由风格的job,结合shell脚本来实现持续集成,这种方式的缺点......