| I'm currently moving the ATH tests of the warnings plugin to the plugin (see PR #419). I get an error in the test case that is caused by a timing problem:
master63023|2020-03-11 23:54:08.038+0000 [id=75] INFO h.model.UpdateCenter$DownloadJob#run: Starting the installation of warnings-ng on behalf of anonymous
master63023|2020-03-11 23:54:08.039+0000 [id=75] INFO h.m.UpdateCenter$UpdateCenterConfiguration#download: Downloading warnings-ng
master63023|2020-03-11 23:54:08.954+0000 [id=75] INFO h.model.UpdateCenter$DownloadJob#run: Installation successful: warnings-ng
master63023|2020-03-11 23:54:08.954+0000 [id=75] INFO h.m.UpdateCenter$CompleteBatchJob#run: Completing installing of plugin batch…
master63023|2020-03-11 23:54:13.624+0000 [id=10] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving
http://127.0.0.1:63023/newJob
master63023|java.lang.IllegalStateException: maybe need to rebuild plugin?
master63023| at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.get(ScriptApproval.java:118)
master63023| at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApprovalLink.getUrlName(ScriptApprovalLink.java:45)
master63023|2020-03-11 23:54:13.683+0000 [id=78] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
master63023|2020-03-11 23:54:13.748+0000 [id=85] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
master63023|2020-03-11 23:54:13.748+0000 [id=85] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
master63023|2020-03-11 23:54:13.785+0000 [id=81] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
master63023|2020-03-11 23:54:13.799+0000 [id=81] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
master63023|2020-03-11 23:54:13.800+0000 [id=84] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
master63023|2020-03-11 23:54:13.816+0000 [id=79] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
master63023|2020-03-11 23:54:14.075+0000 [id=75] INFO h.m.UpdateCenter$CompleteBatchJob#run: Completed installation of 27 plugins in 9.6 sec
When we look at the log we see that the test starts after the plugins are installed but before these plugin are initialized. This causes a problem in the script security plugin. Full log, see https://ci.jenkins.io/job/Plugins/job/warnings-ng-plugin/job/ath/17/testReport/io.jenkins.plugins.analysis.warnings/WarningsPluginUiTest/linux_8___Archive__linux_8____shouldAggregateToolsIntoSingleResult/ See also discussion in dev list. |