Hi Janne,
I initiated my work on the plugin but failed to go very far. Maybe you can help me.
Here is what I tried:
1) install a local Jenkins with a job that launch a robot test => OK
2) install the official robot plugin from jenkins admin and use it in my job => OK
2) remove the official plugin + built the plugin from source (mvn clean install, with Java 7) and install it in Jenkins (upload the HPI file generated) => looks good
3) check that the plugin works properly => not OK
When I am on the project page I get an error like this:

A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.

Stack trace

javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/Users/laurent/.jenkins/plugins/robot/WEB-INF/lib/classes.jar!/hudson/plugins/robot/RobotProjectAction/floatingBox.jelly:19:63: <st:include> No page found '/hudson/plugins/robot/robotcss.jelly' for class hudson.model.FreeStyleProject
	at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:117)
	at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:735)

4) so I looked more carefully at the source code and in the pom.xml I saw:

<parent>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.424</version><!-- which version of Hudson is this plugin built against? -->
  </parent>

=> this does not match my version of Jenkins, so I changed the value to 1.598 and built again
This time the built failed with that error:

Downloaded: http://repo.jenkins-ci.org/public/org/codehaus/plexus/plexus-compiler-javac/1.9/plexus-compiler-javac-1.9.jar (14 KB at 38.8 KB/sec)
[INFO] Compiling 23 source files to /Users/laurent/Development/github/robot-plugin/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/laurent/Development/github/robot-plugin/src/main/java/hudson/plugins/robot/RobotBuildAction.java:[28,24] error: package hudson.tasks.test does not exist
[ERROR] /Users/laurent/Development/github/robot-plugin/src/main/java/hudson/plugins/robot/RobotBuildAction.java:[50,38] error: cannot find symbol
[ERROR]   symbol: class AbstractTestResultAction
(...)
[INFO] 79 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:24.074s
[INFO] Finished at: Wed Jan 28 09:35:24 CET 2015
[INFO] Final Memory: 28M/122M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile (default-compile) on project robot: Compilation failure: Compilation failure:
[ERROR] /Users/laurent/Development/github/robot-plugin/src/main/java/hudson/plugins/robot/RobotBuildAction.java:[28,24] error: package hudson.tasks.test does not exist
[ERROR] /Users/laurent/Development/github/robot-plugin/src/main/java/hudson/plugins/robot/RobotBuildAction.java:[50,38] error: cannot find symbol
[ERROR] symbol: class AbstractTestResultAction
(...)

==> could you guide me a bit on how I should approach work on the plugin? Did I miss a step? Do my error ring a bell to you?
Thanks in advance

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to