Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1424

Unable to use rtAddInteractivePromotion in jenkins

    XMLWordPrintable

    Details

      Description

      Hi,

      When trying to use the rtAddInteractivePromotion in the plugin, we see the following error:

       

      A problem occurred while processing the request.

       

      And in the jenkins logs:

       

      net.sf.json.JSONException: null object

       

       

      Those are the relevant steps in the jenkinsfile:

                      rtUpload (serverId: 'Artifactory',                     spec: """{                         "files": [                             {                             "pattern": "*.nupkg",                             "props": "build.url=${BUILD_URL}",                             "target": "nuget-local/"                             },                             {                             "pattern": "*.nupkg",                             "props": "build.url=${BUILD_URL}",                             "target": "nuget-local/"                             }                         ]                     }""",                     buildName: "xxx",                     buildNumber: "${BUILD_NUMBER}"                 )                 rtPublishBuildInfo (                     serverId: "Artifactory",                     buildName: "xxx",                     buildNumber: "${BUILD_NUMBER}"                 )                 rtBuildInfo (                     captureEnv: true,                     buildName: "xxx",                     buildNumber: "${BUILD_NUMBER}"                 )                 rtAddInteractivePromotion (                     serverId: 'Artifactory',                                                           buildName: "xxx",                      buildNumber: "${BUILD_NUMBER}",                                                                                                                                                                        comment: "Release Candidate",                                                  status: 'QA',                     includeDependencies: true,                                                                           failFast: true,                     copy: true                     )
      
      

      Have we missed anything?

      Could it be permissions issue? 

       

      Thanks,

      Dor

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yahavi Yahav Itzhak
              Reporter:
              Lev Dor Lev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: