Skip to content

Commit 79db396

Browse files
authored
Merge pull request #1347 from Azure/fix-afterscript
Fix afterscript used in sdk automation pipeline
2 parents 6b47f73 + 0ea5346 commit 79db396

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

sdkauto_afterscript.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
const basePath = process.argv[2];
2-
require("child_process").execSync(`npm install --prefix generator`, {stdio: 'inherit'});
3-
require("child_process").execSync(`npm run postprocessor ${basePath} --prefix generator`, {stdio: 'inherit'});
4-
require("child_process").execSync(`npm install --prefix tools`, {stdio: 'inherit'});
5-
require("child_process").execSync(`npm run test --prefix tools`, {stdio: 'inherit'});
2+
require("child_process").execSync(`npm install --prefix generator`, {
3+
stdio: "inherit",
4+
});
5+
require("child_process").execSync(
6+
`npm run postprocessor ${basePath} --prefix generator`,
7+
{ stdio: "inherit" }
8+
);
9+
try {
10+
require("child_process").execSync(`npm install --prefix tools`, {
11+
stdio: "inherit",
12+
});
13+
require("child_process").execSync(`npm run test --prefix tools`, {
14+
stdio: "inherit",
15+
});
16+
} catch (e) {
17+
console.error(e);
18+
}

0 commit comments

Comments
 (0)