• 周五. 4月 26th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

Jenkins+Jdk+Git+Maven持续集成部署Weblogic实例项目

admin

11月 28, 2021

 通过Jenkins部署Weblogic项目前,服务器需要提前安装好Weblogic服务,Weblogic服务搭建请百度或者在博客园搜索我的帖子“Weblogic服务搭建”

登录Jenkins

http://IP或域名:8080

先构建一个“Build项目”

左侧导航栏,选择“新建任务”,然后输入一个任务名称,自定义,选择第二项“构建一个maven项目”,点击确定。

General

勾选“丢弃旧的构建”

勾选“参数化构建过程”,点击“添加参数”

 

源码管理

 选择“Git”

注意:Git密钥需要提前在Jenkins添加好,在搭建jenkins时已经介绍过,这里不再作说明。

 

 默认是10分钟,如果网络差点的,在10分钟内还没从git下载代码,就会出现git连接超时,将Git超时时间设置在60分钟

 构建触发器

 构建环境

 Pre Steps

点击“Add pre-build step”,选择以下选项“Execute shell”

Build

 Post Steps

构建设置

构建后操作

点击“增加构建后操作步骤”,选择以下选项“Archive the artifacts”,“Editable Email Notification”

以上操作步骤完成后,点击“保存”。

左侧导航栏,选择“新建任务”,然后输入一个任务名称,自定义,选择第一项“构建一个自由风味的软件项目”,点击确定。

General

  

 

 源码管理

 构建触发器

构建环境

 

 构建

Project name这里要注意,这里填写的是刚刚构建的maven项目名称,要调用Build好的项目代码的war包发布到远程服务器上进行解压和部署

注意:SSH Server这里要选择war发布到远程哪台服务器上 

构建后操作

 完成以上操作步骤,点击“保存”。

build打包方法:

BRANCH:按提示输入要build的分支

deploy发布方法:

《Jenkins+Jdk+Git+Maven持续集成部署Weblogic实例项目》有2个想法
  1. EndoPump is a dietary supplement for men’s health. This supplement is said to improve the strength and stamina required by your body to perform various physical tasks. Because the supplement addresses issues associated with aging, it also provides support for a variety of other age-related issues that may affect the body. https://endopumpbuynow.us/

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注