Skip to content

Commit 08f040c

Browse files
authored
Merge pull request #2153 from jmyersmsft/users/jmyers/nugetRM103
Allow NuGet tasks to work in Release Management by using System.DefaultWorkingDirectory instead of Agent.BuildDirectory
2 parents 263617b + 724ea5b commit 08f040c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Tasks/Common/nuget-task-common/NuGetConfigHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class NuGetConfigHelper {
2424
private _authInfo: auth.NuGetAuthInfo;
2525
private _environmentSettings: ngToolRunner.NuGetEnvironmentSettings;
2626

27-
private tempNugetConfigDir = path.join(tl.getVariable('agent.buildDirectory'), 'Nuget');
27+
private tempNugetConfigDir = path.join(tl.getVariable('system.defaultWorkingDirectory') || process.cwd(), 'Nuget');
2828
private tempNugetConfigFileName = 'tempNuGet_' + tl.getVariable('build.buildId') + '.config';
2929
public tempNugetConfigPath = path.join(this.tempNugetConfigDir, this.tempNugetConfigFileName);
3030

Tasks/NuGetInstaller/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 0,
1111
"Minor": 2,
12-
"Patch": 2
12+
"Patch": 3
1313
},
1414
"minimumAgentVersion": "1.83.0",
1515
"groups": [

Tasks/NuGetInstaller/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 0,
1111
"Minor": 2,
12-
"Patch": 2
12+
"Patch": 3
1313
},
1414
"minimumAgentVersion": "1.83.0",
1515
"groups": [

Tasks/NugetPublisher/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 0,
1111
"Minor": 2,
12-
"Patch": 2
12+
"Patch": 3
1313
},
1414
"demands": [
1515
"Cmd"

Tasks/NugetPublisher/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 0,
1111
"Minor": 2,
12-
"Patch": 2
12+
"Patch": 3
1313
},
1414
"demands": [
1515
"Cmd"

0 commit comments

Comments
 (0)