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

Matrix project with comma in values

XMLWordPrintable

      It seems that if the values of an axis in a matrix project contains a comma, jenkins starts failing to execute the job.

      I have only one axis

      {mvnProfile}

      that contains the values:
      postgresql,build-flex
      mysql,build-flex
      oracle,build-flex

      the command of my maven project is : mvn clean install -P ${mvnProfile}

      It works fine when there is only one profile but fails silently with a list separated with comma. I don't have logs to attach as it just says: Job xxxx return with FAILURE). Also note that I have a 404 when I click to view the 'sub job' execution details.

      I have tried to quote, escape, urlencode the comma but it does not solve the issue.

      My understanding of the bug is that the comma is also the separator of axis in jenkins. When we have multiple axis, in the URL, we can see they are comma separated: /myjob/.../axis1=value,axis2=value

      I suspect jenkins is interpreting the comma in my parameter value as an axis separator and starts failing.

      To be continued...
      M.

            Unassigned Unassigned
            mpousse Mathieu POUSSE
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: