I have a Gitlab CICD pipeline that builds and deploys a Java application.

When the pipeline runs I need to get all the new Git commit messages between the last execution of the pipeline and the current one.

E.g:

The previous pipeline execution last commit was:

```
commit 0f22ff72089axxx
   My old commit

```

Since then there have been two more commits:

```
commit 234ff72089axxx
   My new commit 1

commit 5454422089axxx
   My new commit 2

```

When the pipeline executes again I need to get

```
My new commit 1
My new commit 2

```

How can this be done?