Multiple entry/start points for Pipeline

I am trying to write a pipeline definition with three stages -

  1. Build frontend and copy the artifacts into backend folder.
  2. Build backend
  3. Run Sonar Analysis on files generated after backend build stage.
    So, actually third stage is independent of the first stage but dependent on second stage.

Is it possible to have multiple start points for pipeline? Basically I want option to start my pipeline either from Stage1 or Stage2 based on my requirement.