Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-18812

Jenkins slaves .mavenrc file overrides MAVEN_OPTS value

    XMLWordPrintableJSON

    Details

    • Project:
      Maven
    • Flags:
      Patch, Important

      Description

      we have 4 Maven core ITs failing for 1 month on some Linux slave nodes: never Windows, not every Linux slave (but most)

      after hard debug session, we found that the value of MAVEN_OPTS defined during the IT is not taken into account

      And we finally found the root cause: there is a /home/jenkins/.mavenrc script that defines MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=256m
      this fully overrides MAVEN_OPTS value that was defined before and that our IT requires

      I could not find this .mavenrc file in Puppet.
      I suppose removing this file is not really an option: could you update this file on every slave to define:
      MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=256m ${MAVEN_OPTS}

      thanks in advance

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmcdonald Gavin McDonald
                Reporter:
                hboutemy Herve Boutemy
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m