Skip to content

Commit

Permalink
#296 adding chose value of gitPush and value of downloadBUs logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Ventura committed Nov 21, 2022
1 parent 0de9ccd commit 3e3bafd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion copado-function/app/Init.fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ CONFIG.credentials = `{"${CONFIG.credentialNameSource}":{"client_id":"${CONFIG.c
// generic
CONFIG.configFilePath = null;
CONFIG.repoUrl = process.env.repoUrl;
CONFIG.downloadBUs = process.env.downloadBUs === 'true' ? true : false;
CONFIG.gitPush = process.env.gitPush === 'true' ? true : false;
CONFIG.debug = process.env.debug === 'true' ? true : false;
CONFIG.installMcdevLocally = process.env.installMcdevLocally === 'true' ? true : false;
CONFIG.mainBranch = null;
Expand Down Expand Up @@ -136,7 +138,11 @@ async function run() {
Log.info('Initializing mcdev tools');
Log.info('===================');
Log.info('');
Copado.mcdevInit(CONFIG.credentials, CONFIG.credentialNameSource, CONFIG.repoUrl);
Copado.mcdevInit(CONFIG.credentials, CONFIG.credentialNameSource, {
url: CONFIG.repoUrl,
downloadBUs: CONFIG.downloadBUs,
gitPush: CONFIG.gitPush,
});
} catch (ex) {
Log.error('Initializing failed: ' + ex.message);
throw ex;
Expand Down

0 comments on commit 3e3bafd

Please sign in to comment.