[JIRA] (JENKINS-59700) MatrixCombinationsParameter for scripted pipeline with its checkboxes table and shortcuts(All, failed, none, etc) in "Build with parameters" section

0 views
Skip to first unread message

yunir.me@gmail.com (JIRA)

unread,
Oct 8, 2019, 5:50:02 AM10/8/19
to jenkinsc...@googlegroups.com
Yunir Salimzyanov created an issue
 
Jenkins / Improvement JENKINS-59700
MatrixCombinationsParameter for scripted pipeline with its checkboxes table and shortcuts(All, failed, none, etc) in "Build with parameters" section
Issue Type: Improvement Improvement
Assignee: ikedam
Components: matrix-combinations-parameter-plugin
Created: 2019-10-08 09:49
Labels: scripted pipeline matrix parameter
Priority: Major Major
Reporter: Yunir Salimzyanov

Would be great to implement matrix parameter table with checkboxes and shortcuts to select (such as "all", "failed", "none") in "Build with parameters" page via scripted pipeline. 

So suppose that we should modify Matrix Configuration Parameter plugin - it already has MatrixCombinationsParameterDefinition:

node('labels') {
    properties([
        parameters([
            [$class: 'MatrixCombinationsParameterDefinition', description: '', name: 'myMatrix', shortcutList: [[$class: 'ResultShortcut', exact: false, name: 'Successful', resultsToCheck: ['SUCCESS']], [$class: 'ResultShortcut', exact: false, name: 'Failed', resultsToCheck: ['FAILURE']], [$class: 'All'], [$class: 'None']]]
        ])    
    ])
}

but there will be error in "Build with parameters" page (that we should fix): 

myMatrix Not applicable. Applicable only to multi-configuration projects.

Found the line where this check happen - but do not understand how we can fix it... Maybe we should add one more check to line 21 if our pipeline has axes(found it via config.xml in matrix job) or MatrixCombinationsParameterValue specified in job itself? (to tie it with MatrixCombinationsParameterDefinition) Any support will be appreciated.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages