Pull Tags in Job
This tutorial explains how to pull tags in job.
By default, OneDev only sends code up to desired commit when running a build job. Sometime it is desirable to retrieve all project tags in order to run command such as git describe --tags
To do it, make sure your image has git installed, and then run below command in your job:
git fetch --tags
This works as OneDev sets up remote and code access credentials appropriately when running the job