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

dsl job doesn't create a build step for Performance Center using Jenkins API

      I set up a new Jenkins server  2.138.1( previous server had Jenkins version 1.7, micro focus plugin 4.0.1)  and installed this plugin version 5.5 to integrate our Load Runner scripts with jenkins. We are using dsl scripts to build all Jenkins jobs. Somehow my dsl job doesn't create a build step for Performance Center anymore and I see no specific error messages anywhere. Maybe url for API changed, or this new version of plugin requires me to update code. On my old server this script works just fine. Here is part of groovy script which isn't working anymore. Other steps related to Bitbucket/scm and post build work okay. I'm attaching groovy  script also

       

      configure { project ->
      project / builders << {'com.hp.application.automation.tools.run.PcBuilder'(plugin: 'hp-application-automation-tools-plugin@5.5') {
      //{'com.microfocus.application.automation.tools.settings.OctaneServerSettingsBuilder_-OctaneDescriptorImpl'(plugin: 'hp-application-automation-tools-plugin@5.5') {

      'pcModel' {
      'pcServerName' 'server'
      'almUserName' 'jenkinsACA'
      //'almPassword' 'adpaca'
      //'almPassword'(class:"com.hp.application.automation.tools.model.SecretContainerImpl")

      { // '__secret' 'SVgLEvbkajdZLrVegImgVQ==' //}

      'almPassword'(class:"com.hp.application.automation.tools.model.SecretContainerImpl")

      { '__secret' 'Dsr90dh/+d6p3F8Mi5p4897Scnz/rUOsGF8TEsxzRxI=' }

      'almDomain' 'NAS'
      'almProject' 'ACA'
      'testId' test.testId
      'testInstanceId' test.testInstanceId
      'timeslotDuration'

      { 'Hours' test.hours 'Minutes' test.minutes }

      'postRunAction' 'COLLATE_AND_ANALYZE'
      'vudsMode' 'false'
      delegate.description test.description
      }
      'statusBySLA' 'false'
      'runId' 0
      }
      }
      }

          [JENKINS-54632] dsl job doesn't create a build step for Performance Center using Jenkins API

          Eduard Karlin created issue -
          Eduard Karlin made changes -
          Description Original: I set up a new Jenkins server {color:#a94442} 2.138.1( previous server had Jenkins version 1.7, micro focus plugin 4.0.1) {color} and installed this plugin version 5.5 to integrate our Load Runner scripts with jenkins. We are using dsl scripts to build all Jenkins jobs. Somehow my dsl job doesn't create a build step for Performance Center anymore and I see no specific error messages anywhere. Maybe url for API changed, or this new version of plugin requires me to update code. On my old server this script works just fine. Here is part of groovy script which isn't working anymore. Other steps related to Bitbucket/scm and post build work okay. I'm attaching groovy  script also

           

          configure { project ->
           project / builders << {'com.hp.application.automation.tools.run.PcBuilder'(plugin: 'hp-application-automation-tools-plugin@5.5') {
           //{'com.microfocus.application.automation.tools.settings.OctaneServerSettingsBuilder_-OctaneDescriptorImpl'(plugin: 'hp-application-automation-tools-plugin@5.5') {

           'pcModel' {
           'pcServerName' '[cdlpfpcsvr04.es.ad.adp.com|http://cdlpfpcsvr04.es.ad.adp.com/]'
           'almUserName' 'jenkinsACA'
           //'almPassword' 'adpaca'
           //'almPassword'(class:"com.hp.application.automation.tools.model.SecretContainerImpl"){
           // '__secret' 'SVgLEvbkajdZLrVegImgVQ=='
           //}
           'almPassword'(class:"com.hp.application.automation.tools.model.SecretContainerImpl"){
           '__secret' 'Dsr90dh/+d6p3F8Mi5p4897Scnz/rUOsGF8TEsxzRxI='
           }
           'almDomain' 'NAS'
           'almProject' 'ACA'
           'testId' test.testId
           'testInstanceId' test.testInstanceId
           'timeslotDuration'{
           'Hours' test.hours
           'Minutes' test.minutes
           }
           'postRunAction' 'COLLATE_AND_ANALYZE'
           'vudsMode' 'false'
           delegate.description test.description
           }
           'statusBySLA' 'false'
           'runId' 0
           }
           }
           }
          New: I set up a new Jenkins server {color:#a94442} 2.138.1( previous server had Jenkins version 1.7, micro focus plugin 4.0.1) {color} and installed this plugin version 5.5 to integrate our Load Runner scripts with jenkins. We are using dsl scripts to build all Jenkins jobs. Somehow my dsl job doesn't create a build step for Performance Center anymore and I see no specific error messages anywhere. Maybe url for API changed, or this new version of plugin requires me to update code. On my old server this script works just fine. Here is part of groovy script which isn't working anymore. Other steps related to Bitbucket/scm and post build work okay. I'm attaching groovy  script also

           

          configure { project ->
           project / builders << {'com.hp.application.automation.tools.run.PcBuilder'(plugin: 'hp-application-automation-tools-plugin@5.5') {
           //{'com.microfocus.application.automation.tools.settings.OctaneServerSettingsBuilder_-OctaneDescriptorImpl'(plugin: 'hp-application-automation-tools-plugin@5.5') {

          'pcModel' {
           'pcServerName' 'server'
           'almUserName' 'jenkinsACA'
           //'almPassword' 'adpaca'
           //'almPassword'(class:"com.hp.application.automation.tools.model.SecretContainerImpl")

          { // '__secret' 'SVgLEvbkajdZLrVegImgVQ==' //}

          'almPassword'(class:"com.hp.application.automation.tools.model.SecretContainerImpl")

          { '__secret' 'Dsr90dh/+d6p3F8Mi5p4897Scnz/rUOsGF8TEsxzRxI=' }

          'almDomain' 'NAS'
           'almProject' 'ACA'
           'testId' test.testId
           'testInstanceId' test.testInstanceId
           'timeslotDuration'

          { 'Hours' test.hours 'Minutes' test.minutes }

          'postRunAction' 'COLLATE_AND_ANALYZE'
           'vudsMode' 'false'
           delegate.description test.description
           }
           'statusBySLA' 'false'
           'runId' 0
           }
           }
           }
          Daniel Danan made changes -
          Attachment New: pipeline_syntax.png [ 45165 ]
          Eduard Karlin made changes -
          Assignee Original: Daniel Danan [ danieldanan ] New: Eduard Karlin [ edkarlin ]
          Eduard Karlin made changes -
          Assignee Original: Eduard Karlin [ edkarlin ] New: Daniel MS [ daniel ]
          Eduard Karlin made changes -
          Assignee Original: Daniel MS [ daniel ] New: Daniel Danan [ danieldanan ]
          Daniel Gront made changes -
          Component/s New: hp-application-automation-tools-plugin [ 17322 ]
          Component/s Original: micro-focus-performance-center-integration-plugin [ 24525 ]
          Daniel Gront made changes -
          Labels New: PerformanceCenter
          Daniel Gront made changes -
          Issue Type Original: Improvement [ 4 ] New: Bug [ 1 ]
          Daniel Gront made changes -
          Environment Original: Windows 2012 Server, groovy dsl scripts are in BitBucket New: Windows 2012 Server, groovy dsl scripts are in BitBucket, plugin version 5.5
          Eduard Karlin made changes -
          Attachment New: image-2018-12-06-16-47-20-776.png [ 45392 ]

            danieldanan Daniel Danan
            edkarlin Eduard Karlin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: