Actions for the foreclosure of mortgages shall be governed by the same rules and provisions of statute as civil actions, except as in this chapter otherwise provided.