-
Can you please help me understanding the usage scenario?
-
Inside my job, depending if build is a single .exe file or dist folder, i rename the .exe or zip the folder with the name of git describe --tags
$ git describe --tags v0.4-39-gfbe25cf- v0.4 : current tag
- 39 : commit count after tag
- gfbe25cf : last commit hash
So i want my artifact get the name "project-v0.4-39-gfbe25cf.exe" or "project-v0.4-39-gfbe25cf.zip" and need dit describe --tags
-
Thanks for the explanation. OneDev currently only fetches desired commit for performance consideration. To get this command running, all tags need to be fetched first. To do it:
- Run your job on an image with git installed
- Define project secret password
- Run below command before running "git describe --tags"
git fetch http://admin:@secrets:password@\@192.168.1.39:6610/test --tagsAlso the checkout setting in 3.2.0 will add options to get all branches and tags to make such task easy.
-
Previous Value Current Value Retrieve git describe --tags
Able to retrieve all branches and tags when run a job
-
Name Previous Value Current Value Label
Help Wanted
empty -
Previous Value Current Value empty 3.2.0
-
OneDev
changed state to 'Closed' 6 years ago
Previous Value Current Value Open
Closed
-
OneDev
changed state to 'Released' 6 years ago
Previous Value Current Value Closed
Released
Hi,
i'm looking for a way to retrieve the git describe --tags value inside a job command.
Thanks