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

target directory does not expand token macro parameters

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      If i.e. "${BUILD_ID}" is used as target directory parameter, the repository connector plugin does not expand this variable.
      The use of Token Macros for other attributes like artifactID or version is already implemented.

        Attachments

          Activity

          Hide
          domi Dominik Bartholdi added a comment -

          fixed with 0.9.0

          Show
          domi Dominik Bartholdi added a comment - fixed with 0.9.0
          Hide
          skundrik Slavomir Kundrik added a comment -

          Looks like version 1.1.1 still has the issue.

          from my build log:
          copy C:\Tomcat 7.0\temp\repositoryconnector-repo\com\jcraft\jsch\0.1.53\jsch-0.1.53.jar to file:/C:/jenkins/jobs/testJob1/$%7Bbuild_version%7D/lib/jsch-0.1.53.jar

          env. variable ${build_version} doesn't get expanded.

          Looking at the code on GitHub it seems to be a problem with ArtifactResolver which never calls TokenMacro expansion target directory, but it does on a target file name.

          Show
          skundrik Slavomir Kundrik added a comment - Looks like version 1.1.1 still has the issue. from my build log: copy C:\Tomcat 7.0\temp\repositoryconnector-repo\com\jcraft\jsch\0.1.53\jsch-0.1.53.jar to file:/C:/jenkins/jobs/testJob1/$%7Bbuild_version%7D/lib/jsch-0.1.53.jar env. variable ${build_version} doesn't get expanded. Looking at the code on GitHub it seems to be a problem with ArtifactResolver which never calls TokenMacro expansion target directory, but it does on a target file name.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/org/jvnet/hudson/plugins/repositoryconnector/ArtifactResolver.java
          http://jenkins-ci.org/commit/repository-connector-plugin/5b6c67122128e6f4b42d91ef7403dd1f3bf16d03
          Log:
          Merge branch 'skundrik-JENKINS-17541-target-directory-does-not-expand-token-macro-parameters' [FIXED JENKINS-17541]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jvnet/hudson/plugins/repositoryconnector/ArtifactResolver.java http://jenkins-ci.org/commit/repository-connector-plugin/5b6c67122128e6f4b42d91ef7403dd1f3bf16d03 Log: Merge branch 'skundrik- JENKINS-17541 -target-directory-does-not-expand-token-macro-parameters' [FIXED JENKINS-17541]
          Hide
          domi Dominik Bartholdi added a comment -

          fixed with version 1.1.2

          Show
          domi Dominik Bartholdi added a comment - fixed with version 1.1.2

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              oliver_2013 Oliver Fabry
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: