I never said it was exclusively in the gospels, but since you bring it up , read the first chapter of the gospel of John. Jesus is God , and was God in the flesh. He is also is known as The Word. God inspired the Scriptures. All the Scriptures.
So yes, He forbade women from being pastors.
This...