Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

Commit abbc60b

Browse files
Update scope-for-gradle.ts
1 parent ef74e36 commit abbc60b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dist/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13189,7 +13189,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
1318913189
};
1319013190
Object.defineProperty(exports, "__esModule", { value: true });
1319113191
const core = __importStar(__webpack_require__(310));
13192-
const executor = __importStar(__webpack_require__(826));
13192+
const executor_1 = __webpack_require__(826);
1319313193
const exec = __importStar(__webpack_require__(230));
1319413194
function run() {
1319513195
return __awaiter(this, void 0, void 0, function* () {
@@ -13198,7 +13198,7 @@ function run() {
1319813198
core.exportVariable("SCOPE_DSN", dsn);
1319913199
let executeTestPhase = core.getInput("run-tests", { required: true });
1320013200
let command = core.getInput("command", { required: true });
13201-
yield executor.instrument(false);
13201+
yield executor_1.instrument(false);
1320213202
if (executeTestPhase == "true") {
1320313203
yield exec.exec("sh -c \"" + command + " --init-script initscope.gradle\"");
1320413204
}
@@ -13377,11 +13377,11 @@ function instrument(allowBeta) {
1337713377
return __awaiter(this, void 0, void 0, function* () {
1337813378
const workdir = process.cwd();
1337913379
const [agentVersion, pluginVersion, instrVersion] = yield Promise.all([version_parser_1.getVersionToUse(scopeAgentMetadataURL, allowBeta), version_parser_1.getVersionToUse(scopeGradlePluginMetadataURL, false), version_parser_1.getVersionToUse(scopeGradleInstrMetadataURL, false)]);
13380-
const gradleInstrumentatorPath = yield tc.downloadTool("https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-instrumentation-for-gradle/" + instrVersion + "/scope-instrumentation-for-gradle-" + instrVersion + ".jar");
13380+
const gradleInstrumentatorPath = yield tc.downloadTool(`https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-instrumentation-for-gradle/${instrVersion}/scope-instrumentation-for-gradle-${instrVersion}.jar`);
1338113381
if (!gradleInstrumentatorPath.endsWith(".jar")) {
1338213382
yield io.mv(gradleInstrumentatorPath, gradleInstrumentatorPath + ".jar");
1338313383
}
13384-
yield exec.exec("sh -c \"java -jar " + gradleInstrumentatorPath + ".jar " + pluginVersion + " " + agentVersion + " " + workdir + " \"");
13384+
yield exec.exec(`sh -c "java -jar ${gradleInstrumentatorPath}.jar ${pluginVersion} ${agentVersion} ${workdir} "`);
1338513385
});
1338613386
}
1338713387
exports.instrument = instrument;

src/scope-for-gradle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function run() {
1010
let executeTestPhase = core.getInput("run-tests", {required: true});
1111
let command = core.getInput("command", {required: true});
1212

13-
await executor.instrument(false);
13+
await instrument(false);
1414

1515
if(executeTestPhase == "true") {
1616
await exec.exec("sh -c \""+command+" --init-script initscope.gradle\"")

0 commit comments

Comments
 (0)