Skip to content

Commit

Permalink
#296 setting mcdevVersion = null as we don't use it, and changed the …
Browse files Browse the repository at this point in the history
…initializing mcdev message
  • Loading branch information
Daniel Ventura committed Dec 6, 2022
1 parent 207ac27 commit 6ef7909
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions copado-function/app/Init.fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CONFIG.configFilePath = null;
CONFIG.debug = process.env.debug === 'true' ? true : false;
CONFIG.installMcdevLocally = null;
CONFIG.mainBranch = null;
CONFIG.mcdevVersion = process.env.mcdev_version; // this will only be needed if installMcdevLocally=true
CONFIG.mcdevVersion = null;
CONFIG.metadataFilePath = null; // do not change - LWC depends on it! // not needed in this case, previous value: 'mcmetadata.json'
CONFIG.source_mid = null;
CONFIG.tmpDirectory = '../tmp';
Expand Down Expand Up @@ -168,7 +168,7 @@ class Init {
*/
static mcdevInit(credentials, credentialName, options) {
Util.execCommand(
`Initializing mcdev: ${credentialName}, ${credentials[credentialName].client_id}", "${credentials[credentialName].client_secret}", "${credentials[credentialName].auth_url}", "${options.url}", "${options.downloadBUs}", "${options.gitPush}", ${credentials[credentialName].account_id}`,
`Initializing mcdev`,
[
`mcdev init --y.credentialName "${credentialName}" --y.client_id "${credentials[credentialName].client_id}" --y.client_secret "${credentials[credentialName].client_secret}" --y.auth_url "${credentials[credentialName].auth_url}" --y.gitRemoteUrl "${options.url}" --y.account_id ${credentials[credentialName].account_id} --y.downloadBUs "${options.downloadBUs}" --y.gitPush "${options.gitPush}"`,
],
Expand Down
1 change: 0 additions & 1 deletion copado-function/app/environments/Init.env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ client_id="UPDATE ME"
client_secret="UPDATE ME"
auth_url="UPDATE ME" # url
enterprise_id="UPDATE ME"
mcdev_version="UPDATE ME"
git_email="UPDATE ME" # email
git_name="UPDATE ME"
6 changes: 3 additions & 3 deletions copado-function/dist/Init.fn.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

/*
* mcdev-copado v1.3.0 (built 2022-12-05T16:05:54.809Z)
* mcdev-copado v1.3.0 (built 2022-12-06T13:20:00.630Z)
* Function: Init.fn.js
* Dependenies: mcdev@>=4.1.12, Copado Deployer@20.1
* Homepage: https://github.com/Accenture/sfmc-devtools-copado#readme
Expand Down Expand Up @@ -349,7 +349,7 @@ CONFIG.configFilePath = null;
CONFIG.debug = process.env.debug === "true" ? true : false;
CONFIG.installMcdevLocally = null;
CONFIG.mainBranch = null;
CONFIG.mcdevVersion = process.env.mcdev_version;
CONFIG.mcdevVersion = null;
CONFIG.metadataFilePath = null;
CONFIG.source_mid = null;
CONFIG.tmpDirectory = "../tmp";
Expand Down Expand Up @@ -460,7 +460,7 @@ async function run() {
var Init = class {
static mcdevInit(credentials, credentialName, options) {
Util.execCommand(
`Initializing mcdev: ${credentialName}, ${credentials[credentialName].client_id}", "${credentials[credentialName].client_secret}", "${credentials[credentialName].auth_url}", "${options.url}", "${options.downloadBUs}", "${options.gitPush}", ${credentials[credentialName].account_id}`,
`Initializing mcdev`,
[
`mcdev init --y.credentialName "${credentialName}" --y.client_id "${credentials[credentialName].client_id}" --y.client_secret "${credentials[credentialName].client_secret}" --y.auth_url "${credentials[credentialName].auth_url}" --y.gitRemoteUrl "${options.url}" --y.account_id ${credentials[credentialName].account_id} --y.downloadBUs "${options.downloadBUs}" --y.gitPush "${options.gitPush}"`
],
Expand Down

0 comments on commit 6ef7909

Please sign in to comment.