Is there a way to return the current build to Jenkins?

The newly created deployment team is struggling to find a way to bring back the currently deployed assembly. They integrated Jenkins with Git and Bitbucket.

Is there any way to get the assembly back and see which files have been deployed in the current assembly?

+5
source share
3 answers

(I can not comment, so I answer)

If I understand correctly, all you need is to create a previous version of your project, right?

There are really (several) ways to do this. I do not know GIT, but I think that this is not something that differs from SVN. With SVN in the build configuration, you can add @xxx after the repository URL to build an accurate revision. For example, to get revision 42, http://mysvn.com/myproject/trunk will become http://mysvn.com/myproject/ trunk@42

Although this simple method was enough for me if you often return assemblies, adding a parameter to your assembly would be a better option. I don’t remember the exact syntax and lack of time right now, but you should do it easily if you need it.

See this O'reilly chapter of the book for more information: https://books.google.fr/books?id=4bjDCQAAQBAJ&pg=PA328&lpg=PA328&dq=jenkins+revert+to+previous+version&source=bl&ots=FQgnttOu_Q&sig=eClhhmmxundrmndsmmndumm X & ved = 0CG0Q6AEwCWoVChMI2-bD3JDqxwIVAj8aCh25UAsQ # v = onepage & q = jenkins% 20revert% 20to% 20previous% 20version & f = false

+3
source

All you can do is revert your git changes to the previous commit and rebuild.

0
source

If I understand your question correctly, all you have to do is check the git history for this project and it will tell you what has been changed. In addition, Jenkins should have a link in the left sidebar called changes . Click on this and it will tell you exactly what has been changed for the current build.

-1
source

All Articles