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

COPYARTIFACT_BUILD_NUMBER_SUFFIX for pipelines (aka. workflow jobs)

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • copyartifact-plugin
    • None
    • jenkins 1.655

      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

            Unassigned Unassigned
            kishorerp kishorerp
            Votes:
            8 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated: