使用Maven和Jenkins部署到Weblogic [英] Deploy to weblogic using maven and jenkins

查看:450
本文介绍了使用Maven和Jenkins部署到Weblogic的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在项目中使用Jenkins在开发环境上进行构建和部署.我已经在jenkins中使用maven成功创建了一个战争文件,现在我必须创建另一个作业才能将该战争文件部署到weblogic服务器中.

We are using Jenkins in our project for build and deployment on dev environments. I have sucessfullly created a war file using maven in jenkins and now I have to create another job to deploy that war file into the weblogic server.

但是,我不知道在jenkins中配置此作业所需的步骤.仅仅调用一个maven deploy命令就可以了吗?有人可以告诉我使用jenkins将war文件部署到weblogic 10.3.5中需要采取什么步骤吗?

However, I am not aware of the required steps for configuring this job in jenkins. Will it be a matter of just invoking a maven deploy command? Can some one please tell me what will be the required steps to deploy a war file into weblogic 10.3.5 using jenkins?

edit:我们遵循的方法是在创建war文件之后,将将war文件创建到svn中,然后部署作业将从那里获取war文件并将其部署到weblogic中.有一件事做事比这更好吗?

edit : The approach we are following is after creating the war file we are cheking the war file created into svn and then the deploy job will take the war file from there and deploy it into the weblogic. Does some one thing there is a better way of doing thhings than this?

谢谢, 曼尼什(Manish)

Thanks, Manish

推荐答案

使用Jenkins的"Weblogic Deployer插件".这将为您完成部署.您所需要做的就是指定:

Use the Jenkins "Weblogic Deployer Plugin". This will do the deployment for you. All you need to do is specify:

  • 任务名称:为部署命名.例如. Webapp WL部署

  • Task Name: Give the deployment a name; Eg. Webapp WL Deployment

环境:指定要部署到的环境.确保您使用的是AdminServer端口号,而不是受管服务器端口号;默认值为7001

Environment: Specify the environment you are deploying to. Make sure you are using the AdminServer port number and not the Managed Server port number; default is 7001

名称:weblogic的名称应用于您的Web应用程序以显示已部署的组件

Name: The name weblogic should use for your webapp to display the deployed component

要部署的内置资源:Web应用程序的文件名.您也可以为此使用正则表达式

Built resource to deploy: The file name of your webapp. You can use also use regular expressions for this

目标:您要将Web应用程序部署到的受管服务器的名称

Targets: The name of the managed server you want to deploy the webapp to

Weblogic库:是否应将webapp部署为库组件.

Weblogic libraries: Whether or not the webapp should be deployed as a library component.

这篇关于使用Maven和Jenkins部署到Weblogic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆