Skip to content

Commit

Permalink
[AAE-15436] Fix init-aae-env await for apps to be deployed (#8697)
Browse files Browse the repository at this point in the history
* [AAE-15436] Await for the applications to be deployed, add logger infos

* [AAE-15436] Updated README with the envs usage
  • Loading branch information
alep85 committed Jun 23, 2023
1 parent 0fc904e commit 74fd03b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lib/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,12 @@ adf-cli update-commit-sha --pathProject "$(pwd)" --skipGnu
The following command is in charge of Initializing the activiti cloud env with the default apps:
```bash
adf-cli init-aae-env --host "gateway_env" --oauth "identity_env" --identityHost "identity_env" --modelerUsername "modelerusername" --modelerPassword "modelerpassword" --devopsUsername "devopsusername" --devopsPassword "devopspassword"
adf-cli init-aae-env --host "gateway_env" --oauth "identity_env" --identityHost "identity_env" --modelerUsername "modelerusername" --modelerPassword "modelerpassword" --devopsUsername "devopsusername" --devopsPassword "devopspassword"
```
You can also specify the environment ids of the envs where to deploy the app adding the `--envs` option:
```bash
adf-cli init-aae-env --host "gateway_env" --oauth "identity_env" --identityHost "identity_env" --modelerUsername "modelerusername" --modelerPassword "modelerpassword" --devopsUsername "devopsusername" --devopsPassword "devopspassword" --envs envId1 envId2
```
If you want to add a new app the schema needs to be:
Expand Down
5 changes: 4 additions & 1 deletion lib/cli/scripts/init-aae-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,10 @@ async function deployWithPayload(currentAbsentApp: any, projectRelease: any, env
environmentId: envId
};

deploy(deployPayload);
logger.info(`Deploying ${currentAbsentApp.name} ${envId ? 'on env: ' + envId : '' }`);
await deploy(deployPayload);
logger.info(`Deployed ${currentAbsentApp.name} ${envId ? 'on env: ' + envId : '' }`);

}

async function checkDescriptorExist(name: string) {
Expand Down

0 comments on commit 74fd03b

Please sign in to comment.