How to use "rollback" feature with maven builds?

I am trying to setup a step which can revert the changes made in the previous step. but I cant find much info on drone website regarding the rollback feature. Also, does anyone know which maven command reverts change? Or is there another way to use rollback feature to be able to revert builds?

below is my code for this step:

kind: pipeline
type: docker
name: Revert

steps:

  • name: Revert_changes
    image: maven:3-jdk-8
    commands:
    • mvn release:rollback -s settings.xml -B -Dmaven.repo.local=/root/maven_repo -P development
      volumes:
      • name: maven_repo
        path: /roor/maven_repo
        when:
        branch:
        • drone
          event:
        • rollback
          target:
        • development
          trigger:
          branch:
    • drone
      event:
    • rollback
      target:
    • development