rl-rock 1.3.3 → 1.3.5
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/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2386,9 +2386,7 @@ var Sandbox = class extends AbstractSandbox {
|
|
|
2386
2386
|
const bucketName = envVars.ROCK_OSS_BUCKET_NAME ?? "";
|
|
2387
2387
|
const region = envVars.ROCK_OSS_BUCKET_REGION ?? "";
|
|
2388
2388
|
const endpoint = `https://oss-${region}.aliyuncs.com`;
|
|
2389
|
-
const
|
|
2390
|
-
await this.arun(ossutilConfigCmd, { mode: "nohup", waitTimeout: 60 });
|
|
2391
|
-
const uploadToOssCmd = `ossutil cp ${remotePath} oss://${bucketName}/${objectName}`;
|
|
2389
|
+
const uploadToOssCmd = `ossutil cp '${remotePath}' 'oss://${bucketName}/${objectName}' --access-key-id '${credentials.accessKeyId}' --access-key-secret '${credentials.accessKeySecret}' --sts-token '${credentials.securityToken}' --endpoint '${endpoint}' --region '${region}'`;
|
|
2392
2390
|
const uploadResult = await this.arun(uploadToOssCmd, { mode: "nohup", waitTimeout: 600 });
|
|
2393
2391
|
if (uploadResult.exitCode !== 0) {
|
|
2394
2392
|
return { success: false, message: `Sandbox to OSS upload failed: ${uploadResult.output}` };
|