Jerry-built, which carries a negative connotation, refers to a permanent, but poorly built, construction. The origin of the phrase is unclear, but it may have derived from the flimsy work of an English construction company called Jerry Brothers.
Jury-rigged, which dates to the late 1700s nautical term jury mast, refers to a ship’s temporary mast. It means something cleverly constructed in a makeshift manner for temporary use.
Sometimes these two expressions are misstated as jerry-rigged or jury-built.