-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
PostBuildScript plugin DSL not working for matrix jobs.
I've tried this:
matrixPostBuildScript { buildSteps { postBuildStep { buildSteps { shell { command('/path/to/script') } } } } }
which results in:
15:27:26 ERROR: (test.dsl, line 110) No signature of method: javaposse.jobdsl.dsl.jobs.MatrixJob.matrixPostBuildScript() is applicable for argument types: (BCM1000_Z9_test_matrix_matrix_multisite$_run_closure1$_closure10) values: [BCM1000_Z9_test_matrix_matrix_multisite$_run_closure1$_closure10@4e487f7a]
and
matrixPostBuildScript { buildSteps { postBuildStep { buildSteps { shell { command('/path/to/script') } } } } }
which also results in:
15:38:52 ERROR: (BCM1000_Z9_test_matrix_matrix_multisite.dsl, line 110) No signature of method: javaposse.jobdsl.dsl.jobs.MatrixJob.matrixPostBuildScript() is applicable for argument types: (BCM1000_Z9_test_matrix_matrix_multisite$_run_closure1$_closure10) values: [BCM1000_Z9_test_matrix_matrix_multisite$_run_closure1$_closure10@42e11c53]
The config.xml section looks like
<org.jenkinsci.plugins.postbuildscript.MatrixPostBuildScript plugin="postbuildscript@3.2.0-460.va_fda_0fa_26720">
<config>
<scriptFiles>
<org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
<results>
<string>SUCCESS</string>
<string>NOT_BUILT</string>
<string>ABORTED</string>
<string>FAILURE</string>
<string>UNSTABLE</string>
</results>
<role>BOTH</role>
<executeOn>MATRIX</executeOn>
<filePath>path/to/script</filePath>
<scriptType>GENERIC</scriptType>
<sandboxed>false</sandboxed>
</org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
</scriptFiles>
<groovyScripts/>
<buildSteps/>
<markBuildUnstable>false</markBuildUnstable>
</config>
</org.jenkinsci.plugins.postbuildscript.MatrixPostBuildScript>
</publishers>
<buildWrappers>
<noformat}