Robot framework plugin does not show-up in Jenkins

Viewed 859
2 Answers

It's a poorly named plugin: should be Robot Framework Publisher. If you read the Configuration section of the plugin, you'll see:

  • Select: Build -> Add build step -> execute shell/Execute Windows batch command

  • Add the command to run the tests. You might have direct robot/jybot command here like robot --variable name:value --outputdir my_robot_results my_test_suite or in case you need to do something more, you can call any script that you use for running the tests. Relevant part from Robot Jenkins Plugin point of view is that this script generates the Robot outputs.

  • Force your Robot script to return successfully from shell with exit 0 to empower the plugin in deciding if the build is success/failure (by default Robot exits with error code when there's any failed tests). You can do this for example by adding --nostatusrc to your test run (see Robot Framework user guide for details).

  • Select: Post-build Actions -> Publish Robot Framework test results

Thus you will only see a robot entry in the Post-build step to gather the results.

Note: JENKINS-36954 and OP's comments suggests you must also add matrix-project, which as of v.2.1.2 remains declared as "Optional" but appears to be required.

Update (2012-12-17): It would appear JENKINS-36954 is the culprit. I added steps to reproduce on the ticket, proposed sol'n, which has been accepted and PR has been merged. Expect to see it resolved in v.2.1.3.

I don't know the reason but after trying to use the E-mail notification (an smpt error came up, but that is not the issue here)

suddenly there was another option: Publish Robot framework test results

enter image description here

and that fixed it:

enter image description here

concluding: can Java open source work with the plugin?: apparently yes. (good to know) What caused the option 'Publish Robot Framework test results not showing? unclear! Somehow triggering the E-mail Notification (remember? : which became available after the Matrix multi project plugin) solved the problem and the left pane options also showed in the menu at that point.

Related