Open DavidGangel opened 7 years ago
Hi,
I tried the most simple way by using the example on the doc:
combinations=[
[ axis1: "a", axis2: "x" ],
[ axis1: "a", axis2: "y" ],
[ axis1: "a", axis2: "z" ],
[ axis1: "b", axis2: "x" ],
[ axis1: "b", axis2: "y" ],
[ axis1: "b", axis2: "z" ]
]
println combinations
combinations.each{
if(it.axis2 == 'z')
return
result[it.axis2] = result[it.axis2] ?: []
result[it.axis2] << it
}
println result
return [result, true]
Now when running the job with such a script I get NPE: Commit message: "Trying."
git config core.sparsecheckout # timeout=10 git checkout -f 990de8646e3d4f373c62e760b65a615d60aefd89 git rev-list 990de8646e3d4f373c62e760b65a615d60aefd89 # timeout=10 [[axis1:a, axis2:x], [axis1:a, axis2:y], [axis1:a, axis2:z], [axis1:b, axis2:x], [axis1:b, axis2:y], [axis1:b, axis2:z]] [x:[[axis1:a, axis2:x], [axis1:b, axis2:x]], y:[[axis1:a, axis2:y], [axis1:b, axis2:y]]] Set build name. New build name is '140-LIVE' Running x FATAL: null java.lang.NullPointerException
That's all in the console. There is no debug information at all.
Can someone please help to figure out what do I need to do in order to have a simple run?
Thank you.
Hi did you upgrade to the latest version? as there is a change to the latest version to return if to continue on error or not.
try return result
to return
Regards Jeremy
On Tue, Aug 15, 2017 at 7:49 PM, DavidGangel notifications@github.com wrote:
Hi,
I tried the most simple way by using the example on the doc:
combinations=[ [ axis1: "a", axis2: "x" ], [ axis1: "a", axis2: "y" ], [ axis1: "a", axis2: "z" ], [ axis1: "b", axis2: "x" ], [ axis1: "b", axis2: "y" ], [ axis1: "b", axis2: "z" ] ]
println combinations
combinations.each{
if(it.axis2 == 'z') return result[it.axis2] = result[it.axis2] ?: [] result[it.axis2] << it
}
println result
return [result, true]
Now when running the job with such a script I get NPE: Commit message: "Trying."
git config core.sparsecheckout # timeout=10 git checkout -f 990de8646e3d4f373c62e760b65a615d60aefd89 git rev-list 990de8646e3d4f373c62e760b65a615d60aefd89 # timeout=10 [[axis1:a, axis2:x], [axis1:a, axis2:y], [axis1:a, axis2:z], [axis1:b, axis2:x], [axis1:b, axis2:y], [axis1:b, axis2:z]] [x:[[axis1:a, axis2:x], [axis1:b, axis2:x]], y:[[axis1:a, axis2:y], [axis1:b, axis2:y]]] Set build name. New build name is '140-LIVE' Running x FATAL: null java.lang.NullPointerException
That's all in the console. There is no debug information at all.
Can someone please help to figure out what do I need to do in order to have a simple run?
Thank you.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jenkinsci/matrix-groovy-execution-strategy-plugin/issues/17#issuecomment-322426913, or mute the thread https://github.com/notifications/unsubscribe-auth/ACjgyAQyxbVjbjv9e5LBnLleiK1oFL3dks5sYWmzgaJpZM4O2nA5 .
Hi Jeremy,
Thank you for your respond. I got the same error when I just return with the single result.
I'm using:
Matrix Groovy Execution Strategy PluginMatrix Groovy Execution Strategy Plugin | 1.0.6
Hi Jeremy,
If I add user defined axis with their values to the configuration, then the NPE is not happening and the job succeeds. But the main target of this plugin shouldn't be to give the ability to define the axis diynamically without manual axis definition? Sorry if I understand something incorrectly, then please correct me.
Thank you.
Best regards, David Gangel
Hi,
Can someone please post a very simple example of the groovy script when feeding the Axis just manually through the groovy script? It would help to proceed forward to the real dynamic way.
Thank you!