[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Jenkins + TorqueBox + Rails question



I'm trying to get Jenkins working to build a Rails App using TorqueBox.  TorqueBox is a JRuby application server built on JBoss.  I've created my application as 'scalable' app type, using EAP6; and I have it up and running successfully.  I then set it up to use Jenkins and tried building manually by clicking on 'build now'.  I did not perform any configuration.  I should mention that I am entirely new to Jenkins and do not completely understand what is going on.  That's why I'm asking questions, but I'm not 100% sure where even to begin investigating.

What happens is that the build seems to succeed, but then presumably some post-build process takes over, and eventually leads to failure.  Initially, I received an error complaining about the lack of a pom.xml.  I had removed this as unnecessary for my project (from the initial project skeleton generated when I created the app).  In order to get rid of the error message, I added it back in.  Then I got the message included below.  I am not sure whether chasing down the problems reported in the error messages and trying to comply with the implied process is actually what I should be doing.  I wonder if maybe I should actually be trying to get a different post-build process to run.

What I'd like to have happen is set up a process so after a successful build the application is deployed in its usual place.  Obviously I'd also like to insert a testing phase as well, but I'd initially be satisfied with just building and deploying.  If it's simpler to configure that initially, I could do that.

Could someone have a look at the console output below?  Although it is complaining about the Ruby version, I don't think that's actually causing a problem -- on the basis that I've already successfully built and deployed this code outside of Jenkins, in the normal way for my app (via Git push).  Any input will be most appreciated.

Thanks,
Chhi'mèd


Deploying Ruby application in /var/lib/stickshift/9d38778bad2c47fca3ef36791cbb7855/app-root/runtime/repo/
jruby 1.6.7.2 (ruby-1.9.2-p312) (2012-05-01 26e08ba) (OpenJDK 64-Bit Server VM 1.7.0_05-icedtea) [linux-amd64-java]
Your Ruby version is 1.9.2, but your Gemfile specified 1.9.3
+ '[' -e /var/lib/stickshift/9d38778bad2c47fca3ef36791cbb7855/app-root/runtime/repo/.openshift/markers/java7 ']'
+ export JAVA_HOME=/etc/alternatives/java_sdk_1.7.0
+ JAVA_HOME=/etc/alternatives/java_sdk_1.7.0
+ export MAVEN_OPTS=-Xmx396m
+ MAVEN_OPTS=-Xmx396m
+ mvn --global-settings /usr/libexec/stickshift/cartridges/jbosseap-6.0/info/configuration/settings.prod.xml --version
Apache Maven 3.0.3 (r1075437; 2011-06-20 13:22:37-0400)
Maven home: /etc/alternatives/maven-3.0
Java version: 1.7.0_05-icedtea, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.5.x86_64/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "2.6.32-279.5.2.el6.x86_64", arch: "amd64", family: "unix"
+ mvn --global-settings /usr/libexec/stickshift/cartridges/jbosseap-6.0/info/configuration/settings.prod.xml clean package -Popenshift -DskipTests
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building yurtweb 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ yurtweb ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ yurtweb ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/stickshift/9d38778bad2c47fca3ef36791cbb7855/jbosseap-6.0/ci/jenkins/workspace/yurtweb-build/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ yurtweb ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ yurtweb ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/stickshift/9d38778bad2c47fca3ef36791cbb7855/jbosseap-6.0/ci/jenkins/workspace/yurtweb-build/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ yurtweb ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ yurtweb ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ yurtweb ---
[INFO] Packaging webapp
[INFO] Assembling webapp [yurtweb] in [/var/lib/stickshift/9d38778bad2c47fca3ef36791cbb7855/jbosseap-6.0/ci/jenkins/workspace/yurtweb-build/target/yurtweb]
[INFO] Processing war project
[INFO] Webapp assembled in [30 msecs]
[INFO] Building war: /var/lib/stickshift/9d38778bad2c47fca3ef36791cbb7855/jbosseap-6.0/ci/jenkins/workspace/yurtweb-build/deployments/ROOT.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.967s
[INFO] Finished at: Tue Sep 18 15:01:20 EDT 2012
[INFO] Final Memory: 15M/198M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project yurtweb: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]