Search for new physics in events with same-sign dileptons and jets in pp collisions at $\sqrts$ = 8 TeV