3

I have a previous commit sha. How do I roll back to a previous commit in Jenkins?

I have a main project with submodules.

I'm thinking I can pass in the previous commit sha to the build parametrized field. Also, I have submodules, how do I rollback the submodules to the previous commit using the main project commit sha?

James Umeris
  • 479
  • 2
  • 6
  • 14

1 Answers1

0

how do I rollback the submodules to the previous commit using the main project commit sha?

You don't: submodules are, by their nature, fixed SHA1 recorded as gitlink, special entries in the index of the main repo.

If you set the main repo to a previous SHA1, it will have with it the SHA1 that were recorded for the submodules.

Community
  • 1
  • 1
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755