lib/sonarqube.js
/**
 * This function resolves the sonar.projectKey by replacing environment
 * variable expressions by their value
 * @param {*} projectKey The sonar projectKey expression to resolve
 */
This function resolves the sonar.projectKey by replacing environment
variable expressions by their value
@param {*} projectKey The sonar projectKey expression to resolve
This function resolves the sonar . projectKey by replacing environment variable expressions by their value @param { * } projectKey The sonar projectKey expression to resolve
function resolveProjectKey(projectKey) {
  const envVarRegex = /\$\{((?!\}).)*\}/g;
  var evaluatedprojectKey = projectKey.replace(envVarRegex, envVarReplace);
  return evaluatedprojectKey;
}
function resolveProjectKey ( projectKey ) { const envVarRegex = / \$\{((?!\}).)*\} / g ; var evaluatedprojectKey = projectKey . replace ( envVarRegex , envVarReplace ) ; return evaluatedprojectKey ; }
This function resolves the sonar.projectKey by replacing environment
 variable expressions by their value
 @param {*} projectKey The sonar projectKey expression to resolve
This function resolves the sonar . projectKey by replacing environment variable expressions by their value @param { * } projectKey The sonar projectKey expression to resolve