Skip to content

Commit 589f2d1

Browse files
test
1 parent 9321af2 commit 589f2d1

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Tasks/AzurePowerShellV5/azurepowershell.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ async function run() {
1919

2020
const env = process.env;
2121
const hostEnv = `ADO/AzurePowerShell@v5_${env.AGENT_OS || ""}_${env.AGENT_NAME || ""}_${env.BUILD_DEFINITIONNAME || ""}_${env.BUILD_BUILDID || ""}_${env.RELEASE_DEFINITIONNAME || ""}_${env.RELEASE_RELEASEID || ""}`;
22-
22+
2323
process.env.AZUREPS_HOST_ENVIRONMENT = hostEnv;
24-
console.log(`AZUREPS_HOST_ENVIRONMENT: ${hostEnv}`);
24+
console.log(`AZUREPS_HOST_ENVIRONMENT: ${hostEnv}`);
2525

2626
try {
2727
tl.setResourcePath(path.join(__dirname, 'task.json'));
@@ -37,6 +37,7 @@ async function run() {
3737
throw new Error(tl.loc('JS_InvalidErrorActionPreference', _vsts_input_errorActionPreference));
3838
}
3939

40+
4041
let scriptType: string = tl.getInput('ScriptType', /*required*/true);
4142
let scriptPath = convertToNullIfUndefined(tl.getPathInput('ScriptPath', false));
4243
let scriptInline: string = convertToNullIfUndefined(tl.getInput('Inline', false));
@@ -207,7 +208,7 @@ async function run() {
207208
async function getInstalledAzModuleVersion(): Promise<string | null> {
208209
try {
209210
tl.debug('Checking installed Az PowerShell module version...');
210-
211+
211212
// PowerShell command to get the installed Az module version
212213
const powershell = tl.tool(tl.which('pwsh') || tl.which('powershell') || tl.which('pwsh', true))
213214
.arg('-NoLogo')
@@ -217,7 +218,7 @@ async function getInstalledAzModuleVersion(): Promise<string | null> {
217218
.arg('Unrestricted')
218219
.arg('-Command')
219220
.arg(`. '${path.join(path.resolve(__dirname),'Utility.ps1')}'; Get-InstalledMajorRelease -moduleName 'Az' -iswin $false`);
220-
221+
221222
const result = await powershell.execSync()
222223
if (result.code === 0 && result.stdout) {
223224
const version = result.stdout.trim();

Tasks/AzurePowerShellV5/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"author": "Microsoft Corporation",
1818
"version": {
1919
"Major": 5,
20-
"Minor": 260,
20+
"Minor": 261,
2121
"Patch": 0
2222
},
2323
"releaseNotes": "Added support for Az Module and cross platform agents.",

Tasks/AzurePowerShellV5/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"author": "Microsoft Corporation",
1818
"version": {
1919
"Major": 5,
20-
"Minor": 260,
20+
"Minor": 261,
2121
"Patch": 0
2222
},
2323
"releaseNotes": "ms-resource:loc.releaseNotes",

0 commit comments

Comments
 (0)