gcs-resource | Concourse resource for interacting with Google Cloud Storage | GCP library
kandi X-RAY | gcs-resource Summary
kandi X-RAY | gcs-resource Summary
Versions objects in a Google Cloud Storage (GCS) bucket, by pattern-matching filenames to identify version numbers. This resource is based on the official S3 resource.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- UploadFile uploads a file
- Extract extracts a extraction from a path
- unpackGzip unpacks a gzip into a path
- Run the GCS client
- NewGCSClient returns a new GCS client
- GetBucketObjectVersions returns a list of all buckets matching the given source .
- unpack unpacks the source directory into destination directory .
- Prefix returns a prefix for the given regex
- getMimeType returns the MIME type of a file
- MatchUnanchored matches a pattern
gcs-resource Key Features
gcs-resource Examples and Code Snippets
Community Discussions
Trending Discussions on gcs-resource
QUESTION
I've found excellent example how to read/update existing file in GCP bucket:
...ANSWER
Answered 2019-Nov-18 at 14:12@Autowired
private Storage gcs;
public void upload(String report) {
gcs.create(BlobInfo
.newBuilder("bucket_name", "fileName.json")
.build(),
report.getBytes());
}
QUESTION
I have two jobs viz. build
and publish
. I want publish
to trigger after build
is done. So, I am using an external resource gcs-resource
https://github.com/frodenas/gcs-resource
Following is my pipeline.yml
:
ANSWER
Answered 2018-Nov-29 at 02:59As Marco mentioned, the problem was with versioning. I solved my issue using these two steps:
- Enabled versioning on my GCS Bucket https://cloud.google.com/storage/docs/object-versioning#_Enabling
- Replaces
regexp
withversioned_file
as mentioned in the docs https://github.com/frodenas/gcs-resource#file-names
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gcs-resource
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page