The issue of proving or denying the marriage of Jesus was a matter of discussion between many Christians. Catholics deny any marriage of Jesus, that is why Catholic priests do not marry, while many other Christians say that he got married and their priests marry. Mary the Magdalene has been mentioned in many Christian books as a wife of Jesus.
We Muslims have no authentic evidence from Quran or Sunnah to stand firmly with or against the issue of the marriage of Jesus. Both possibilities are there.
If we take any of the two possibilities, there are valid reasons to justify it. Marriage is highly recommended in the Shari'a of Islam but we know that the Shari'a of previous prophets can differ in some parts.