Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-20183

ArtifactoryServer.publishBuildInfo now requires to run on a node

    Details

    • Regression:
      Yes

      Description

      Hello,

      This is regarding the jenkinsci/artifactory-plugin.

      I used to be able to call `ArtifactoryServer.publishBuildInfo` on without mentioning a node or on a node with an empty workspace. I updated our Artifactory Jenkins plugin, but now we have the following error popping up :
      ```
      org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing
      Perhaps you forgot to surround the code with a step that provides this, such as: node at [...]
      org.jfrog.hudson.pipeline.common.types.ArtifactoryServer.publishBuildInfo(ArtifactoryServer.java:227)
      ```

      I think this new behavior may have originated with the following commit (I think) : https://github.com/jenkinsci/artifactory-plugin/commit/5bd26c2cac41ebdcc07d5aa4eca2ac5883c2ab69#diff-e1a12dbfddc617d9c9d5d39b4b2a5039

      It is it an intended behavior, or a regression?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              franknarf8 François Genois
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: