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

Name of COPYARTIFACT_BUILD_NUMER_ variable is incorrectly documented

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Plugin documentation states that "The name of the environment variable is COPYARTIFACT_BUILD_NUMBER_ with the source project name appended (in all uppercase, and characters other than A-Z replaced with underscore)."

      When the project to copy artifacts from contains a number or special characters, those characters are removed, not replaced with _.

        Attachments

          Issue Links

            Activity

            Hide
            danielbeck Daniel Beck added a comment - - edited

            They're not removed either, sequences of non-alpha characters are collapsed into one underscore. Try with project name abc123, it'll become COPYARTIFACT_BUILD_NUMBER_ABC_

            Since it says it replaces characters (plural) with underscore (singular) (instead of underscores), one could even say the description is correct

            Show
            danielbeck Daniel Beck added a comment - - edited They're not removed either, sequences of non-alpha characters are collapsed into one underscore. Try with project name abc123, it'll become COPYARTIFACT_BUILD_NUMBER_ABC_ Since it says it replaces characters (plural) with underscore (singular) (instead of underscores ), one could even say the description is correct
            Hide
            johnl1479 John Luetke added a comment -

            Touche. You do make a valid point; it's not obviously clear at first glance. I'd classify that as "reading between the lines", and ask that the behavior just be clarified a bit better.

            Show
            johnl1479 John Luetke added a comment - Touche. You do make a valid point; it's not obviously clear at first glance. I'd classify that as "reading between the lines", and ask that the behavior just be clarified a bit better.
            Show
            danielbeck Daniel Beck added a comment - https://github.com/jenkinsci/copyartifact-plugin/pull/37
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            src/main/webapp/help-buildSelector.html
            src/main/webapp/help-buildSelector_de.html
            http://jenkins-ci.org/commit/copyartifact-plugin/a20e0a999b0fd641a34c4578c1b12147e88a0776
            Log:
            [FIX JENKINS-15764] Clarify project name to env var transform.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: src/main/webapp/help-buildSelector.html src/main/webapp/help-buildSelector_de.html http://jenkins-ci.org/commit/copyartifact-plugin/a20e0a999b0fd641a34c4578c1b12147e88a0776 Log: [FIX JENKINS-15764] Clarify project name to env var transform.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: ikedam
            Path:
            src/main/webapp/help-buildSelector.html
            src/main/webapp/help-buildSelector_de.html
            http://jenkins-ci.org/commit/copyartifact-plugin/f6152e9d82e2aff6c89ecb006abdfaab04c3c094
            Log:
            Merge pull request #37 from daniel-beck/JENKINS-15764

            [FIX JENKINS-15764] Clarify project name to env var transform.

            Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/4c6e9781192b...f6152e9d82e2

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/webapp/help-buildSelector.html src/main/webapp/help-buildSelector_de.html http://jenkins-ci.org/commit/copyartifact-plugin/f6152e9d82e2aff6c89ecb006abdfaab04c3c094 Log: Merge pull request #37 from daniel-beck/ JENKINS-15764 [FIX JENKINS-15764] Clarify project name to env var transform. Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/4c6e9781192b...f6152e9d82e2
            Hide
            ikedam ikedam added a comment -

            Released the fix in copyartifact 1.31.

            Show
            ikedam ikedam added a comment - Released the fix in copyartifact 1.31.

              People

              • Assignee:
                danielbeck Daniel Beck
                Reporter:
                johnl1479 John Luetke
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: