Professional Documents
Culture Documents
WebLogicDeployerPlugin
CreadoporRaphaelCHAUMIER,modificadoporltimavezenoct25,2016
PluginInformation
ThisplugindeploysanyartifactsbuiltonJenkinstoaweblogictarget(managedserver,cluster...)asanapplicationoralibrary
component.
Prerequisites
Thispluginworkswithatleast1.485jenkinsversion.
Thispluginonlydeploysear,war,jarartifacts.
GettingStarted
Beforeuseit,thepluginhastobeconfigured.Itconsistsofloadingtheweblogictargetconfiguration,choosingthedefaultJDKto
runadeploymenttaskandaddingtheweblogiclibrarypath:
forWLS8.X/pathtojar/weblogic.jar
forWLS10.3/pathtojar/wlfullclient.jar
forWLS12.1/pathtojar/wlthint3client.jar.
Forbuildingthewlfullclient.jarlookathere:http://docs.oracle.com/cd/E12840_01/wls/docs103/client/jarbuilder.html.
Furtherinformationathttps://docs.oracle.com/middleware/1213/wls/SACLT/basics.htm#SACLT124
Configuration
SystemConfiguration
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 1/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
Jdk:thejdkusedtorunadeploymenttask.
Additionalclasspath:weblogic.jarfilepathloadedfordeployment.IfnovalueissetbuttheWL_HOMEenvironment
variableisfound,thepluginwilltrytoload%WL_HOME%/server/lib/weblogic.jar.
Dependingontheweblogicversiontheweblogic.jarshouldbereplacedby:
forWLS10.3/pathtojar/wlfullclient.jar
forWLS12.1/pathtojar/wlthint3client.jar.
UsefulInformation
Ifyouuseauthenticationmode,youshouldreplaceinWLS12wlfullclient.jarbywlthint3client.jar.Ifyouhavetoaddmany
dependenciesyoucanappendthemlikethat/path/to/wulfullclient.jar:/path/to/wlthint3client.jar.Theseparator':'is
platformdependent.
seehttps://docs.oracle.com/middleware/1213/wls/SACLT/basics.htm#SACLT125
OracleInformation
"TheWebLogicfullclient,wlfullclient.jar,isdeprecatedasofWebLogicServer12.1.3andmayberemovedinafuture
release.OraclerecommendsusingtheWebLogicThinT3clientorotherappropriateclientdependingonyourenvironment.
FormoreinformationonWebLogicclienttypes,seeWebLogicServerClientTypesandFeatures."
JavaOptionstouse:thejavaoptionsusedbythejavaprocesswheninvokingtheweblogiclibrary.Bydefaultitwillbe
Xms256MXmx256M.
Excludingartifactnamelist:thebuiltartifactsnamepatternexcludedfrompostbuilddeploymentaction.
Disable:Ifchecked,thepluginexecutionisdisabled.
ConfigurationFile:xmlfilepathcontainingdeploymentstargets.Ithastobe[http://host:port/plugin/weblogicdeployer
plugin/defaultConfig/pluginconfiguration.xsd]schemacompliant.Novalidationcurrentlyperformed.Thefilecanbeadded
throughalocalpath(/usr/users/.../pluginconfiguration.xml)oraremoteURL(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.xs
<weblogictargets>
<weblogictarget>
<name>my_managed_server1</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>
<authMode>BY_KEY</authMode>
<userconfigfile>P:\Documents\perso\dev\wlsdeployplugin\wls_userConfig.properties</
<userkeyfile>P:\Documents\perso\dev\wlsdeployplugin\wls_userConfig.key</userkeyfile
</weblogictarget>
<weblogictarget>
<name>my_managed_server2</name>
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 2/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
<host>_weblogic.admin2.server.host_</host>
<port>_weblogic.admin2.server.port_</port>
<login>_weblogic.admin2.server.login_</login>
<password>_weblogic.admin2.server.password_</password>
<authMode>BY_LOGIN</authMode>
</weblogictarget>
<weblogictarget>
<name>my_managed_server3</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>
<!usedtotransferbyFTPthecomponentflaggedaslibrarytotheWLmachine>
<ftpHost>_weblogic.remote.host_</ftpHost>
<ftpUser>_weblogic.remote.user_</ftpUser>
<ftpPassowrd>_weblogic.remote.password_</ftpPassowrd>
<remoteDir>/remote/path/used/to/transfer/libraries</remoteDir>
</weblogictarget>
</weblogictargets>
</config>
LibraryDeploymentTip
Theftpparametersareusedtodeploylibraries.Whenyoucheckedyourartifactdeploymentasalibrarydeployment,the
pluginconnectstotheftpHostandtransferstheartifactintotheremoteDirdirectory.
Basically,theftpHostvalueshouldbethesameasthehostvalue.
Deployingfromanode
Ifyouplantoexecutethepluginfromanode,youhavetochecksomepoints:
theweblogic.jarandanyotherdependenciesspecifiedintheclasspathfieldshouldbeinstalledonthenodeandthepath
shouldmatches.
javawiththecorrectversionshouldbeinstalledonthenode.
Authenticationmode
Thereare2kindsofauthentication:
BY_KEY:usesakeystorefileandaconfigfile
BY_LOGIN:usesalogin/password(thisisthedefaultauthenticationmode).
Since2.3,thepluginalsosupportsauthenticationbykeystore.Touseit,setauthModewithBY_KEYvaluethenset
userconfigfile/userkeyfileelements.IfyouforgettospecifyauthModewithBY_KEYvalue,thepluginusesthedefault
authenticationmodeBY_LOGIN.
JobConfiguration
Ifthepluginisnotconfigured
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 3/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
Ifnoconfigurationhasbeenset,thepluginwilldisplayanerrormessage
Ifthepluginisalreadyconfigured
Ifthepluginisalreadyconfigured,jenkinswilldisplaythejobpluginconfigurationform.
Deploymenttasklist:Thelistofdeploymentstorun.Foreachtask,someofparametershastobeset:
Taskname(optional):Thenameofthetaskwhichwillbeusedtoidentifyit.
environment:thetargetedweblogicenvironment.Canbecustomized.
name:thenameusedbyweblogictodisplaycomponent.
Basedirectorywheretheresourcecanbefound.Ifthisfieldisleftblank,thepluginwilllookupunderworkspace
directory.
Builtresourcetodeploy:aregularexpressiontofilterresourcewhichwillbedeployed.
targets:theweblogictarget(canbeamanagedserverinstance,aclustereithertheAdminServer).Bydefaultthe
pluginwillusetheAdminServerasthetarget.Manytargetscanbedefinedandwillbeseparatedbyuncomma
symbol(e.gAdminServer,ManagedServer1,Cluster2).Canbecustomized.
weblogiclibraries:Ifchecked,thegeneratedartifactwillbedeployedasalibrarycomponent.
advancedconfiguration:SeethechapterbelowJobAdvancedconfiguration.
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 4/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
Buildfailedwhendeploymentfailed:Ifchecked,Thecurrentbuildwillbeflaggedasafailedoneifthedeploymenttask
failed.
Forcedeploymenttasksstoponfirstfailure:Usefulifyouhaveanytaskconfiguredandyouwanttostopthenext
deploymentstaskswhereanerroroccurs.
Deploymentpolicy:Configurewhichcause(s)willtriggerthedeploymentaction.If'Nonespecified'isselected,the
deploymentoccurseachtimethejobbuilds.Ifanotheronesareselected,thedeployementactiononlyoccurswhenthe
buildwastriggeredbyachosencause.
Deployingonlywhensourceschanges:Ifchecked,thedeploymentactiononlyoccurswhenthebuildtriggerbya
parametrizedcauseANDtheSCMstepdetectsanychanges.
ProjectsdeploymentDependencies:(experimental)specifiesadependencywithothersjobdeployingsomeartifacts.
Customizationofparameters
Someofparameterscanalsobetokenizedwithenvironmentvariablesorevenbuildparameters.Herearetheseparameters:
environment:Insteadofsettingafixedvalueintotheconfigurationfile(e.glocalhost:7000)youcansetavariablelike
${WL_HOST}:${WL_PORT}
targets:Insteadofsettingafixedvalue(e.gAdminServer)youcansetavariablelike${ENV_TARGET}or
$TARGET.
Basedirectorywheretheresourcecanbefound:youcansetavariablelike${WORKSPACE}.
name:Thenameparametercanbetokenized(e.gmywar${MY_VERSION})
Usethebuildparameterpluginoraddsomeenvironmentvariabletosetthesevalues
JobAdvancedconfiguration
It'spossibletosettheJDKtousedirectlyintheJobconfiguration.Thisoptionisavailableontheadvancedtasksection.By
defaultifnojdkisspecified,thepluginwillusetheglobalconfiguration
Jdkname:Thenameofthejdk.IfthevaluematchesanexistingJDK,thepluginwilldisplayalistofmatchedJDKs.
Chooseonewillautomaticallyfillupthejdkhomevalue
Jdkhome:thepathtotheJDKhome.
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 5/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
Stagemode:stage,nostageorexternalstage
protocol:t3,t3s,httporhttps
Commandline:Thecommandwhichwillberunbythedeployerinsteadofthedefaultones(undeploy/deploy)
Overridedeploymentexecution
Foradvancedusers,itcanbeusefultodefinethecommandsthatthedeployerhastoruninsteadofthedefaultones,Toenable
thisfeature,theuserwillsetdifferentcommandlinesintothe'Commandline'fieldofJobadvancedconfiguration.
Thesecommandshastobeendedbythe''separator.Thefollowingplugintokencanbeaddedtothecommandline:
{wl.deployment_name}:the'Name'parametervalue
{wl.source}:theresourcetodeploy(figuredoutbytheplugin)
{wl.targets}:the'Targets'parametervalue
{wl.host}:thehostpartofthe'Environment'parameter
{wl.port}:theportpartofthe'Environment'parameter
{wl.deploymentPlan}:thepathofthedeploymentplanofthe'Environment'parameter
{wl.login}:thelogintoauthenticatetotheserver(providedbytheconfigurationfile)
{wl.password}:thepasswordtoauthenticatetotheserver(providedbytheconfigurationfile)
{wl.user_configfile}:theDeployerconfigurationfile(definedintheconfigurationfile)
{wl.user_keyfile}:theprivatekeytoauthenticate(providedbytheconfigurationfile)
Note:onlytheargumentsandparameterscanbespecified.Thejavaexecutableusedtorunthecommandwillbefigureoutbythe
pluginwiththesamealgorithmthanadefaultexecution.
Forinstance:theuserwhoprefersrundeploymentwith'distribute'insteadofdeploycouldbesetthefollowingcommandlines:
commandlineparameter
adminurlhttp://{wl.host}:{wl.port}user{wl.login}password{wl.password}debugremoteverbose
adminurlhttp://{wl.host}:{wl.port}user{wl.login}password{wl.password}name{wl.deployment_nam
BeCareful
Sometimessourcepathcontainsspecialcharslike$.Toensurethatthepluginwellhandlethepathyoucansurroundthe
token{wl.source}withquoteslikethis:
commandlineparameter
adminurlhttp://{wl.host}:{wl.port}user{wl.login}password{wl.password}debugremotever
NB:Environmentvariablesandbuildparameterscanalsobeused.
UserGuide
Buildstatus
Thebuildstatuswillbemodifiedaccordingthefollowingrules:
thestatusissettoSUCCESSwhen:
thedeploymenttaskissuccessfullyachieved
thecheckbox"Markbuildunstableifdeploymentwasnotattempted"isnotcheckedwhatevertheresultofpre
requisitestep.
Ifthecheckbox"Markbuildunstableifdeploymentwasnotattempted"ischecked,thestatusissettoUNSTABLEwhen:
atleastoneoftheverificationofthedeploymenttaskfailed(PLUGIN_DISABLED,OTHER_TRIGGER_CAUSE,
NO_CHANGES,UNSATISFIED_DEPENDENCIES,PREVIOUS_STATUS_BUILD_FAILED).
thedeploymenttaskfailedandtheBuildfailedwhendeploymentfailedparameterisnotchecked.
statusissettoFAILEDwhenthedeploymenttaskfailedandtheBuildfailedwhendeploymentfailedparameterischecked.
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 6/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
Checkabuilddeploymentstatus
Onthebuilddashboardanewiconwillappear.Itdisplaysthedeploymentstatus
Checkthelastsuccessfuldeploymentonmainjobdashboard
Whenyouclickonyourjob,adashboardshowanewiconwiththedateofthelastsuccessfuldeployment.Ifnodeployment
occurredoralwaysfailed.Thedatewillbereplacedby'N/A'label.
ViewdeploymentLogs
Youcanviewthedeploymentlogsofeachtask.Simplyclickonthe'DeploymentsStatuses'linkor'Weblogicdeployments'link.
Theywillappearonebyoneinthedeploymentpage.
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 7/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
Disablingdeploymenttaskatruntime
Adeploymenttaskcanbeskippedduringajobbuildbysettinganenvvariableorabuildparameterfollowingthisnamingrule
(DEPLOY_<task_name>_SKIP)totrue.
Forinstance,ifyourtasknames'task1'youhavethepossibilitytoskipitsexecutionbysettingavariablenamed
DEPLOY_TASK1_SKIPtotrue(Itcouldbeabooleanbuildparameter).
ReleaseNotes
Version3.6(Oct25,2016)
JENKINS39029FixedNPEforjobconfiguredwiththepluginversonolderthan3.5
JENKINS38218SupportmultiplefilesvalidationforextraClasspathfield.
Version3.5(Sep04,2016)
JENKINS32392Addedtheabilitytochoosetheprotocoltouseduringthedeployment.
Refactoringdeploymentpolicy.LegacyCodeCauseandUserCausenomoresupported.(thankstomustafaulu)
Version3.4(May26,2016)
JENKINS19962Addedtheabilitytodeclareajobsuccessfullwhenprerequisitestepfailed
JENKINS35161variablecanbeusedfortheDeploymentnamevalue
UserCauseisnowflaggeddeprecatedinthetriggerslist
AddedTimerTriggertothelistoftriggers
Version3.3(August31,2015)
JENKINS26992baseDirectorynotwellreplaced
Removedunusedorg.codehaus.plexusdependency
Version3.1(March31,2015)
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 8/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
Removedorg.codehaus.plexus.FileUtilsdependency
Version3.0(March28,2015)
JENKINS26992SupportedbaseDirectoryvariableexpansion
JENKINS26366ImplementedPromotedBuildspluginsupport
JENKINS23700Bydefaultthepluginsearchesunderworkspacedirectory
BeCareful
Thisversionisnotbackwardcompatible.Ifyouusedpreviousversionwithmavenprojectdon'tforgettoupdatethemaven
jobsconfiguration(fillupbasedirectorywhichisnomorecomputed).
Version2.13(February16,2015)
JENKINS20351Implementedtherecursivesearchwhennobasedirectoryissetinfreestylejobconfiguration.
FixedJENKINS26901NotpossibletorunfreestylejobwithnonsetbaseDirectory.
Version2.12(December17,2014)
JENKINS24789Addedthepossibilitytoskipataskdeploymentduringabuildbysettingabuildparameteroranenvvariable.
Version2.11(December16,2014)
Fixedregressionduetoanunexpectedcommit
Version2.10(December6,2014)
FixingbugJENKINS23701:Addedbettercontroloninvaliddirectoryparameterset.
Frenchtranslationmissing
Fixingwrongjavadoc
FixingwrongiconURL.
Version2.9.1(December20,2013)
FixingbugJENKINS20970:deploymentfailedduetoanunexpectedstreamclosedexception.
Version2.9(November30,2013)
Handledexceptionwhenconfigurationfileuploadedisincorrect.
Addederrorlogonjenkinsprojectselectorbean.
Version2.8(October06,2013)
FixingbugJENKINS16007
Version2.7(October04,2013)
ImplementingJENKINS18685Addedsupportforcustomizationofdeploymenttargets/environmentthroughbuildparameters.
Version2.6(September16,2013)
ImplementingJENKINS19237Addeddeploymentplansupport
EvolutionJENKINS19016Modifiedbehaviorwhenthestepofprerequisitecheckfailed.
Version2.5(July27,2013)
ImplementingJENKINS18882Replacedweblogicicon
FixingbugJENKINS18940token{wl.source}neverreplacedincommandline
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 9/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
Version2.4(July24,2013)
ImplementingJENKINS17300andJENKINS18812:Addednewfeaturewhichallowtheadvancedusertodefinehisown
commandtorun
FixingbugJENKINS18881:NPEwhentheuserviewingdeploymentresultofaskippedexecution
FixingbugJENKINS18883:cronvaluedoesn'tappearin'Deployperiodically'field
Version2.3(June26,2013)
ImplementingJENKINS18467:stagemodeattributemishandledinjobadvancedconfiguration.
ImplementingJENKINS17879:Supportsweblogicauthenticationbykeystore.
Version2.2(May04,2013)
ImplementingJENKINS17300:Supportsstagemodechoiceinjobconfiguration.
Version2.1(May03,2013)
ImplementingJENKINS17301:Supportsjdkconfigurationperjob.
Version2.0(Mar04,2013)
ImplementingJENKINS16808:Supportsmultideploymentfeature.
ImplementingJENKINS16699:Searchedresourcepatternornameistracedinthejoblog
BeCareful
Thisversionisnotbackwardcompatible.
Version1.4(Feb11,2013)
ImplementingJENKINS15696:Supportsfreestyleproject.
Version1.3(Aug13,2012)
ImplementingJENKINS14763:Englishtranslation.TheEnglishlanguageisthedefaultpluginlanguage.
Version1.2(Aug2,2012)
ImplementingJENKINS14646:TheoldjavaclassorresourcesprefixedbyHudsonXXXXhasbeenrefactoredtoXXXX.
ImplementingJENKINS14626:Asofnow,it'spossibletofiltertheartifactnametodeploybyregexdefinedinthejob
configuration.(Usefulformavenmultimoduleprojectwhichgeneratemanyartifacts).
Version1.1(May5,2012)
ForkedfromHudsonversion.
AddedJDKselectiononglobalconfiguration.
RemovedtaskabortionifnocompatibilitydetectedbetweentheJDKandtheweblogic.DeployerAPI(Asofnow,Itdisplaysa
warning).
Fixedtranslationandspellingerrors.
AddedWebLogicServer10.3support.
pluginupload pluginpostbuild
11Comentarios
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 10/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
SteveZhang
Iwanttodeploymygrailswarfileintoweblogicserver,thefileisunderthetargetfolderoftheworkspace,sohowcanI
specifythebasedirectoryandBuiltresourcetodeployfield?
OrlandoKelly
Canyouaddaflagtohidetheweblogicconnectioninfobeingoutputtothelog.Pleasedonotechotheusername/
password.Thiscouldbeasecurityissue,especiallydeployingtoproductionenvironmentsetc.
DavidChen
Afterthe2.8to2.9pluginupgrade,mybuildjobgaveoutexception.Ihadtodowngradeto2.8...
Errormessagesasfollowing
[WeblogicDeploymentPlugin]PayattentionofJdkversion{selectedversionis1.6.0_37}compatibility
[WeblogicDeploymentPlugin]TheJDKC:\SunJdkwillbeused.
[WeblogicDeploymentPlugin]ArtifactSelectorused:org.jenkinsci.plugins.deploy.weblogic.FreeStyleJo
[WeblogicDeploymentPlugin]Retrievingartifactsrecorded[filteredresourcesonxxx\.war]...
[WeblogicDeploymentPlugin]thefollowingfilerecordedxxx.wariseligible.
[WeblogicDeploymentPlugin]Deployingtheartifactonthefollowingtarget:(name=yyy)(host=yyy)(p
java.io.IOException:StreamClosed
atjava.io.FileOutputStream.writeBytes(NativeMethod)
atjava.io.FileOutputStream.write(UnknownSource)
atorg.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTas
atorg.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTask
atorg.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPl
athudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
athudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:780)
NeilHunt
IamgettingthesameerrorasDavidwith2.9.Idowngradedto2.8anditisdeployingfine.RunningWLS12.3.Please
letmeknowifyouneedmetotestanythingaswe'dliketomoveontolatestversionifitcanbecomestable.
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 11/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
janicezhang
iuserversion2.9.1,2.9,2.8,thedeployfailed.
itmeansParameterValueResolver.javahasnotthemethodEnvVars(String,String)orothers
howcoulditdepolycorrect?
17:01:00java.lang.NoSuchMethodError:hudson.EnvVars.get(Ljava/lang/StringLjava/lang/String)Ljava/lang/String
17:01:00at
org.jenkinsci.plugins.deploy.weblogic.util.ParameterValueResolver.resolveEnvVar(ParameterValueResolver.java:33)17:01:00
at
org.jenkinsci.plugins.deploy.weblogic.deployer.WebLogicDeployer.getWebLogicCommandLine(WebLogicDeployer.java:75)
17:01:00at
org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTaskServiceImpl.java:278)
17:01:00at
org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:178)
17:01:00at
org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:232)
17:01:00athudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
17:01:00athudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
17:01:00athudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
17:01:00athudson.model.Build$BuildExecution.post2(Build.java:183)
17:01:00athudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
17:01:00athudson.model.Run.execute(Run.java:1513)
17:01:00athudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
17:01:00athudson.model.ResourceController.execute(ResourceController.java:88)
17:01:00athudson.model.Executor.run(Executor.java:236)
17:01:00ERROR:WeblogicDeploymentPluginFailedtodeploy.
RekhaKanungo
Inthecurrent'weblogicdeploymentplugin'duringundeployment,theundeploymentisdonebasedonthenameprovided
inthedeploymenttasklistsection.Iwanttoundeploytheexistingdeployedartifactinthemanagedserverirrespective
ofthename.
Isthisfeatureavailable?
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 12/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
VanderssonSouza
Hi,I'mhavingproblemstoconfiguretheplugindodeploytheearonaweblogicserveronmylocalmachine.
Iconfiguredthepluginasdisplayedontheimagesbelow,butwhenItrytoconfigurethejobitsaysthatthepluginisnot
configured
Thecontentofmyconfiguration.xmlfileis
<?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/WeblogicDeploymentPluginfile:///C:/.jenkins/plugins/weblogic
deployerplugin/config/pluginconfiguration.xsd">
<!
<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>local</name><host>localhost</host><port>7001</port>
<login>admin</login><password>@332#.123</password><authMode>BY_LOGIN</authMode></weblogictarget>
</weblogictargets>
</config>
Someonehaveanideaaboutthisproblem?
OS:Windows7
Jenkins:1.625
WeblogicPlugin:3.2
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 13/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
SagayarajDavid
IthinktheDocumentationshouldbeenhanced.Ihaveinstalledtheplugin,andconfiguredtheWeblogicinJenkins
manageconfigurationpage.IconfigureajobtodotheWebLogicdeploymentandexecuteitataslavemachine.
Ikeptthewartodeployontheslavemachine,butduringexecution,theweblogicpluginreportsthebasedirectory
specifiedisinvalid(doesnotexist,ornotadirectoryorhasinsufficientpermission).IfIkeepthewarfileonmaster
computer,itdetectsthefile.
Howeveritstillreportsfilenotfounderror.Icheckedthejavapathandweblogic.jarfileinmasterandtheyarepresent.
Whatswrong
SagayarajDavid
IstheWebLogicDeployercapableofdeployingwarfileontoAppserverfromSlavemachineorfrommasteronly?
RinatPulchinski
Hiall,
Iwouldlikealsotoknowtheanswerforthis:
Thanks!
Regards,
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 14/15
20/6/2017 WebLogicDeployerPluginJenkinsJenkinsWiki
JonasRicardoRossiCardoso
Hi,canyouhelpme?Isetupthepluginbutcannotperformtheapplicationdeployment.Thefollowingconfiguration
usedanderrormessage
thankyou.
StartedbyuserJonasRicardoRossiCardoso
[EnvInject]Loadingnodeenvironmentvariables.
Buildingonmasterinworkspace/var/jenkins/jobs/Nucom/workspace
[WeblogicDeploymentPlugin]PayattentiontoJDKversion
Unknownmacro:{selectedversionis1.7.0_40}
compatibilitywithWebLogicDeployerAPI(seeOracledocumentation).
[WeblogicDeploymentPlugin]TheJDK/opt/jdk1.7.0_40/willbeused.
[WeblogicDeploymentPlugin]Retrievingartifactsrecorded[filteredresourceson.*war]...
[WeblogicDeploymentPlugin]1filesfoundunderteste
[WeblogicDeploymentPlugin]thefollowingresourcerecorded/opt/teste/MavenTeste.wariseligible.
[WeblogicDeploymentPlugin]Deployingtheartifactonthefollowingtarget:(name=testeJonas)(host=******)
(port=************)
[WeblogicDeploymentPlugin]UNDEPLOYINGARTIFACT...
$/opt/jdk1.7.0_40/bin/javaXms50MXmx60Mcp/opt/libsJEE/weblogic/wlthint3client.jarweblogic.Deployerdebug
remoteverbosenoexitnamejonastargetsAdminServeradminurlt3://******************user*************password
**************undeploy
[WeblogicDeploymentPlugin]ARTIFACTUNDEPLOYEDSUCCESSFULLY.
[WeblogicDeploymentPlugin]DEPLOYINGARTIFACT...
$/opt/jdk1.7.0_40/bin/javaXms50MXmx60Mcp/opt/libsJEE/weblogic/wlthint3client.jarweblogic.Deployerdebug
stageremoteverboseuploadnamejonassource/opt/teste/MavenTeste.wartargetsAdminServeradminurl
t3://****************0user*******password**********deploy
java.lang.RuntimeException:taskcompletedabnormally(exitcode=1)
at
org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:240)
at
org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:169)
atorg.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:304)
athudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
athudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
athudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757)
athudson.model.Build$BuildExecution.post2(Build.java:183)
athudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706)
athudson.model.Run.execute(Run.java:1690)
athudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
athudson.model.ResourceController.execute(ResourceController.java:88)
athudson.model.Executor.run(Executor.java:246)
ERROR:[WeblogicDeploymentPlugin]Failedtodeploy.
[INFO]
[INFO]DEPLOYMENTFAILURE
[INFO]
Buildstep'DeploytheartifacttoanyWebLogicenvironments'changedbuildresulttoFAILURE
Finished:FAILURE
ARTIFACTUNDEPLOYMENT
Error:Couldnotfindorloadmainclassweblogic.Deployer
ARTIFACTDEPLOYMENT
Error:Couldnotfindorloadmainclassweblogic.Deployer
SitiocorriendosobreunaLicenciagratuitadeProyectoOpenSourcepara
AtlassianConfluenceconcedidaaJenkins.EvaleConfluencehoy.
https://wiki.jenkinsci.org/display/JENKINS/WebLogic+Deployer+Plugin 15/15