#671  Build a former commit
Closed
jewgeni opened 2 years ago

Hello, I have got a question. I do a have a repository, now I want to build an old tag. I tagged the repository before adding the build file. Am I somehow able to build the former state?

Best regards

Robin Shen commented 2 years ago

You may add a checkout step, and switch to old tag in a command step defined later:

git fetch origin tag:tag
git checkout tag

// build your stuff

This should only considered for casual case, as code and its build/deployment logic should in same commit to make best use of "code as configuration"

Robin Shen changed state to 'Closed' 2 years ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Minor
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#671
Please wait...
Page is in error, reload to recover