jenkinsci / jenkinsci/agent-setup-plugin

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

Open
#75 7 comments 0 reactions 0 assignees View on GitHub
component:slave-setup-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
11
Forks
23
Avg merge
21h 13m
Merged PRs (30d)
1

Description

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 -"

---
Originally reported by flub, imported from: Solaris tar does not support gzip (z option)


  • assignee: flub
  • status: Open
  • priority: Major
  • component(s): slave-setup-plugin
  • resolution: Unresolved
  • votes: 4
  • watchers: 3
  • imported: 20251216-225446

Raw content of original issue

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 -"

  • environment: Solaris 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.