I encounter a problem when writing cd pipeline yaml file with Forge Commands:
Scenario 1: 1st time to install the new app
forge install after forge deploy
Scenario 2:afterwards and the new app has been installed
we just need forge deploy but not forge install
And my question is: how to write a yaml file to consider the above 2 scenarios? I know the difficulty is to need a statement to decide if the app has been installed to the destination environment or not.
Could anyone have any ideas or suggestions? Thanks.
Hi,
during scenario 1) you can install app on the appropriate Jira instance manually. During scenario 2) you can always call “forge install --upgrade” after each forge deploy.