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

DISPLAY variable is not overwritten when it already exists

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Cannot Reproduce
    • xvfb-plugin
    • None

    Description

      This is a followup to JENKINS-17127

      For a freestyle project with an "Invoke top-level Maven targets" build step and the Xvfb plugin enabled, the DISPLAY environment variable is not set when it already exists in the environment of the slave.

      To reproduce:

      • create a slave with an existing environment variable: DISPLAY=:99
        eg. by setting this in the .profile of the slave
      • create a freestyle job with the attached config, which basically:
        • contains a pom which outputs the DISPLAY environment variable
        • creates two buildsteps, a shell which executes mvn and a Maven buildstep doing the same.

      I get the correct output (eg. DISPLAY=:1) from the shell build step, and the wrong output (DISPLAY=:99) from the maven buildstep.

      BTW, I also tried a Maven Job, and it works there, too. The only problem exists in a maven buildstep in a freestyle job.

      Attachments

        Activity

          marc_guenther Marc Günther created issue -
          zregvart zregvart made changes -
          Field Original Value New Value
          Resolution Cannot Reproduce [ 5 ]
          Status Open [ 1 ] Resolved [ 5 ]
          zregvart zregvart made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 151472 ] JNJira + In-Review [ 207017 ]

          People

            zregvart zregvart
            marc_guenther Marc Günther
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: