WARNING: Jenkins X version 2.x is unmaintained. Do not use it.
Please refer to the v3 documentation for the latest supported version.
jx step unstash
list of jx commands
jx step unstash
Unstashes files generated as part of a pipeline to a local file or directory or displays on the console
Synopsis
This pipeline step unstashes the files in storage to a local file or the console
Currently Jenkins X supports storing files into a branch of a git repository or in cloud blob storage like S3, GCS, Azure blobs etc.
When using Cloud Storage we use URLs like ‘s3://nameOfBucket’ on AWS, ‘gs://anotherBucket’ on GCP or on Azure ‘azblob://thatBucket’
See Also:
- jx step stash : https://jenkins-x.io/commands/jx_step_stash
- jx edit storage : https://jenkins-x.io/commands/jx_edit_storage
jx step unstash [flags]
Examples
# unstash a file to the reports directory
jx step unstash --url s3://mybucket/tests/myOrg/myRepo/mybranch/3/junit.xml -o reports
# unstash the file to the from GCS to the console
jx step unstash -u gs://mybucket/foo/bar/output.log
Options
-h, --help help for unstash
-o, --output string The output file or directory
-t, --timeout duration The timeout period before we should fail unstashing the entry (default 30s)
-u, --url string The fully qualified URL to the file to unstash including the storage host, path and file name
Options inherited from parent commands
-b, --batch-mode Runs in batch mode without prompting for user input
--verbose Enables verbose output. The environment variable JX_LOG_LEVEL has precedence over this flag and allows setting the logging level to any value of: panic, fatal, error, warn, info, debug, trace
SEE ALSO
- jx step - pipeline steps
Auto generated by spf13/cobra on 2-Sep-2020
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 2, 2020: updated jx commands & API docs from 2.1.138 (4fc0bedc90)