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

CVS-Plugin: Password file "${user.home}/.cvspass" is ignored under some conditions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cvs-plugin
    • Labels:
      None
    • Environment:
      Tomcat6 / RHEL5
    • Similar Issues:

      Description

      Jenkins' new Netbeans-based CVS-Plugin doesn't use the ".cvspass" file. Setting the password on every job isn't a suitable solution (huge number of jobs, security issues). The ".cvspass" file should be used instead.

        Attachments

          Activity

          Hide
          sst_lfe_build Sandstone added a comment -

          We should also allow for CVS plugin to perform variable expansion on "Private Key Location" and "Known Hosts Location". This would be helpful while configuring slaves.

          Show
          sst_lfe_build Sandstone added a comment - We should also allow for CVS plugin to perform variable expansion on "Private Key Location" and "Known Hosts Location". This would be helpful while configuring slaves.
          Hide
          mc1arke Michael Clarke added a comment -

          Lowering priority as there is a workaround to this. There are plans to allow a global setting of passwords for a Jenkins instance but we need to clear functional issues first

          Show
          mc1arke Michael Clarke added a comment - Lowering priority as there is a workaround to this. There are plans to allow a global setting of passwords for a Jenkins instance but we need to clear functional issues first
          Hide
          metyl Maciej Matys added a comment - - edited

          Still not works in 2.3 after upgrade from 1.6.
          SCM tag w config.xml has changed, after manual change to:
          <scm ...>
          <cvsroot></cvsroot>
          <module></module>
          <canUseUpdate></canUseUpdate>
          <useHeadIfNotFound></useHeadIfNotFound>
          <flatten>true</flatten>
          <isTag>false</isTag>
          <excludedRegions></excludedRegions>
          </scm>
          pass is taken from ~.cvspass the problem with matching string still exists, in .cvspass we can have sth like /1 :pserver:and so on, this forma is not supported at all.

          Show
          metyl Maciej Matys added a comment - - edited Still not works in 2.3 after upgrade from 1.6. SCM tag w config.xml has changed, after manual change to: <scm ...> <cvsroot></cvsroot> <module></module> <canUseUpdate></canUseUpdate> <useHeadIfNotFound></useHeadIfNotFound> <flatten>true</flatten> <isTag>false</isTag> <excludedRegions></excludedRegions> </scm> pass is taken from ~.cvspass the problem with matching string still exists, in .cvspass we can have sth like /1 :pserver:and so on, this forma is not supported at all.
          Hide
          mc1arke Michael Clarke added a comment -

          Maciej: You'll have to give a bit more detail about what isn't matching - uploading your job config and cvspass files with your usernames, hostnames and port numbers obscured would be the most help (providing you obscure the values consitently between the config.xml and cvspass). Because CVSROOT takes so many formats, we need contributions to be able to resolve issues.

          Show
          mc1arke Michael Clarke added a comment - Maciej: You'll have to give a bit more detail about what isn't matching - uploading your job config and cvspass files with your usernames, hostnames and port numbers obscured would be the most help (providing you obscure the values consitently between the config.xml and cvspass). Because CVSROOT takes so many formats, we need contributions to be able to resolve issues.
          Hide
          scm_issue_link 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/CvsAuthentication.java
          src/main/java/hudson/scm/CvsProjectset.java
          src/main/java/hudson/scm/ICvsDescriptor.java
          src/main/java/hudson/scm/cvstagging/CvsTagActionWorker.java
          src/main/java/hudson/scm/cvstagging/LegacyTagAction.java
          src/main/resources/hudson/scm/CVSSCM/global.jelly
          src/main/resources/hudson/scm/CvsProjectset/help-password.html
          src/main/resources/hudson/scm/CvsProjectset/help-username.html
          src/test/java/hudson/scm/CVSSCMTest.java
          http://jenkins-ci.org/commit/cvs-plugin/2aedd2fe0b32162669daa072bd60384ad22f193e
          Log:
          [FIXED JENKINS-12582] Adding CVS Authentication across projects

          Show
          scm_issue_link 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/CvsAuthentication.java src/main/java/hudson/scm/CvsProjectset.java src/main/java/hudson/scm/ICvsDescriptor.java src/main/java/hudson/scm/cvstagging/CvsTagActionWorker.java src/main/java/hudson/scm/cvstagging/LegacyTagAction.java src/main/resources/hudson/scm/CVSSCM/global.jelly src/main/resources/hudson/scm/CvsProjectset/help-password.html src/main/resources/hudson/scm/CvsProjectset/help-username.html src/test/java/hudson/scm/CVSSCMTest.java http://jenkins-ci.org/commit/cvs-plugin/2aedd2fe0b32162669daa072bd60384ad22f193e Log: [FIXED JENKINS-12582] Adding CVS Authentication across projects

            People

            • Assignee:
              mc1arke Michael Clarke
              Reporter:
              chrisabit chrisabit
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: