Skip to content

Update to latest robotframework version #1002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 6.1
Choose a base branch
from

Conversation

petschki
Copy link
Member

This fixes "_start_keyword" errors

@petschki
Copy link
Member Author

ouch ... hudson.plugins.robot is not RF 7 compatible (output XML has changed) see robotframework/robotframework#5018 ... they suggest to use another plugin: https://github.com/jenkinsci/robot-plugin/releases/tag/robot-3.5.0

/cc @gforcada

@gforcada
Copy link
Member

🤔 actually we should be fine here, as we are using version 5.0.0 of that Jenkins plugin, and support for Robotframework 7.x was added on 3.5.0

@petschki
Copy link
Member Author

Hm .. strange .. the traceback here looks like the issue I've posted:

-Assigning results to build:
ERROR: Build step failed with exception
java.lang.NullPointerException: Cannot invoke "String.length()" because "text" is null
	at java.base/java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1474)
	at java.base/java.text.DateFormat.parse(DateFormat.java:397)
	at PluginClassLoader for robot//hudson.plugins.robot.model.RobotCaseResult.timeDifference(RobotCaseResult.java:70)
	at PluginClassLoader for robot//hudson.plugins.robot.model.RobotCaseResult.getDuration(RobotCaseResult.java:120)
	at PluginClassLoader for robot//hudson.plugins.robot.model.RobotSuiteResult.tally(RobotSuiteResult.java:418)
	at PluginClassLoader for robot//hudson.plugins.robot.model.RobotSuiteResult.tally(RobotSuiteResult.java:426)
	at PluginClassLoader for robot//hudson.plugins.robot.model.RobotResult.tally(RobotResult.java:416)
	at PluginClassLoader for robot//hudson.plugins.robot.RobotBuildAction.setResult(RobotBuildAction.java:128)
	at PluginClassLoader for robot//hudson.plugins.robot.RobotBuildAction.<init>(RobotBuildAction.java:99)
	at PluginClassLoader for robot//hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:318)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767)
	at hudson.model.Build$BuildExecution.post2(Build.java:179)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:711)
	at hudson.model.Run.execute(Run.java:1856)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
	at hudson.model.ResourceController.execute(ResourceController.java:101)
	at hudson.model.Executor.run(Executor.java:446)
Build step 'Publish Robot Framework test results' marked build as failure

but you're right... we're using the latest RF7 compatible version.

@petschki petschki marked this pull request as ready for review March 17, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants