Advanced job flow control
You can create duplicates of steps 1 and 2 as steps 3 and 4, and set the following flow:


Success - go to step two, failure - exit(f).
Success - exit(s), failure - go to step three
Success - go to step four, failure - exit(f).
Success - exit(s), failure - exit(f).


But if you can instead wrap steps 1 and 2 in a stored procedure or ad hoc query that handles the retry logic without duplication, then your solution will be much more understandable and maintenance-safe.