Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
WebLogicDeployerPlugin
CreadoporRaphaelCHAUMIER,modificadoporltimavezenago03,2012
Estaviendounaversinantigua(v./display/JENKINS/WebLogic+Deployer+Plugin)deestapgina.
verdiferencias verelhistorialdelapgina
PluginInformation
ThisplugindeployartifactsbuiltonJenkinstoaweblogictarget(managedserver,cluster...)asanapplicationoralibrarycomponent.
Prerequisites
Thispluginisonlyapplicableformaven2/3Job.
Thispluginonlydeployear,war,jarartifacts.
GettingStarted
Beforeuseit,Thepluginhastobeconfigured.Itconsistsofloadingtheweblogictargetconfiguration,chosingtheJDKversiontoexecuteadeploymenttaskandaddingthe
weblogiclibrarypath(i.e/pathtojar/weblogic.jaror/pathtojar/wlfullclient.jarforWL10.3).
Configuration
SystemConfiguration
Jdk:thejdkusedtorundeploymenttask.
Classpath:weblogic.jarfilepathloadedfordeployment.IfnovalueissetbuttheWL_HOMEenvironmentvariableisfound,thepluginwilltrytoload
%WL_HOME%/server/lib/weblogic.jar.
JavaOptions:thejavaoptionsusedbythejavaprocesswheninvokingtheweblogiclibrary.BydefaultitwillbeXms256MXmx256M.
Listedexclusion:thebuiltartifactsnamepatternexcludedfrompostbuilddeploymentaction.
Desactiver:Ifchecked,thepluginexecutionisdisabled.
Fichierdeconfiguration:xmlfilepathcontainingdeploymentstargets.Ithastobe[http://host:port/plugin/weblogicdeployerplugin/defaultConfig/plugin
configuration.xsd]schemacompliant.Novalidationcurrentlyperformed.Thefilecanbeaddedthroughalocalpath(/usr/users/.../pluginconfiguration.xml)oraremote
https://wiki.jenkinsci.org/pages/viewpage.action?pageId=63144531 1/3
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
URL(http://xxxxxxxxx/pluginconfiguration.xml) 
configuration.xml
<?xmlversion="1.0"encoding="UTF8"?>
<configxmlns="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin"
xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
xsi:schemaLocation="http://org.jenkinsci.plugins/WeblogicDeploymentPluginpluginconfiguration.xsd">
<weblogictargets>
<weblogictarget>
<name>_name_</name>
<host>_weblogic.admin.server.host_</host>
<port>_weblogic.admin.server.port_</port>
<login>_weblogic.admin.server.login_</login>
<password>_weblogic.admin.server.password_</password>
<!optionnal>
<ftpHost>_weblogic.remote.host_</ftpHost>
<ftpUser>_weblogic.remote.user_</ftpUser>
<ftpPassowrd>_weblogic.remote.password_</ftpPassowrd>
<remoteDir>/remote/file/to/path/used/to/deploy/libraries</remoteDir>
<!>
</weblogictarget>
</weblogictargets>
</config>
NB:theftpHost/ftpUser/ftpPassowrd/remoteDirareusedtodeploylibraries.Basically,\_weblogic.remote.host\_shouldbethesameas
JobConfiguration
Ifthepluginisnotconfigured
Ifnoconfigurationhasbeenset,thepluginwilldisplayanerrormessage
Ifthepluginisalreadyconfigured
Ifthepluginisalreadyconfigured,thejobpluginconfigurationformwillbedisplayedonthejobconfigurationpageconfiguration
https://wiki.jenkinsci.org/pages/viewpage.action?pageId=63144531 2/3
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
environnement:thetargetedweblogicenvironment.
name:thenameusedbyweblogictodisplaycomponent.
targets:theweblogictarget(canbeamanagedserverinstance,aclustereithertheAdminServer).BydefaultthepluginwillusetheAdminServerasthetarget.Many
targetscanbedefinedandwillbeseparatedbyuncommasymbol(e.gAdminServer,ManagedServer1,Cluster2).
weblogiclibraries:Ifchecked,thegeneratedartifactwillbedeployedasalibrarycomponent.
'Buildfailedwhendeploymentfailed':Ifchecked,Thecurrentbuildwillbeflaggedasafailedoneifthedeploymenttaskfailed.
'Deploymentstrategy':Configurewhichcause(s)willtriggerthedeploymentaction.If'Nonspecifie'isselected,thedeploymentoccurseachtimethejobbuilds.If
anotheronesareselected,thedeployementactiononlyoccurswhenthebuildwastriggeredbyachosencause.
'Deployingonlywhensourceschanges':Ifchecked,thedeploymentactiononlyoccurswhenthebuildtriggerbyaparametrizedcauseANDtheSCMstepdetects
anychanges.
'ProjectsdeploymentDependencies':(experimental)specifiesadependencywithothersjobdeployingsomeartifacts.
UserGuide
ViewdeploymentLogs
TODO
ReleaseNotes
Version1.2(Aug2,2012)
JENKINS14646ReplaceoldnameHudsonXXXXbyXXXX
JENKINS14626Specifyfilenamegeneratedtodeploy
Version1.1(May5,2012)
ForkedfromHudsonversion.
AddedJDKselectiononglobalconfiguration.
RemovedtaskabortionifnocompatibilitydetectedbetweentheJDKandtheweblogic.DeployerAPI(Asofnow,Itdisplaysawarning).
Fixedtranslationandspellingerrors.
AddedWebLogicServer10.3support.
Sinetiquetas
SitiocorriendosobreunaLicenciagratuitadeProyectoOpenSourceparaAtlassianConfluenceconcedidaaJenkins.Evale
Confluencehoy.
https://wiki.jenkinsci.org/pages/viewpage.action?pageId=63144531 3/3