-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.182
Yaml Axis Plugin 0.2.0
When using a Matrix job by following the exact procedure in Yaml Axis Plugin Usage, the job return SUCCESS if the defined yaml file doesn't exists.
... First time build. Skipping changelog. [WARN] Can not read yamlFile: axis.yml java.nio.file.NoSuchFileException: /var/jenkins_home/workspace/test/axis.yml at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) at java.nio.file.Files.newByteChannel(Files.java:361) at java.nio.file.Files.newByteChannel(Files.java:407) at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384) at java.nio.file.Files.newInputStream(Files.java:152) at hudson.FilePath.read(FilePath.java:1945) at hudson.FilePath$read.call(Unknown Source) at org.jenkinsci.plugins.yamlaxis.YamlFileLoader.getContent(YamlFileLoader.groovy:21) at org.jenkinsci.plugins.yamlaxis.YamlLoader.loadStrings(YamlLoader.groovy:5) at org.jenkinsci.plugins.yamlaxis.YamlLoader$loadStrings.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) at org.jenkinsci.plugins.yamlaxis.YamlAxis.rebuild(YamlAxis.groovy:48) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:641) at hudson.matrix.MatrixProject.getRunConfiguration(MatrixProject.java:691) at hudson.matrix.MatrixBuild$MatrixBuildExecution.doRun(MatrixBuild.java:370) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1818) at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) [WARN] Can not read yamlFile: axis.yml java.nio.file.NoSuchFileException: /var/jenkins_home/workspace/test/axis.yml at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) at java.nio.file.Files.newByteChannel(Files.java:361) at java.nio.file.Files.newByteChannel(Files.java:407) at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384) at java.nio.file.Files.newInputStream(Files.java:152) at hudson.FilePath.read(FilePath.java:1945) at hudson.FilePath$read.call(Unknown Source) at org.jenkinsci.plugins.yamlaxis.YamlFileLoader.getContent(YamlFileLoader.groovy:21) at org.jenkinsci.plugins.yamlaxis.YamlLoader.loadMaps(YamlLoader.groovy:19) at org.jenkinsci.plugins.yamlaxis.YamlLoader$loadMaps$0.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) at org.jenkinsci.plugins.yamlaxis.YamlMatrixExecutionStrategy.loadExcludes(YamlMatrixExecutionStrategy.groovy:60) at org.jenkinsci.plugins.yamlaxis.YamlMatrixExecutionStrategy.this$5$loadExcludes(YamlMatrixExecutionStrategy.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166) at org.jenkinsci.plugins.yamlaxis.YamlMatrixExecutionStrategy.decideOrder(YamlMatrixExecutionStrategy.groovy:39) at org.jenkinsci.plugins.yamlaxis.YamlMatrixExecutionStrategy$decideOrder.callCurrent(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174) at org.jenkinsci.plugins.yamlaxis.BaseMES.run(BaseMES.groovy:38) at hudson.matrix.MatrixBuild$MatrixBuildExecution.doRun(MatrixBuild.java:375) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1818) at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) excludes=[] Running YamlMatrixExecutionStrategy Finished: SUCCESS