Before deploying the WebLogic project through Jenkins, the server needs to install the WebLogic service in advance, WebLogic service build please Baidu or search my posts in the blog Park "WebLogic Service Build"
Sign in to Jenkins
http://IP or domain name: 8080
Build a "Build project" first
Left navigation bar, select "New Task", then enter a task name, customize, select the second item "Build a MAVEN project" and click OK.
General
Tick "Discard old build"
Tick "parametric build process" and click "Add Parameter"
SOURCE Management
Select "Git"
Note: The GIT key needs to be added to Jenkins in advance and has been introduced in the setup of Jenkins and is no longer explained here.
The default is 10 minutes, if the network almost, in 10 minutes has not been downloaded from git code, there will be a git connection timeout, the Git timeout time set to 60 minutes
Building triggers
Build Your Environment
Pre Steps
Click "Add pre-build Step" and select the following options "Execute Shell"
Build
Post Steps
Build settings
Post-build actions
Click on "Add post Build Steps" and select the following options "Archive the Artifacts", "Editable Email Notification"
When the above procedure is complete, click "Save".
Left navigation bar, select "New Task", then enter a task name, customize, select the first item "Build a free-flavor software project", click OK.
General
Source Management
Building triggers
Build your environment
Build
Project name note here that the name of the MAVEN project that was just built is here, and the war package to invoke build good project code is published to the remote server for decompression and deployment
Note: SSH server here to choose which server The war is published to remotely
Post-build actions
To complete the above steps, click "Save".
Build Package Method:
BRANCH: Enter the branch to build as prompted
Deploy Release method:
Jenkins+jdk+git+maven Continuous Integration Deployment WebLogic Instance Project