Tristan Cacqueray 2f7ffba18d Update the set-zuul-log-path-fact scheme to prevent huge url
This change simplifies the path creation logic to avoid processing
user defined variables such as job name and pipeline name, which
might cause the log url to exceed the database storage presently
fixed at 255 char.

Add warning in the job's header when the url is over 255 characters,
explaining that Zuul won't report the job properly in its database;
but the job can still run.

Change-Id: I34fb5662a2f958c55f60458ce107bad2a73b9c96
2025-03-19 18:34:58 +00:00

2.6 KiB

Upload logs to IBM Cloud Storage

Before using this role, create a cloud object storage service instance and a service credential.

You may create a bucket within the instance, or allow this role to create the bucket (or buckets) for you.

Role Variables

If partitioning is not enabled, this is the name of the bucket which will be used. If partitioning is enabled, then this will be used as the prefix for the bucket name which will be separated from the partition name by an underscore. For example, "logs_42" would be the bucket name for partition 42.

If the bucket is created, this storage location will be used as the location constraint.

The API key that was created as part of the service credential. This is required.

The instance id that appears in the service credential. This is required.

The cloud storage endpoint. This is required.