haven-cypress-integration 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -110,7 +110,7 @@ fi
|
|
|
110
110
|
|
|
111
111
|
# Upload zipped report to S3
|
|
112
112
|
if [ -f "${ZIP_PATH}" ]; then
|
|
113
|
-
S3_BASE_KEY="artifacts/${PLAN_ID}/automation/${RUN_ID}"
|
|
113
|
+
S3_BASE_KEY="artifacts/${PRODUCT_NAME}/${PLAN_ID}/automation/${RUN_ID}"
|
|
114
114
|
S3_ZIP_KEY="${S3_BASE_KEY}/${ZIP_NAME}"
|
|
115
115
|
echo "☁️ Uploading ZIP to s3://${BUCKET_NAME}/${S3_ZIP_KEY}"
|
|
116
116
|
aws s3 cp "${ZIP_PATH}" "s3://${BUCKET_NAME}/${S3_ZIP_KEY}" || echo "❌ S3 ZIP upload failed"
|
|
@@ -205,7 +205,7 @@ async function uploadLogToS3(planId, runId) {
|
|
|
205
205
|
return null;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
const key = `artifacts/${planId}/automation/${runId}/run_log`;
|
|
208
|
+
const key = `artifacts/${process.env.PRODUCT_NAME}/${planId}/automation/${runId}/run_log`;
|
|
209
209
|
const fileStream = fs.createReadStream(logsPath);
|
|
210
210
|
|
|
211
211
|
try {
|