J.P. Morgan Chase & Co. will bring on Gen. Raymond T. Odierno, the recently retired chief of staff of the Army, as a senior adviser to the firm, the bank announced Thursday.

Starting Sept. 1, Gen. Odierno will advise the bank’s board and Chief Executive James Dimon on topics such as the risks of doing business in various countries, technology and physical and cybersecurity.

The...