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