well what i said is all from a very long interview with an Iraqi nuclear scientist who was involved in the two Iraqi nuclear programs.
the Iraqi nuclear reactor which was bombed in 1981 by israel is Osirak reactor, built by support of France. its completely for scientific research and wasn't a threat for israel. however , the reactor was an excellent opurtunity for Iraqi nuclear scientists to gain the know-how and suffecient training in the nuclear field.
in ~1986 , the nuclear project was revived again but this time not for scientific research , it was entended entirely to produce nuclear bombs. this time the project was Iraqi 100% and was very confidential they even had specific policy when importing some pieces from outside to avoid any intelligence attraction. their plans worked and they were about to produce the 1st bomb after the invasion of Kuwait by few months. the Iraqi scientist criticized Saddam's decision of invasion and said he should've waited till the production of the nuclear bomb.
Saddam probably never thought he face such a global coalition. the Iraqi nuclear program is one of the reasons to force KSA to avoid a long term war with Iraq and instead to establish the coalition mainly with the US forces to ensure quick air strikes to destroy the Iraqi nuclear program before its too late.
this nuclear project was one of the main targets for the coalition air forces during Kuwait liberation war. it was completely destroyed in air strikes.