• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • slave-setup-plugin
    • None
    • Solaris 10

      Jenkins is trying to deploy a new JDK onto a slave and is using a GNU-extension to tar which gunzips tarfiles on the fly:

      Building remotely on despina in workspace /export/home/hudson/workspace/xunit
      Installing JDK jdk-7-oth-JPR
      Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-solaris-sparcv9.tar.gz
      Downloading 12979380bytes
      Installing /export/home/hudson/tools/JRE/jdk.sh
      [JRE] $ tar xvzf /export/home/hudson/tools/JRE/jdk.sh
      tar: z: unknown function modifier
      Usage: tar

      {c|r|t|u|x}

      [BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...]

      {file | -I include-file | -C directory file}

      ...
      ERROR: Failed to install JDK. Exit code=1
      Finished: FAILURE

      The correct way to unpack this tarfile for Solaris (or any POSIX machine) is "gunzip -c /export/home/hudson/tools/JRE/jdk.sh | tar -xvf -"

          [JENKINS-12630] Solaris tar does not support gzip (z option)

          Arne Limburg added a comment -

          Note that it is a *.sh file. I wonder if it needs to be gunzipped at all.

          Arne Limburg added a comment - Note that it is a *.sh file. I wonder if it needs to be gunzipped at all.

          It did work correctly when I did gunzip and tar pipe by hand. I didn't try if it could be turned into a self-executable.

          Floris Bruynooghe added a comment - It did work correctly when I did gunzip and tar pipe by hand. I didn't try if it could be turned into a self-executable.

          Arne Limburg added a comment -

          After installing gtar on that machine it worked, too

          Arne Limburg added a comment - After installing gtar on that machine it worked, too

          Sure, but I explicitly don't want to do that. I want to keep the test host as close to a minimal install as possible to make the tests more valuable.

          Floris Bruynooghe added a comment - Sure, but I explicitly don't want to do that. I want to keep the test host as close to a minimal install as possible to make the tests more valuable.

          Jens Schumann added a comment - - edited

          In the end we switched to gtar.

          http://www.opencsw.org/packages/gtar/

          Our local jenkins now uses this as tar and everything works.

          Jens Schumann added a comment - - edited In the end we switched to gtar. http://www.opencsw.org/packages/gtar/ Our local jenkins now uses this as tar and everything works.

          Is this issue still a problem? Is it really related to the slave-setup-plugin? If not, please move it to the master-slave component or close this issue. Thanks!

          Frederik Fromm added a comment - Is this issue still a problem? Is it really related to the slave-setup-plugin? If not, please move it to the master-slave component or close this issue. Thanks!

          The issue remains in version 1.466.2. It happens on a SunOS master installation as well. The downloaded file is named 'jdk.sh', but it is a zipped tar. Standard Sun tar does not support zipped tars.

          Jochen Hinrichsen added a comment - The issue remains in version 1.466.2. It happens on a SunOS master installation as well. The downloaded file is named 'jdk.sh', but it is a zipped tar. Standard Sun tar does not support zipped tars.

            flub Floris Bruynooghe
            flub Floris Bruynooghe
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: