I don't mean to make assumptions. It's my perspective of the portrayal of God in several versions of the old testament. Would you suggest a better word? I.e., God was angry or unhappy when we worshipped other deities?
Rather I'd look at how the Tradition talks about God, then what a particular text says, to whom is it addressed, and so forth.
It's axiomatic that God in the Hebrew Scriptures is utterly transcendent. In Greek philosophical terms God is Absolute.
So how can we, and why do we, speak in anthropomorphic terms when we ascribe qualities to God? And the issue is compounded when we ascribe both positive and negative traits. In the end the process becomes contradictory.
In short, the language we use enables us to comprehend something of the incomprehensible. It poetic terms it sheds light into the Divine Darkness, but we should take care not to become too wedded to a literal reading of the words. Too narrow and too literal a reading can lead to 'hellfire and damnation' theology on the one hand, or an 'everything's cool and just as it should be' on the other. That I'm a sinner beyond redemption on the one hand, that I'm actually God on the other.
There is a reading of 'jealous', for example, that casts the word in a positive light, an unbreakable loyalty, the love of a parent for a child, for example. The delight of the father at the return of the prodigal son. But now we're into linguistic and lexical technicalities.
For me the point is, the literal reading will be tempered by a deeper, spiritual implication and metaphysical insight.