Automated deploy using jenkins

443 views
Skip to first unread message

Lucas Meante

unread,
Mar 3, 2020, 12:55:28 PM3/3/20
to WildFly
Hello everyone !

I am Trying to automate a job deploying a .WAR on my wildfly 16 using jenkins, but i am getting some issues, my Job on jenkins is partially working. 
Jenkins is entering on my wildfly console, and seeing my deployed .WAR but can't deploy my pointed .WAR.
The message that appears on the output console is attached.


Thanks for listening.





jenkins.PNG

James Perkins

unread,
Mar 3, 2020, 5:37:28 PM3/3/20
to WildFly
Have you looked at the WildFly/Jenkins logs? There should be some kind of error message and/or stack trace there.

Lucas Meante

unread,
Mar 4, 2020, 11:33:53 AM3/4/20
to WildFly
Hello James, 

Thanks for the idea, on my wildfly log dont show anything. 
On my Jenkins log, shows some warning:

Jenkins is fully up and running
Mar 04, 2020 4:23:00 PM INFO org.xnio.Xnio 
XNIO version 3.6.5.Final
Mar 04, 2020 4:23:00 PM INFO org.xnio.nio.NioXnio 
XNIO NIO Implementation Version 3.6.5.Final
Mar 04, 2020 4:23:00 PM INFO org.jboss.remoting3.EndpointImpl 
JBoss Remoting version 5.0.8.Final
Mar 04, 2020 4:23:00 PM INFO org.jboss.threads.Version 
JBoss Threads version 2.3.3.Final
Mar 04, 2020 4:23:00 PM INFO org.wildfly.security.Version 
ELY00001: WildFly Elytron version 1.8.0.Final
Mar 04, 2020 4:25:41 PM INFO org.jboss.as.cli.impl.CommandContextImpl print
Warning! The CLI is running in a non-modular environment and cannot load commands from management extensions.
Mar 04, 2020 4:27:44 PM INFO org.jboss.as.cli.impl.CommandContextImpl print
Warning! The CLI is running in a non-modular environment and cannot load commands from management extensions.

and its it, nothing more. 

Att.

James Perkins

unread,
Mar 4, 2020, 11:41:19 AM3/4/20
to WildFly
Given those messages I assume something is trying to use CLI to deploy the application. Is this a Jenkins plugin you're using or do you have some specific commands you're running?

Lucas Meante

unread,
Mar 4, 2020, 12:38:48 PM3/4/20
to WildFly
To pop up this errors, i haved to copy the two .jar located on wildfly (wildfly/bin/client/) and paste on jenkins directory (/Jenkins/war/WEB-INF/lib/).
if don't, the log pop up another message: 

Started by user admin
Running as SYSTEM
Building in workspace /var/jenkins_home/workspace/Wildfly8
FATAL: Unable to initialize command context.
Build step 'Deploy WAR/EAR to WildFly' marked build as failure
Finished: FAILURE

maybe, i need some another CLI.

Att.

James Perkins

unread,
Mar 4, 2020, 1:18:52 PM3/4/20
to WildFly
If you use maven for your build you could use the wildfly-maven-plugin to deploy the application. Without some kind of stack trace or more error messages it's tough to know why the deploy would fail.
Reply all
Reply to author
Forward
0 new messages