Hi Allan, There's also the `GO_TO_REVISION` and `GO_FROM_REVISION` for every pipeline run that you can use. Check out the list of standard GOCD environment variables: https://docs.gocd.org/current/faq/dev_use_current_revision_in_build.html
Thanks, Varsha On Tuesday, 2 February 2021 at 08:48:14 UTC-8 Allan M wrote: > I am wondering if there is any way to tell the git revision of the last > successful build of a pipeline. > > I require it to inform the following command, which returns a list of > changes for a given project in my monorepo. > > git diff-tree --no-commit-id --name-only -r > "<last_successful_revision>..<head_revision>" -- "./$project" > > Looking at only the changes for the latest revision will not suffice as > the diff will likely not include changes in all the same projects as the > previous revision meaning I can't determine which projects to build. > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/4f5351a9-c6ac-4895-b6b9-d8db768c9682n%40googlegroups.com.
