ANSWER:

If you ejaculate semen, you need to repeat ghusul from scratch.

But if this is only mathi, continue your ghusul as this only affects your wudhu.

I get lots of evil thoughts during wudu and ghusl,in ghusl after cleaning myself if i get some discharge in the middle of the ghusl because of that evil thoughts do i have to clean that again or should i continue without cleaning this?

Ablution (Wudhu), Purity |