Ok, we did some manipulations:
1/ To build, nothing is required
Documentation said (https://documentation.bonitasoft.com/bcd/3.3/bcd_cli)
bcd [BCD_OPTIONS] livingapp [LIVINGAPP_OPTIONS] build [OPTIONS]
Options
-p, --path <path>
Bonita Living Application repository path
so -p is a BCD_OPTIONS ? a LIVINGAPP_OPTION ? a OPTIONS ? Is the place is important ?
A assume the -p option is an OPTIONS, so the syntax is
bcd build -p /pathWhereIDidTheGitPulllivingapp -e Qualification
==> But it complains that a scenario is required. it's not in the documentation in the build command.
Why the scenario is required at this step if I want to build all?
Ok, we try:
bcd livingapp build -s scenarios/build_and_deploy.yml -p /pathWhereIDidTheGitPulllivingapp -e Qualification
==> Another error.
Finally, order is very important, and the scenario is a "BCD_OPTIONS" (we call a friend :-) ).
bcd -s scenarios/build_and_deploy.yml livingapp build -p /pathWhereIDidTheGitPulllivingapp -e Qualification
So, what is the correct command to build all? Where the result will be saved (there are no path on the command line)...
It's not write in the documentation, but reading in another part of the documentation (and calling again a friend), (https://documentation.bonitasoft.com/bcd/3.3/livingapp_build) we understood that the command generated a ZIP file and all under /pathWhereIDidTheGitPulllivingapp/target
2/ Deploy
I need to setup the server information in 2 different files (and the ansible file is registered in the scenario)
ansible/inventory/livingapp_build_deploy-static_inventory
bonita_url= http://myServeurInstalledOnAWS:8080/bonita_url
scenarios/build_and_deploy.yml
bonita_tenant_login: install
bonita_tenant_password: install
According https://documentation.bonitasoft.com/bcd/3.3/livingapp_build_and_deploy#toc3,
we have manually to unzip the file in "to-deploy".
bcd [BCD_OPTIONS] livingapp [LIVINGAPP_OPTIONS] deploy [OPTIONS]
-p, --path <path>
Bonita Living Application archive or directory path
and the "Bonita Living Application archive or directory path" is not the "Bonita Living Application repository path", this is the place you unzip the file manually.
so the command should be
bcd -s scenarios/build_and_deploy.yml livingapp deploy -p /pathWhereIDidTheGitPulllivingapp/target/to-deploy
Correct?
Thank for your feedback.