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

Environment variables don't work in the CVS ROOT Field

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cvs-plugin
    • None
    • Latest Jenkins and latest CVS plugin

      I set up a new environment variable(MYCVSROOT -> :pserver:myuser:mypassw@myhost:/mycvsrepo) on the configure system page.
      I created a new job and I wanted to use this environment variable(%MYCVSROOT% or $MYCVSROOT) in the Source Code Management/CVS Root field, but the value of the MYCVSROOT does not substitued.

          [JENKINS-13186] Environment variables don't work in the CVS ROOT Field

          Do environmental variables work in any of the fields for you? We don't currently parse them for the 'known hosts' and 'private key location' fields, but every other field should be parsed for environmental variables. It could be that we don't have a set of environmental variables at the time we do the parsing (although I don't know why this would be the case), but this would result in no fields being parsed so should be easy to check.

          Michael Clarke added a comment - Do environmental variables work in any of the fields for you? We don't currently parse them for the 'known hosts' and 'private key location' fields, but every other field should be parsed for environmental variables. It could be that we don't have a set of environmental variables at the time we do the parsing (although I don't know why this would be the case), but this would result in no fields being parsed so should be easy to check.

          Yes, in any another fileds the environment variables are work, but not in the cvs root field.

          Torresz Daniel added a comment - Yes, in any another fileds the environment variables are work, but not in the cvs root field.

          I am having a similar issue, windows environment
          if I use $ e.g. $CVSBranchTag for branch name it substitutes but no matter what I do $CVSModuleName, %CVSModuleName% for the remote module name field it won't substitute.

          steve robertson added a comment - I am having a similar issue, windows environment if I use $ e.g. $CVSBranchTag for branch name it substitutes but no matter what I do $CVSModuleName, %CVSModuleName% for the remote module name field it won't substitute.

          Code changed in jenkins
          User: mc1arke
          Path:
          src/main/java/hudson/scm/AbstractCvs.java
          src/main/java/hudson/scm/CVSSCM.java
          src/main/java/hudson/scm/CvsProjectset.java
          http://jenkins-ci.org/commit/cvs-plugin/bfc1a2dd6034895a31267bfaf3275d59bae0b592
          Log:
          [FIXED JENKINS-13186] Perform environmental expansion on module name fields

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: mc1arke Path: src/main/java/hudson/scm/AbstractCvs.java src/main/java/hudson/scm/CVSSCM.java src/main/java/hudson/scm/CvsProjectset.java http://jenkins-ci.org/commit/cvs-plugin/bfc1a2dd6034895a31267bfaf3275d59bae0b592 Log: [FIXED JENKINS-13186] Perform environmental expansion on module name fields

            Unassigned Unassigned
            babazs Torresz Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: