COPYARTIFACT_BUILD_NUMBER_SUFFIX for pipelines (aka. workflow jobs)

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Does the COPYARTIFACT_BUILD_NUMBER_SUFFIX work on expected lines in workflow/pipeline jobs? copy artifact command am using is

      step([$class: 'CopyArtifact', filter: '*.rpm', fingerprintArtifacts: true, projectName: 'test_pkg', resultVariableSuffix: 'testsuffix', selector: [$class: 'ParameterizedBuildSelector', parameterName: 'testparam'], target: 'test_packages'])

      when i do

      println COPYARTIFACT_BUILD_NUMBER_TESTSUFFIX

      am getting the below error

      groovy.lang.MissingPropertyException: No such property: COPYARTIFACT_BUILD_NUMBER_TESTSUFFIX for class: WorkflowScript

      println env.COPYARTIFACT_BUILD_NUMBER_TESTSUFFIX gives me null

            Assignee:
            Unassigned
            Reporter:
            kishorerp
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: