Łukasz Gibała won at the fourth attempt, having previously stood in every mayoral election since 2014.