Localizer problems in ci.jenkins.io plugin builds

11 views
Skip to first unread message

Chris Kilding

unread,
May 14, 2019, 6:42:09 AM5/14/19
to jenkin...@googlegroups.com
I’m seeing problems with localizer in plugin builds on ci.jenkins.io, and wondering if other plugin authors have seen them too.

My plugin generates translations (the Messages classes) before compilation just fine on my laptop. But when the very same plugin is built on ci.jenkins.io I see compilation errors:

[2019-05-14T09:32:58.909Z] [ERROR] /src/main/java/...packages.../Filters.java:[3,67] cannot find symbol
[2019-05-14T09:32:58.909Z]   symbol:   class Messages


I also see Javadoc warnings that it can’t find the Messages class.

The build log shows that localize:generate has run multiple times before either the Javadoc or compiler Maven plugins run.

I compared my plugin’s POM to the Jira plugin (which seems to work just fine on ci.jenkins.io), and there is no significant difference in their localizer or generated source config.

Has anyone seen this before, and what’s the fix?

Regards,

Chris

Ullrich Hafner

unread,
May 14, 2019, 7:14:31 AM5/14/19
to Jenkins Developers
Did you check if the properties files are checked in? Did you test in another folder on your laptop that checks out the sources from GitHub?

-- 
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/562704a4-084f-47f6-a03a-d8779f159410%40www.fastmail.com.
For more options, visit https://groups.google.com/d/optout.

Chris Kilding

unread,
May 14, 2019, 7:35:13 AM5/14/19
to jenkin...@googlegroups.com
Hi Ullrich,

Sure enough, Messages.properties had ended up in my gitignore file. When I fixed that, localizer behaved fine on CI.

Chris
Reply all
Reply to author
Forward
0 new messages