HI Team,

      Do you provide the support for http://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin in your DSL ?

      I was not able to find any syntax for this plugin and i would like to configure jmeter reports generation from this performance plugin via DSL.

      Kindly help.

      Thanks & Best Regards,
      Surendran

          [JENKINS-41086] Performance plugin support in dsl plugin

          Surendran Manickam created issue -
          Surendran Manickam made changes -
          Issue Type Original: Bug [ 1 ] New: Improvement [ 4 ]
          Surendran Manickam made changes -
          Issue Type Original: Improvement [ 4 ] New: New Feature [ 2 ]

          This is supported with the Automatically Generated DSL:

          job(String name) {
            publishers {
              performancePublisher {
                errorFailedThreshold(int value)
                errorUnstableThreshold(int value)
                // The thresholds settings should be delimited by a new line character "\n".
                errorUnstableResponseTimeThreshold(String value)
                relativeFailedThresholdPositive(double value)
                relativeFailedThresholdNegative(double value)
                relativeUnstableThresholdPositive(double value)
                relativeUnstableThresholdNegative(double value)
                nthBuildNumber(int value)
                modePerformancePerTestCase(boolean value)
                configType(String value)
                modeOfThreshold(boolean value)
                failBuildIfNoResultFile(boolean value)
                compareBuildPrevious(boolean value)
                modeThroughput(boolean value)
                ignoreFailedBuilds(boolean value)
                ignoreUnstableBuilds(boolean value)
                // Standard Mode activates upper box and ignores lower box.
                modeEvaluation(boolean value)
                persistConstraintLog(boolean value)
              }
            }
          } 
          

          Daniel Spilker added a comment - This is supported with the Automatically Generated DSL : job( String name) { publishers { performancePublisher { errorFailedThreshold( int value) errorUnstableThreshold( int value) // The thresholds settings should be delimited by a new line character "\n" . errorUnstableResponseTimeThreshold( String value) relativeFailedThresholdPositive( double value) relativeFailedThresholdNegative( double value) relativeUnstableThresholdPositive( double value) relativeUnstableThresholdNegative( double value) nthBuildNumber( int value) modePerformancePerTestCase( boolean value) configType( String value) modeOfThreshold( boolean value) failBuildIfNoResultFile( boolean value) compareBuildPrevious( boolean value) modeThroughput( boolean value) ignoreFailedBuilds( boolean value) ignoreUnstableBuilds( boolean value) // Standard Mode activates upper box and ignores lower box. modeEvaluation( boolean value) persistConstraintLog( boolean value) } } }
          Daniel Spilker made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Spilker made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Surendran Manickam made changes -
          Attachment New: 2017-01-16_15-57-02.jpg [ 35485 ]
          Surendran Manickam made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

          Thanks daspilker for your immediate response.

          But i was trying to add JMeter reports via the plugin and i was not able to find that in the above syntax, could you please help me with this format as well?
          attached the screenshot for reference.

          please help,

          Thanks & Best regards,
          Surendran

          Surendran Manickam added a comment - Thanks daspilker for your immediate response. But i was trying to add JMeter reports via the plugin and i was not able to find that in the above syntax, could you please help me with this format as well? attached the screenshot for reference. please help, Thanks & Best regards, Surendran

          Job DSL uses the Structs Plugin to generate a model of the Performance Plugin. This fails for the parsers and constraints options due to generics wildcards in the parameter type. This must be either fixed in the Performance plugin by removing the wildcards or in the Structs plugin by adding support for wildcards.

          This can be reproduced in Script Console:

          import hudson.plugins.performance.*
          import org.jenkinsci.plugins.structs.describable.*
            
          new DescribableModel(PerformancePublisher)
          

          Result

          PerformancePublisher(errorFailedThreshold: int, errorUnstableThreshold: int, errorUnstableResponseTimeThreshold: String, relativeFailedThresholdPositive: double, relativeFailedThresholdNegative: double, relativeUnstableThresholdPositive: double, relativeUnstableThresholdNegative: double, nthBuildNumber: int, modePerformancePerTestCase: boolean, configType: String, modeOfThreshold: boolean, failBuildIfNoResultFile: boolean, compareBuildPrevious: boolean, parsers: java.lang.UnsupportedOperationException: do not know how to categorize attributes of type ? extends hudson.plugins.performance.PerformanceReportParser[], modeThroughput: boolean, constraints?: java.lang.UnsupportedOperationException: do not know how to categorize attributes of type ? extends hudson.plugins.performance.constraints.AbstractConstraint[], ignoreFailedBuilds?: boolean, ignoreUnstableBuilds?: boolean, modeEvaluation?: boolean, persistConstraintLog?: boolean)
          

          Daniel Spilker added a comment - Job DSL uses the Structs Plugin to generate a model of the Performance Plugin. This fails for the parsers and constraints options due to generics wildcards in the parameter type. This must be either fixed in the Performance plugin by removing the wildcards or in the Structs plugin by adding support for wildcards. This can be reproduced in Script Console: import hudson.plugins.performance.* import org.jenkinsci.plugins.structs.describable.* new DescribableModel(PerformancePublisher) Result PerformancePublisher(errorFailedThreshold: int , errorUnstableThreshold: int , errorUnstableResponseTimeThreshold: String , relativeFailedThresholdPositive: double , relativeFailedThresholdNegative: double , relativeUnstableThresholdPositive: double , relativeUnstableThresholdNegative: double , nthBuildNumber: int , modePerformancePerTestCase: boolean , configType: String , modeOfThreshold: boolean , failBuildIfNoResultFile: boolean , compareBuildPrevious: boolean , parsers: java.lang.UnsupportedOperationException: do not know how to categorize attributes of type ? extends hudson.plugins.performance.PerformanceReportParser[], modeThroughput: boolean , constraints?: java.lang.UnsupportedOperationException: do not know how to categorize attributes of type ? extends hudson.plugins.performance.constraints.AbstractConstraint[], ignoreFailedBuilds?: boolean , ignoreUnstableBuilds?: boolean , modeEvaluation?: boolean , persistConstraintLog?: boolean )

            undera Andrey Pokhilko
            i069846 Surendran Manickam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: