Skip to content

Commit

Permalink
🐛 Set branch on Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Jun 20, 2023
1 parent e360cbd commit 7a70cde
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions vsts/QodanaScan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4632,6 +4632,7 @@ 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,
Expand Down
1 change: 1 addition & 0 deletions vsts/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ 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,
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.6",
"version": "2023.1.7",
"publisher": "JetBrains",
"targets": [
{
Expand Down

0 comments on commit 7a70cde

Please sign in to comment.