diff --git a/node-packages/commons/src/tasks.ts b/node-packages/commons/src/tasks.ts index 3be8efba20..9825d24d1c 100644 --- a/node-packages/commons/src/tasks.ts +++ b/node-packages/commons/src/tasks.ts @@ -1357,7 +1357,7 @@ export const createMiscTask = async function(taskData: any) { case 'deploytarget:task:advanced': // inject variables into advanced tasks the same way it is in builds and standard tasks const [_, envVars, projectVars] = await getTaskProjectEnvironmentVariables( - project.name, + taskData.data.project.name, taskData.data.environment.id ) miscTaskData.project.variables = {