The commit.txt file produced by each Cloudsmith build job is required to
run the corresponding publication job. Therefore, the artifact lifetime
for the former must be long enough to prevent the file from expiring
before the publication job is run. Set the lifetime of the artifacts
created by Cloudsmith build jobs to one month to ensure that the
publication jobs can access them.
artifacts:
paths:
- commit.txt
+ expire_in: "1 month"
rpms-cloudsmith-build-private:
<<: *rpm_build_job_private
artifacts:
paths:
- commit.txt
+ expire_in: "1 month"
# Publish Cloudsmith packages