The plugin looks for an artifact built by the jenkins maven module whose the 
name matched with the regex if it has been set. It seems that you use the job 2 
only to deploy the artifact created by the job 1 that is to say the plugin 
never recognise the copied artifact as an artifact generated by the maven 
module. 
Can 't you build and deploy your artifact with the same job ?
 
NB : With the next version, you could you a freestyle project to deploy an 
artifact found onto the workspace no matter what it has been generated.
 
Regards






> Message du 08/02/13 12:45
> De : "Lonnie Lewis" 
> A : "RCR" 
> Copie à : [email protected]
> Objet : Re: Weblogic plugin question
> 
>
Thank you for the reply. I've tried specifying that value and leaving it blank. 
The problem I'm having appears to be the location the plugin is looking to find 
the WAR: in the "modules" directory tree, and I don't know a way to get the WAR 
file in that location.

> 
>
On Fri, Feb 8, 2013 at 5:05 AM, RCR  wrote:
>

> Hi,
>  
> If you don't specify 'Built resource To deploy' regex, the plugin will look 
> for a maven artifact-Id.package named resource. If you want to deploy another 
> one you have to fill  'Built resource To deploy' in the job configuration.
>  
> Regards,
> 
> 
> 
> 
>
> Message du 07/02/13 18:43
> > De : "Lonnie Lewis" 
> > A : [email protected]
> > Copie à : 
> > Objet : Weblogic plugin question


> > 
> > Sorry if this is the wrong place for this question, I can't find a better 
> > place.
I'm attempting to use the Weblogic Deployer plugin 
(https://wiki.jenkins-ci.org/display/JENKINS/WebLogic+Deployer+Plugin). I'm 
attempting to set up a job triggered off another job being promoted. So:

> >
1) Project1 creates Job1, WAR is built
2) Job1 is "promoted" to "Deploy to dev"
3) Project2 is triggered (set to "Build when another project is promoted") and 
creates Job2
4) Job2 copies the WAR from Project1/Job1 into Project2's workspace
5) Job2 calls "archive the artifacts" to put them in the Job2's archive

> >
This all works; the WAR file appears in Job2's "builds" directory structure.

> >
6) The Weblogic plugin is called. I attempt to specify the WAR file in the 
archive, but I get:

> >


ERROR: [WeblogicDeploymentPlugin] - Failed to get artifact from archive 
directory : [WeblogicDeploymentPlugin] - No artifact to deploy found.




> > 
The WAR file has been copied to the "builds" directory, but not the "modules" 
directory. I guess this is what the Weblogic plugin is looking for. Any idea on 
how I fix this problem?

> > 

> >
-- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>





> 


>
-- 
> Lonnie Lewis
>
-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to