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

groovy-axis to accept number array

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • groovyaxis-plugin
    • None
    • groovyaxis 0.3
      jenkins 2.23

      The following results in "default" being the value rather than the number(s). While quoting all these numbers worked, I suspect this could be done in the plugin.

      if (context == null) {
          return [1]
      }
      
      def test = context.build.buildVariableResolver.resolve("test")
      
      if (test == "oltp") {
          return [1,8,16,32,64,96,128]
      }
      
      if (test == "oltp_decimal") {
          return [1,8,16,32,64,96,128]
      }
      
      return [1]
      

            emanuelez emanuelez
            grooverdan Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: