jx step unstash
jx step unstash
Unstashes files generated as part of a pipeline to a local file or directory or displays on the console
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’
- 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]
# 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
-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
- jx step - pipeline steps
Auto generated by spf13/cobra on 2-Sep-2020
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.