diff --git a/node-packages/commons/src/deploy-tasks.ts b/node-packages/commons/src/deploy-tasks.ts index 75cd1d64d8..406c2e22df 100644 --- a/node-packages/commons/src/deploy-tasks.ts +++ b/node-packages/commons/src/deploy-tasks.ts @@ -344,7 +344,7 @@ export const deployTargetPullrequest = async function(data: any) { for (let i = 0; i < deployTargetConfigs.targets.length; i++) { deployTarget = { openshiftProjectPattern: deployTargetConfigs.targets[i].deployTargetProjectPattern, - branches: deployTargetConfigs.targets[i].branches, + pullrequests: deployTargetConfigs.targets[i].pullrequests, // since deploytarget configs reference a deploytarget instead of an openshift, convert that here to be what it needs to be openshift: deployTargetConfigs.targets[i].deployTarget } @@ -368,7 +368,7 @@ export const deployTargetPullrequest = async function(data: any) { const projectOpenshift = await getOpenShiftInfoForProject(projectName); deployTarget = { openshiftProjectPattern: projectOpenshift.project.openshiftProjectPattern, - branches: projectOpenshift.project.branches, + pullrequests: projectOpenshift.project.pullrequests, openshift: projectOpenshift.project.openshift } } catch (err) { diff --git a/node-packages/commons/src/tasks.ts b/node-packages/commons/src/tasks.ts index ad2607edf3..658743a69d 100644 --- a/node-packages/commons/src/tasks.ts +++ b/node-packages/commons/src/tasks.ts @@ -552,8 +552,7 @@ export const createDeployTask = async function(deployData: any) { .filter(e => e.environmentType === 'production') .map(e => e.name); logger.debug( - `projectName: ${projectName}, branchName: ${branchName}, existing environments are `, - prod_environments + `projectName: ${projectName}, branchName: ${branchName}, existing environments are ${prod_environments}` ); if (prod_environments.length >= productionEnvironmentsLimit) { @@ -573,8 +572,7 @@ export const createDeployTask = async function(deployData: any) { .filter(e => e.environmentType === 'development') .map(e => e.name); logger.debug( - `projectName: ${projectName}, branchName: ${branchName}, existing environments are `, - dev_environments + `projectName: ${projectName}, branchName: ${branchName}, existing environments are ${dev_environments}` ); if (