Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36860

Add support to select matrix selection from previous build

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Ubuntu 14.04 x86_64
      OpenJDK7
      Jenkins 2.14
      Matrix Configuration Parameter Plugin 1.0.9

      Currently,
      the matrix-combinations-parameter plugin could support 4 auto-selection:
      Successful
      Failed
      All
      None

      I'd like to have the 5th auto-selection "Previous"
      to be able to select based on the previous build selection.

          [JENKINS-36860] Add support to select matrix selection from previous build

          Rick Liu created issue -
          Rick Liu made changes -
          Attachment New: Selection_005.png [ 33402 ]

          Rick Liu added a comment -

          From Jenkins ICON,
          it looks like there are 5 different status to represent the previous build status of a matrix cell:
          Success
          Failed
          Success - skipped
          Failed - skipped
          Not run

          <img width="24" height="24" tooltip="Success " src="/static/54ffa35b/images/24x24/blue.png" alt="Success" style="" title="Success ">
          <img width="24" height="24" tooltip="Failed " src="/static/ebce1237/images/24x24/red.png" alt="Failed" style="" title="Failed ">
          <img width="24" height="24" tooltip="Success - skipped" src="/static/54ffa35b/images/24x24/blue.png" alt="Success" style="opacity:0.5" title="Success - skipped">
          <img width="24" height="24" tooltip="Failed - skipped" src="/static/ebce1237/images/24x24/red.png" alt="Failed" style="opacity:0.5" title="Failed - skipped">
          <img width="24" height="24" tooltip="Not run" src="/static/54ffa35b/images/24x24/grey.png" alt="Not run" title="Not run">
          

          I'd guess if I could enhance the `if-else` block in `drawMainBall()`
          from `./src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinition/index.groovy`,
          and update the javascript function `click2Change()` in `drawMainLinksJS()`,
          then this probably could work?

          Rick Liu added a comment - From Jenkins ICON, it looks like there are 5 different status to represent the previous build status of a matrix cell: Success Failed Success - skipped Failed - skipped Not run <img width= "24" height= "24" tooltip= "Success " src= "/ static /54ffa35b/images/24x24/blue.png" alt= "Success" style= "" title=" Success "> <img width= "24" height= "24" tooltip= "Failed " src= "/ static /ebce1237/images/24x24/red.png" alt= "Failed" style= "" title=" Failed "> <img width= "24" height= "24" tooltip= "Success - skipped" src= "/ static /54ffa35b/images/24x24/blue.png" alt= "Success" style= "opacity:0.5" title= "Success - skipped" > <img width= "24" height= "24" tooltip= "Failed - skipped" src= "/ static /ebce1237/images/24x24/red.png" alt= "Failed" style= "opacity:0.5" title= "Failed - skipped" > <img width= "24" height= "24" tooltip= "Not run" src= "/ static /54ffa35b/images/24x24/grey.png" alt= "Not run" title= "Not run" > I'd guess if I could enhance the `if-else` block in `drawMainBall()` from `./src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinition/index.groovy`, and update the javascript function `click2Change()` in `drawMainLinksJS()`, then this probably could work?
          Rick Liu made changes -
          Assignee New: Rick Liu [ totoroliu ]

          Rick Liu added a comment -

          Rick Liu added a comment - Created pull-request: https://github.com/jenkinsci/matrix-combinations-plugin/pull/14
          Rick Liu made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          ikedam made changes -
          Link New: This issue is related to JENKINS-36894 [ JENKINS-36894 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 173607 ] New: JNJira + In-Review [ 185852 ]

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/matrix_configuration_parameter/shortcut/MatrixCombinationsShortcut.java
          src/main/java/hudson/plugins/matrix_configuration_parameter/shortcut/PreviousShortcut.java
          src/test/java/hudson/plugins/matrix_configuration_parameter/shortcut/PreviousShortcutTest.java
          http://jenkins-ci.org/commit/matrix-combinations-plugin/913ae0cc48beed87e4bc4652609c57262ecd1260
          Log:
          JENKINS-36894JENKINS-36860 Add PreviousShortcut

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/matrix_configuration_parameter/shortcut/MatrixCombinationsShortcut.java src/main/java/hudson/plugins/matrix_configuration_parameter/shortcut/PreviousShortcut.java src/test/java/hudson/plugins/matrix_configuration_parameter/shortcut/PreviousShortcutTest.java http://jenkins-ci.org/commit/matrix-combinations-plugin/913ae0cc48beed87e4bc4652609c57262ecd1260 Log: JENKINS-36894 JENKINS-36860 Add PreviousShortcut
          Rick Liu made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Closed [ 6 ]

            totoroliu Rick Liu
            totoroliu Rick Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: