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

NODE/JOB_COOWNERS comma-separated list of items is broken in Freestyle build wrappers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • ownership-plugin
    • None

      The code for list creation is broken. Instead of the user list "user1,user2,user3" we get ",user1user2user3"

      Code:

      @Deprecated
          public static @Nonnull String getCoOwnerIDs(@Nonnull OwnershipDescription descr) {
              StringBuilder coowners= new StringBuilder();
              for (String userId : getSecondaryOwnerIds(descr, true)) {
                  //TODO: Bug? Should it be != ?
                  if (coowners.length() == 0) {
                      coowners.append(",");
                  }
                  coowners.append(userId);      
              }
              return coowners.toString();
          }
      

            oleg_nenashev Oleg Nenashev
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: