Skip to content

Commit

Permalink
🐛 Set branch on Azure Pipelines environment
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Jun 20, 2023
1 parent a461cdb commit 54d3fc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions vsts/QodanaScan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4632,11 +4632,10 @@ var require_utils2 = __commonJS({
if (args.length === 0) {
const inputs = getInputs();
args = (0, qodana_12.getQodanaScanArgs)(inputs.args, inputs.resultsDir, inputs.cacheDir);
args = [...args, "-e", `QODANA_BRANCH=${process.env.BUILD_SOURCEBRANCH}`];
}
return tl2.exec(qodana_12.EXECUTABLE, args, {
ignoreReturnCode: true,
env: Object.assign(Object.assign({}, process.env), { NONINTERACTIVE: "1" })
env: Object.assign(Object.assign({}, process.env), { QODANA_BRANCH: process.env.BUILD_SOURCEBRANCH, NONINTERACTIVE: "1" })
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion vsts/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ export async function qodana(args: string[] = []): Promise<number> {
if (args.length === 0) {
const inputs = getInputs()
args = getQodanaScanArgs(inputs.args, inputs.resultsDir, inputs.cacheDir)
args = [...args, '-e', `QODANA_BRANCH=${process.env.BUILD_SOURCEBRANCH}`]
}
return tl.exec(EXECUTABLE, args, {
ignoreReturnCode: true,
env: {
...process.env,
QODANA_BRANCH: process.env.BUILD_SOURCEBRANCH,
NONINTERACTIVE: '1'
}
})
Expand Down
2 changes: 1 addition & 1 deletion vsts/vss-extension.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "qodana-dev",
"name": "Qodana (Dev)",
"version": "2023.1.7",
"version": "2023.1.8",
"publisher": "JetBrains",
"targets": [
{
Expand Down

0 comments on commit 54d3fc6

Please sign in to comment.