Deploy weblogic using maven and jenkins

We use Jenkins in our project to build and deploy in development environments. I successfully created a war file using maven in jenkins, and now I need to create another task to deploy this war file to the weblogic server.

However, I do not know about the necessary steps to configure this work in jenkins. Will it just be a call to the maven deploy command? Can someone please tell me what will be the steps to deploy a war file in weblogic 10.3.5 using jenkins?

edit: The approach we follow is to create a war file, which we write to the war file created in svn, and then the deployment task from there will output the war file and deploy it to weblogic. Is there any one thing that does better than that?

Thank you Manish

+6
source share
1 answer

Use the Jenkins Weblogic Deployment Plugin. This will do the deployment for you. All you have to do is specify:

  • Task Name: provide the name of the deployment; For instance. Webapp WL Deployment

  • Wednesday. Specify the environment in which you are deploying. Make sure that you are using the AdminServer port number and not the managed server port number; default is 7001

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

  • Embedded Deployment Resource: The file name of your web application. You can also use regular expressions for this.

  • Objectives: the name of the managed server on which you want to deploy webapp,

  • Weblogic libraries: whether to deploy Webapp as a component of the library.

+6
source

Source: https://habr.com/ru/post/944696/


All Articles