Re: Jenkins Robot test job failure


Luis Gomez
 

BTW this patch is also needed to avoid unstable builds:


BR/Luis


On Oct 20, 2021, at 3:54 PM, Luis Gomez via lists.opendaylight.org <ecelgp=gmail.com@...> wrote:

Thanks Sangwook for bringing this. I think the .netrc file was added in the past to perform REST updates to the test dashboards but that is needed anymore so I think this should work:


BR/Luis

On Oct 20, 2021, at 12:55 PM, Ha, Sangwook <sangwook.ha@...> wrote:

Luis,

Currently Jenkins robot test jobs are failing, even when all the Robot tests pass, because of an error in the post build script step where it's trying to create a file "$HOME/.netrc" from "odl-elastic-cloud", which has been removed from the Jenkins environment according to Anil.

For example, the following log is from openflowplugin-csit-verify-1node-sanity #401

https://jenkins.opendaylight.org/releng/job/openflowplugin-csit-verify-1node-sanity/401/consoleText 

[PostBuildScript] - [INFO] Executing post build scripts. 
provisioning config files... 
not able to provide the file [ManagedFile: id=odl-elastic-cloud, targetLocation=${HOME}/.netrc, variable=], can't be resolved by any provider - maybe it got deleted by an administrator? 
[PostBuildScript] - [ERROR] An error occured during post-build processing. 
org.jenkinsci.plugins.postbuildscript.PostBuildScriptException: hudson.AbortException: not able to provide the file [ManagedFile: id=odl-elastic-cloud, targetLocation=${HOME}/.netrc, variable=], can't be resolved by any provider - maybe it got deleted by an administrator? 
at org.jenkinsci.plugins.postbuildscript.processor.Processor.processBuildSteps(Processor.java:190) 
at org.jenkinsci.plugins.postbuildscript.processor.Processor.processScripts(Processor.java:91) 
at org.jenkinsci.plugins.postbuildscript.processor.Processor.process(Processor.java:79) 
at org.jenkinsci.plugins.postbuildscript.processor.Processor.process(Processor.java:73) 
at org.jenkinsci.plugins.postbuildscript.PostBuildScript.perform(PostBuildScript.java:116) 
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:803) 
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:752) 
at hudson.model.Build$BuildExecution.post2(Build.java:177) 
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:697) 
at hudson.model.Run.execute(Run.java:1932) 
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
at hudson.model.ResourceController.execute(ResourceController.java:97) 
at hudson.model.Executor.run(Executor.java:429) 
Caused by: hudson.AbortException: not able to provide the file [ManagedFile: id=odl-elastic-cloud, targetLocation=${HOME}/.netrc, variable=], can't be resolved by any provider - maybe it got deleted by an administrator? 
at org.jenkinsci.lib.configprovider.model.ConfigFileManager.provisionConfigFile(ConfigFileManager.java:72) 
at org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFileUtil.provisionConfigFiles(ManagedFileUtil.java:82) 
at org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep.perform(ConfigFileBuildStep.java:52) 
at org.jenkinsci.plugins.postbuildscript.processor.Processor.processBuildSteps(Processor.java:180) 
... 13 more 
Build step 'Execute scripts' changed build result to UNSTABLE 
Build step 'Execute scripts' marked build as failure 
[PostBuildScript] - [INFO] Executing post build scripts. 
---

Do you know whether we still need the file for post-build processing?

Thanks,
Sangwook





Join integration-dev@lists.opendaylight.org to automatically receive all group messages.