I will map it out and you can fill in the details.
Approach 1:
We are given:
$$A = \begin{pmatrix} 0 & 1 & 2 \\ -5 &-3 & -7 \\ 1 & 0 & 0 \end{pmatrix} $$
Setting up and solving
$$|A - \lambda I| = 0 \implies -(\lambda + 1)^3 = 0 \implies \lambda_{1,2,3} = -1$$
To find the eigenvectors, we would take $[A - \lambda_i I] = 0$, assuming we have unique eigenvalues. Here we do not. Do you know how to determine the algebraic versus geometric multiplicity?
We attempt to the find the first eigenvector using $[A + I]v_1 = 0$ and the row-reduced-echelon-form (RREF) produces:
$$v_1 = \begin{pmatrix} -1 \\ -1 \\ 1 \end{pmatrix} $$
Unfortunately, we cannot generate anymore linearly independent eigenvectors ($\dim ker(A)=1$), so have to resort to generalized eigenvectors.
To find the second (generalized) eigenvectors, we set up and solve $[A + I]v_2 = v_1$, and after finding the RREF yields:
$$v_2 = \begin{pmatrix} 1 \\ -2 \\ 0 \end{pmatrix} $$
To find the third (generalized) eigenvectors, we set up and solve $[A + I]v_3 = v_2$, and after finding the RREF yields:
$$v_3 = \begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix} $$
We can use these eigenvectors to form $P$ as:
$$P = \begin{pmatrix} -1 & 1 & 0 \\ -1 & -2 & 1 \\ 1 & 0 & 0 \end{pmatrix} $$
We can now use this to find our Jordan matrix $J$ as:
$$J = P^{-1} A P = \begin{pmatrix} -1 & 1 & 0 \\ 0 & -1 & 1 \\ 0 & 0 & -1 \end{pmatrix}$$
Approach 2:
Have you learned about the characteristic polynomial and minimal polynomials and ways to infer the Jordan form?
You can find discussions in previous MSE posts like How can one find Jordan forms, given the characteristic and minimal polynomials?, Jordan normal form for a characteristic polynomial $(x-a)^5$, and these lecture notes.
Try stepping through these whimsical notes and see if you can work through approach 2.