前提:jenkins和springboot运行在同一台机器 springboot 通过winsw部署为服务 winsw 下载地址:https://github.com/kohsuke/winsw/releases winsw的使用比较简单,下载上面两个文件,和springboot项目jar包一个文件夹下. 将exe和xml修改成同样的名字 xml文件内容如下: <configuration> <!-- ID of the service. It should be unique accr
记录jenkins如何部署springboot项目(jar类型的) 一.首先需要先配置好jenkins的基本配置(jdk.maven--),可在系统管理-->>全局工具配置中进行配置. 配置ssh内容: 在系统管理->系统设置里,找到Publish over SSH(需要安装Publish over SSH插件) 2.然后就是配置部署项目的东西了. 构建环境中勾选Add timestamps to the Console Output,代码构建的过程中
安装步骤: 1.跳转连接https://pkg.jenkins.io/redhat-stable/下载安装包 2.安装命令: sudo rpm -ih jenkins-2.73.2-1.1.noarch.rpm 3.安装后启动(我在启动时会报错) Starting jenkins (via systemctl): Job for jenkins.service failed because the control process exited with error code. See "syst