Have been trying out the actions that are available for rollback. I have consistent getting an error where the plan exists but is not able to be retrieved via the actions.
1. Has anyone try out the rollback actions
2. How does the fields suchs as Project/deployment plan/versions map to with data within the database?
don't you think that is neccessary to use the name of the deployment Template too?
In my case, per each project I have several deployment template.
1.Setting Rollback Definition for DP action works on V5.5.1 (You need to run it on the preplan)
2. I normally find in the DB the last successful deployment based the same project and run on the same environment and set it as my rollback plan.
The below query will get you last deployment plan info you will need for setting up the rollback action
select candidates.build, candidates.id ,candidates.name
from APPLICATIONS apps, RC_VERSION projects, ENVIRONMENTS envs, RC_RELEASES releases, RC_STAGES stages,rc_release_candidate candidates
where apps.ID = projects.APPLICATIONID and
releases.PROJECT = projects.ID and
stages.RELEASE_ID = releases.ID and
stages.ENVIRONMENT = envs.ID and
candidates.id = releases.release_candidate and
releases.RELEASE_RESULT ='SUCCESS' and
apps.APP_NAME ='Online Financial Trading Platform' and projects.NAME = 'Mobile_Platform' and envs.NAME = 'Dev'
order by releases.id desc limit 1;
build, id, name
'2-50', '878', 'Mobile Deployment Build 50'
You can't define same deployment plan (Name + version) using different template per project so setting project name + deployment plan name + version will provide unique result
Please advice on where the attributes from the DB will be used to populate the actions?
you're right !!!
The deployment plan name and version will retrieved based on the SQL query I provide above .For the project name you can use the built-in parameter as both plans most likely belong to the same project